<head>
<title>The Game of Empires</title>
+ <link rel="stylesheet" href="reset.css" type="text/css" />
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<script src="empires-client.js"></script>
- <div id="pre-game">
+<div id="page">
- <h1>Welcome to the game of Empires!</h1>
+ <div id="message-area">
+ </div>
+
+ <div id="loading" class="show-state-none">
+ <h1>The Game of Empires</h1>
+
+ <p>
+ Contacting server. Please wait...
+ </p>
+ </div>
+
+ <div id="pre-game" class="show-state-join">
+
+ <h1>The Game of Empires</h1>
<p>
To join the game, type your own name below. Also, choose the name
same device to join the game as well.
</p>
- <div id="message-area">
- </div>
-
<!-- The return false prevents the page from being reloaded -->
- <form onsubmit="register(this); return false">
- <label for="name">Your name</label>
- <input type="text" id="name" required>
+ <form id="register-form" onsubmit="register(this); return false">
+ <div class="form-row medium left">
+ <label for="name">Your name</label>
+ <input type="text" id="name" required>
+ </div>
- <label for="character">Character name</label>
- <input type="text" id="character" autocomplete="off" required>
+ <div class="form-row medium right">
+ <label for="character">Character name</label>
+ <input type="text" id="character" autocomplete="off" required>
+ </div>
- <input type="submit" value="Join game">
+ <div class="form-row large">
+ <button type="submit">
+ Join game
+ </button>
+ </div>
</form>
</div>
- <div>
+ <div class="show-state-reveal">
+ <h1>Watch and memorize each character!</h1>
+
+ <h1 id="character-reveal"></h1>
+ </div>
+
+ <div class="hide-state-reveal" id="players-div">
<h1>Players in the game</h1>
<ul id="players">
</div>
+</div>
</body>
</html>