]> git.cworth.org Git - lmno.games/blob - empires/index.html
Use an actual "submit" input element instead of a "button"
[lmno.games] / empires / index.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <title>The Game of Empires</title>
5
6     <link rel="stylesheet" href="style.css" type="text/css" />
7   </head>
8 <body>
9
10   <script src="empires-client.js"></script>
11
12   <h1>Welcome to the game of Empires!</h1>
13
14   <p>
15     To join the game, type your own name below. Also, choose the name
16     of a character that you want to play as. This can be anyone (real
17     or fictional) that everyone playing the game would be likely to
18     know, (for example "Albert Einstein" or "Harry Potter").
19   </p>
20
21   <p>
22     Note: After you have joined the game, another player can use this
23     same device to join the game as well.
24   </p>
25
26   <div id="message-area">
27   </div>
28
29   <!-- The return false prevents the page from being reloaded -->
30   <form onsubmit="register(this); return false">
31     <label for="name">Your name</label>
32     <input type="text" id="name" required>
33
34     <label for="character">Character name</label>
35     <input type="text" id="character" required>
36
37     <input type="submit" value="Join game">
38   </form>
39
40 </body>
41 </html>