]> git.cworth.org Git - lmno.games/blob - empires/index.html
83fcc0f2ddfd87f379fc13ebfb725498d8b2b958
[lmno.games] / empires / index.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <meta charset="utf-8"/>
5     <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
6
7     <title>The Game of Empires</title>
8
9     <link rel="stylesheet" href="/reset.css" type="text/css" />
10     <link rel="stylesheet" href="/style.css" type="text/css" />
11     <link rel="stylesheet" href="style.css" type="text/css" />
12   </head>
13 <body>
14
15   <script src="empires-client.js"></script>
16
17 <div id="page">
18
19   <span style="float:right;cursor:pointer" onclick="toggle_host_tools()">
20     ⚙
21   </span>
22
23   <div id="host-tools">
24     <button onclick="post_reveal()">
25       Reveal Characters
26     </button>
27     <button onclick="post_start()">
28       Start Game
29     </button>
30     <button onclick="post_reset()">
31       Reset Game
32     </button>
33   </div>
34
35   <div id="message-area">
36   </div>
37
38   <div id="loading" class="show-state-none">
39     <h1>The Game of Empires</h1>
40
41     <p>
42       Contacting server. Please wait...
43     </p>
44   </div>
45
46   <div id="pre-game" class="show-state-join">
47
48     <h1>The Game of Empires</h1>
49
50     <p>
51       To join the game, type your own name below. Also, choose the name
52       of a character that you want to play as. This can be anyone (real
53       or fictional) that everyone playing the game would be likely to
54       know, (for example "Albert Einstein" or "Harry Potter").
55     </p>
56
57     <p>
58       Note: After you have joined the game, another player can use this
59       same device to join the game as well.
60     </p>
61
62     <!-- The return false prevents the page from being reloaded -->
63     <form id="register-form" onsubmit="register(this); return false">
64       <div class="form-row medium left">
65         <label for="name">Your name</label>
66         <input type="text" id="name" required>
67       </div>
68
69       <div class="form-row medium right">
70         <label for="character">Character name</label>
71         <input type="text" id="character" autocomplete="off" required>
72       </div>
73
74       <div class="form-row large">
75         <button type="submit">
76           Join game
77         </button>
78       </div>
79     </form>
80
81   </div>
82
83   <div class="show-state-reveal">
84     <h1>Watch and memorize each character!</h1>
85
86     <span id="character-reveal"></span>
87   </div>
88
89   <div class="hide-state-reveal" id="players-div">
90     <h1>Players in the game</h1>
91
92     <ul id="players">
93     </ul>
94
95   </div>
96
97 </div>
98 </body>
99 </html>