]> git.cworth.org Git - lmno.games/blob - empires/index.html
Add viewport tag
[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   </head>
12 <body>
13
14   <script src="empires-client.js"></script>
15
16 <div id="page">
17
18   <div id="message-area">
19   </div>
20
21   <div id="loading" class="show-state-none">
22     <h1>The Game of Empires</h1>
23
24     <p>
25       Contacting server. Please wait...
26     </p>
27   </div>
28
29   <div id="pre-game" class="show-state-join">
30
31     <h1>The Game of Empires</h1>
32
33     <p>
34       To join the game, type your own name below. Also, choose the name
35       of a character that you want to play as. This can be anyone (real
36       or fictional) that everyone playing the game would be likely to
37       know, (for example "Albert Einstein" or "Harry Potter").
38     </p>
39
40     <p>
41       Note: After you have joined the game, another player can use this
42       same device to join the game as well.
43     </p>
44
45     <!-- The return false prevents the page from being reloaded -->
46     <form id="register-form" onsubmit="register(this); return false">
47       <div class="form-row medium left">
48         <label for="name">Your name</label>
49         <input type="text" id="name" required>
50       </div>
51
52       <div class="form-row medium right">
53         <label for="character">Character name</label>
54         <input type="text" id="character" autocomplete="off" required>
55       </div>
56
57       <div class="form-row large">
58         <button type="submit">
59           Join game
60         </button>
61       </div>
62     </form>
63
64   </div>
65
66   <div class="show-state-reveal">
67     <h1>Watch and memorize each character!</h1>
68
69     <span id="character-reveal"></span>
70   </div>
71
72   <div class="hide-state-reveal" id="players-div">
73     <h1>Players in the game</h1>
74
75     <ul id="players">
76     </ul>
77
78   </div>
79
80 </div>
81 </body>
82 </html>