4 <meta charset="utf-8"/>
5 <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
7 <title>The Game of Empires</title>
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" />
15 <script src="empires-client.js"></script>
19 <span style="float:right;cursor:pointer" onclick="toggle_host_tools()">
24 <button onclick="post_reveal()">
27 <button onclick="post_start()">
30 <button onclick="post_reset()">
35 <div id="message-area">
38 <div id="loading" class="show-state-none">
39 <h1>The Game of Empires</h1>
42 Contacting server. Please wait...
46 <div id="pre-game" class="show-state-join">
48 <h1>The Game of Empires</h1>
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").
58 Note: After you have joined the game, another player can use this
59 same device to join the game as well.
62 <!-- The return false prevents the page from being reloaded -->
63 <form id="register-form" onsubmit="register(this); return false">
64 <div class="form-field medium left">
65 <label for="name">Your name</label>
66 <input type="text" id="name" required>
69 <div class="form-field medium right">
70 <label for="character">Character name</label>
71 <input type="text" id="character" autocomplete="off" required>
74 <div class="form-field large">
75 <button type="submit">
83 <div class="show-state-reveal">
84 <h1>Watch and memorize each character!</h1>
86 <span id="character-reveal"></span>
91 <div class="hide-state-reveal" id="players-div">
92 <h1>Players in the game</h1>