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" />
14 <script src="empires-client.js"></script>
18 <span style="float:right;cursor:pointer" onclick="toggle_host_tools()">
23 <button onclick="post_reveal()">
26 <button onclick="post_start()">
29 <button onclick="post_reset()">
34 <div id="message-area">
37 <div id="loading" class="show-state-none">
38 <h1>The Game of Empires</h1>
41 Contacting server. Please wait...
45 <div id="pre-game" class="show-state-join">
47 <h1>The Game of Empires</h1>
50 To join the game, type your own name below. Also, choose the name
51 of a character that you want to play as. This can be anyone (real
52 or fictional) that everyone playing the game would be likely to
53 know, (for example "Albert Einstein" or "Harry Potter").
57 Note: After you have joined the game, another player can use this
58 same device to join the game as well.
61 <!-- The return false prevents the page from being reloaded -->
62 <form id="register-form" onsubmit="register(this); return false">
63 <div class="form-row medium left">
64 <label for="name">Your name</label>
65 <input type="text" id="name" required>
68 <div class="form-row medium right">
69 <label for="character">Character name</label>
70 <input type="text" id="character" autocomplete="off" required>
73 <div class="form-row large">
74 <button type="submit">
82 <div class="show-state-reveal">
83 <h1>Watch and memorize each character!</h1>
85 <span id="character-reveal"></span>
88 <div class="hide-state-reveal" id="players-div">
89 <h1>Players in the game</h1>