]> git.cworth.org Git - lmno.games/blob - index.html
Add simple JavaScript processing of game ID form submission
[lmno.games] / index.html
1 <!DOCTYPE html>
2 <html>
3   <head>
4     <meta charset="utf-8"/>
5
6     <title>LMNO Games</title>
7
8     <link rel="stylesheet" href="/reset.css" type="text/css" />
9     <link rel="stylesheet" href="/style.css" type="text/css" />
10   </head>
11   <body>
12
13     <script src="/lmno.js"></script>
14
15     <div id="page">
16
17       <div id="message-area">
18       </div>
19
20       <form onsubmit="lmno_join(this); return false">
21
22         <div class="form-field large">
23           <label for="id">Game ID</label>
24           <input type="text" id="id" maxlength="4"
25                  placeholder="Enter a 4-letter Game Code"
26                  oninput="this.value = this.value.toUpperCase()"
27                  autocomplete="off"
28                  required>
29         </div>
30
31         <div class="form-field large">
32           <button type="submit">
33             Join Game
34           </button>
35         </div>
36
37       </form>
38
39     </div>
40   </body>
41 </html>