summaryrefslogtreecommitdiff
path: root/rps/index.html
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-05-07 18:15:13 +0200
committerMinteck <contact@minteck.org>2022-05-07 18:15:13 +0200
commit88394101a513cf41dd4af1bb46881e7ae78bcf9f (patch)
treee99d2e9fd27ff2b1ebe1790c4e866d3862def0a5 /rps/index.html
parent1f8e9aab02a849f64aa6069a04cbabaf5993c65a (diff)
downloadarcade-88394101a513cf41dd4af1bb46881e7ae78bcf9f.tar.gz
arcade-88394101a513cf41dd4af1bb46881e7ae78bcf9f.tar.bz2
arcade-88394101a513cf41dd4af1bb46881e7ae78bcf9f.zip
Add RPS
Diffstat (limited to 'rps/index.html')
-rw-r--r--rps/index.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/rps/index.html b/rps/index.html
new file mode 100644
index 0000000..5c15faa
--- /dev/null
+++ b/rps/index.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html lang="en" translate="no">
+<head>
+ <meta charset="UTF-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <title>Online Lobby | Rock Paper Scissors | Minteck Arcade</title>
+ <link rel="icon" href="/_general/favicon.svg" type="image/svg+xml">
+ <style>
+ body {
+ background: black;
+ color: white;
+ text-align: center;
+ font-family: sans-serif;
+ }
+ </style>
+</head>
+<body>
+<iframe src="/_general/navbar.html" style="position: fixed;z-index: 9999999999;top: 0;border: none;left: 0;right: 0;height: 32px;width: 100%;"></iframe>
+<div style="display:flex;position:fixed;inset:0;align-items: center;justify-content: center;top:32px;">
+ <div>
+ <h1>Online Mode</h1>
+ <p>Enter a name for your game room: (this is the name you will give to the other player; make sure you pick something unique)</p>
+ <input maxlength="30" placeholder="Game Room Name" name="room" type="text">
+ <p>Enter a player name: (it will be shown to the other player)</p>
+ <input maxlength="30" placeholder="Player Name" name="name" type="text">
+ <p>Your game is encrypted and only you, the other player, and Minteck Arcade can know what you are doing. Player name and game room name are not stored. The other player will see your IP address.</p>
+ <div style="width:max-content;margin-left:auto;margin-right:auto;">
+ <a href="#" onclick="goIfGood();" style="color:white;text-decoration:none;display:block;border:1px solid white;padding:10px;">Let's go!</a>
+ </div>
+ </div>
+</div>
+
+<script>
+ function goIfGood() {
+ if (document.getElementsByName("room")[0].value !== "" && document.getElementsByName("name")[0].value !== "") {
+ location.href = "game.html#online/" + btoa(document.getElementsByName("room")[0].value) + "|" + btoa(document.getElementsByName("name")[0].value);
+ }
+ }
+</script>
+</body>
+</html> \ No newline at end of file