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="../game.css" type="text/css" />
15 <script src="../game.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
52 name of a character that you want to play as. This can be
53 anyone (real or fictional) that everyone playing the game
54 would be likely to know, (for example "Albert Einstein" or
59 Note: After you have joined the game, another player can use
60 this same device to join the game as well.
63 <!-- The return false prevents the page from being reloaded -->
64 <form id="register-form" onsubmit="register(this); return false">
65 <div class="form-field medium left">
66 <label for="name">Your name</label>
67 <input type="text" id="name" required>
70 <div class="form-field medium right">
71 <label for="character">Character name</label>
72 <input type="text" id="character" autocomplete="off" required>
75 <div class="form-field large">
76 <button type="submit">
84 <div class="show-state-reveal">
85 <h1>Watch and memorize each character!</h1>
87 <span id="character-reveal"></span>
90 <div class="hide-state-reveal" id="players-div">
91 <h1>Players in the game</h1>