comparison index-rlg.html @ 19:188bbd857124

RLG-Web: add user registration Update the server and client sides of RLG-Web to make use of the new registration feature of sqlickrypt.
author John "Elwin" Edwards <elwin@sdf.org>
date Tue, 22 May 2012 20:54:33 -0700
parents ad0a31e52007
children 82be54381964
comparison
equal deleted inserted replaced
18:59ea628abb81 19:188bbd857124
12 <div id ="top"> 12 <div id ="top">
13 <span id="ttitle"></span> 13 <span id="ttitle"></span>
14 <img src="/bell.png" alt="bell" id="bell"> 14 <img src="/bell.png" alt="bell" id="bell">
15 </div> 15 </div>
16 <div id="termwrap">TERM</div> 16 <div id="termwrap">TERM</div>
17 <div class="modal" id="keyboard">
17 <div class="keyrow"> 18 <div class="keyrow">
18 <div class="key" onclick="vkey('`')">`</div> 19 <div class="key" onclick="vkey('`')">`</div>
19 <div class="key" onclick="vkey('1')">1</div> 20 <div class="key" onclick="vkey('1')">1</div>
20 <div class="key" onclick="vkey('2')">2</div> 21 <div class="key" onclick="vkey('2')">2</div>
21 <div class="key" onclick="vkey('3')">3</div> 22 <div class="key" onclick="vkey('3')">3</div>
80 <div class="rbutton" onclick="stop()">Stop</div> 81 <div class="rbutton" onclick="stop()">Stop</div>
81 <div class="rbutton">Font: 82 <div class="rbutton">Font:
82 <span onclick="textsize(false)">Smaller</span> 83 <span onclick="textsize(false)">Smaller</span>
83 <span onclick="textsize(true)">Larger</span> 84 <span onclick="textsize(true)">Larger</span>
84 </div> 85 </div>
85 <div> 86 </div>
87 <div class="modal" id="login">
86 <form id="loginform" action="/login" method="post"> 88 <form id="loginform" action="/login" method="post">
87 <div> 89 <div>
88 Name: <input type="text" name="name" id="input_name"> 90 Name: <input type="text" name="name" id="input_name">
91 </div>
92 <div>
89 Password: <input type="password" name="pw" id="input_pw"> 93 Password: <input type="password" name="pw" id="input_pw">
94 </div>
95 <div>
90 Choose game: <select name="game" id="input_game"> 96 Choose game: <select name="game" id="input_game">
91 <option label="Rogue V3" value="rogue3">Rogue V3</option> 97 <option label="Rogue V3" value="rogue3">Rogue V3</option>
92 <option label="Rogue V4" value="rogue4">Rogue V4</option> 98 <option label="Rogue V4" value="rogue4">Rogue V4</option>
93 <option label="Rogue V5" value="rogue5">Rogue V5</option> 99 <option label="Rogue V5" value="rogue5">Rogue V5</option>
94 <option label="Super-Rogue" value="srogue">Super-Rogue</option> 100 <option label="Super-Rogue" value="srogue">Super-Rogue</option>
95 </select> 101 </select>
102 </div>
103 <div>
96 <input type="submit" value="Play" onclick="formlogin(event)"> 104 <input type="submit" value="Play" onclick="formlogin(event)">
105 </div>
106 </form>
107 </div>
108 <div class="rbutton" onclick="setmode(&quot;register&quot;)">Register</div>
109 <div class="modal" id="register">
110 <form id="regform" action="/addacct" method="post">
111 <div>
112 Name: <input type="text" name="name" id="regin_name">
113 </div>
114 <div>
115 Password: <input type="password" name="pw" id="regin_pw">
116 </div>
117 <div>
118 E-mail (optional): <input type="text" name="email" id="regin_email">
119 </div>
120 <div>
121 <input type="submit" value="Sign up" onclick="formreg(event)">
122 <input type="reset" value="Cancel" onclick="setmode(&quot;login&quot, event)">
97 </div> 123 </div>
98 </form> 124 </form>
99 </div> 125 </div>
100 <div id="debug"> 126 <div id="debug">
101 <p>Debugging Output</p> 127 <p>Debugging Output</p>