forked from richpri/board18v2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
310 lines (303 loc) · 12.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
<!doctype html>
<html lang="en">
<!--
The index.html page is one of the two pages which is not password protected.
It is the introductory page to BOARD18 and contains a welcome message.
It is used for logging in to Board18 and for registering new players.
It also contains player ID and password recovery functions.
Most changes made to this file should also be made to access-denied.html
Copyright (c) 2014 Richard E. Price under the The MIT License.
A copy of this license can be found in the LICENSE.text file.
-->
<head>
<meta charset="utf-8" />
<title>BOARD18 - Remote Play Tool For 18xx Style Games</title>
<link rel="shortcut icon" href="images/favicon.ico" >
<link rel="stylesheet" href="style/board18com.css" />
<link rel="stylesheet" href="style/board18Index.css" />
<script type="text/javascript" src="scripts/jquery.js">
</script>
<script type="text/javascript" src="scripts/sha256-min.js">
</script>
<script type="text/javascript" src="scripts/board18com.js">
</script>
<script type="text/javascript" src="scripts/board18index.js">
</script>
<script type="text/javascript" >
$(function() {
$('.error').hide();
$('#pointer').hide();
BD18.redirectURL = "board18Main.php";
BD18.LTPAselector = null;
var LTPAlocal = BD18.docCookies.getItem('LTPAlocal');
if(LTPAlocal !== null){
var LTPAarray = LTPAlocal.split(":",2);
BD18.LTPAselector = LTPAarray[0];
var LTPAvalidator = LTPAarray[1];
// Look up selector in database and check validator using
// tokenCheck.php. If validator matches then bypass signon.
var hash = hex_sha256(LTPAvalidator);
var dataString = 'selector=' + BD18.LTPAselector + '&validator=' + hash;
$.post("php/tokenCheck.php", dataString, tokenCheckReturn);
} // end remember me check
var RMpersist = BD18.docCookies.getItem('RMpersist');
if(RMpersist !== null){
$('#rememberme').prop('checked', true);
} else {
$('#rememberme').prop('checked', false);
} // end Persistent check
$("#login").on("submit",function() {
login();
return false;
}); // end login
$("#buttonx").on("click",function(){
$('#lostid form').slideDown(300);
return false;
}); // end buttonx click
$("#regbutton").on("click",function(){
$('#register .error').hide();
$('#register :password').val('');
$('#register :text').val('');
$('#register form').slideDown(300);
$("#newuser") .trigger('focus');
return false;
}); // end regbutton click
$("#helpbutton").on("click",function(){
window.open(BD18.help, "HelpGuide");
return false;
}); // end helpbutton click
$("#buttony").on("click",function(){
$('#lostpw form').slideDown(300);
return false;
}); // end buttony click
$("#register").on("submit",function() {
register();
return false;
}); // end register submit
$("#button3").on("click",function(){ //cancel register
$('#register form').slideUp(300);
return false;
}); // end button3 click
$("#lostid").on("submit",function() {
lostid();
return false;
}); // end lostid submit
$("#button5").on("click",function(){
$('#lostid form').slideUp(300);
$('#login form').slideDown(300);
return false;
}); // end button5 click
$("#lostpw").on("submit",function() {
lostpw();
return false;
}); // end lostpw submit
$("#button7").on("click",function(){
$('#lostpw form').slideUp(300);
$('#login form').slideDown(300);
return false;
}); // end button5 click
$("#content").on("click",function(){
$('#lostpw form').hide();
$('#lostid form').hide();
$('#register form').hide();
}); // end content click
$("#leftofpage").on("click",function(){
$('#lostpw form').hide();
$('#lostid form').hide();
$('#register form').hide();
}); // end leftofpage click
}); // end ready
</script>
</head>
<body>
<div id="topofpage">
<div id="logo">
<img src="images/logo.png" alt="Logo"/>
</div>
<div id="heading">
<h1>BOARD18 - Remote Play Tool For 18xx Style Games</h1>
</div>
<div>
<p id="lognote"></p>
</div>
</div>
<div id="leftofpage">
</div>
<div id="rightofpage">
<div id="login">
<form name="login" action="">
<fieldset>
<p style="font-size: 130%">Login to BOARD18</p>
<p>
<label for="username">Player ID:</label>
<input type="text" name="username" id="username">
<label class="error" for="username" id="name_error">
This field is required.</label>
</p>
<p>
<label for="password">Password: </label>
<input type="password" name="password" id="password">
<label class="error" for="password" id="password_error">
This field is required.</label>
</p>
<p>
<input type="submit" name="pwbutton" class="pwbutton"
id="button1" value="Login" >
<label class="error" for="button1" id="signon_error">
Username or password is invalid.</label>
<input type="checkBox" name="rememberme"
id="rememberme" value="yes" >
<label for="rememberme">Remember me.</label>
</p>
<p>
<input type="button" name="regbutton" class="pwbutton"
id="regbutton" value="Register" >
<input type="button" name="helpbutton" class="pwbutton"
id="helpbutton" value="Help" >
</p>
<p>
<input type="button" name="lostbuttonx" class="pwbutton"
id="buttonx" value="Forgot your Player ID?" >
<input type="button" name="lostbuttony" class="pwbutton"
id="buttony" value="Forgot your Password?" >
</p>
</fieldset>
</form>
</div>
<div id="register">
<form name="register" class="hideform" action="">
<fieldset>
<p style="font-size: 130%">Register your Player ID</p>
<p style="color: Fuchsia">
All of the fields on this form are required.
</p>
<p>
<label for="newuser">Enter Player ID:</label>
<input type="text" name="newuser" id="newuser" class="reg"
size="20" value="">
<label class="error" for="newuser" id="newuser_error">
This field is required.</label>
</p>
<p>
<label for="passwrd1">Enter Password: </label>
<input type="password" name="passwrd1" id="passwrd1"
autocomplete="off">
<label class="error" for="passwrd1" id="passwrd1_error">
This field is required.</label>
</p>
<p>
<label for="passwrd2">Reenter Password: </label>
<input type="password" name="passwrd2" id="passwrd2"
autocomplete="off">
<label class="error" for="passwrd2" id="passwrd2_error">
Password field mismatch.</label>
</p>
<p>
<label for="email">Enter Email Address: </label>
<input type="text" name="email" id="email" class="reg"
size="30" value="">
<label class="error" for="email" id="email_error">
This field is required.</label>
</p>
<p>
<label for="fname">Enter First Name: </label>
<input type="text" name="fname" id="fname" class="reg"
size="30" value="">
<label class="error" for="fname" id="fname_error">
This field is required.</label>
</p>
<p>
<label for="lname">Enter Last Name: </label>
<input type="text" name="lname" id="lname" class="reg"
size="30" value="">
<label class="error" for="lname" id="lname_error">
This field is required.</label>
</p>
<p>
<input type="submit" name="regbutton" class="pwbutton"
id="button2" value="Register" >
<input type="button" name="canbutton" class="pwbutton"
id="button3" value="Cancel" >
</p>
</fieldset>
</form>
</div>
<div id="lostid">
<form name="lostid" class="hideform" action="">
<fieldset>
<p style="font-size: 130%">
Enter the email address that we have on file for you
and your Player ID will be emailed to you.
</p>
<p>
<label for="email1">Email Address: </label>
<input type="text" name="email1" id="email1">
<label class="error" for="email1" id="email1_error">
This field is required.</label>
</p>
<p>
<input type="submit" name="regbutton1" class="pwbutton"
id="button4" value="Submit" >
<input type="button" name="canbutton1" class="pwbutton"
id="button5" value="Cancel" >
</p>
</fieldset>
</form>
</div>
<div id="lostpw">
<form name="lostpw" class="hideform" action="">
<fieldset>
<p style="font-size: 110%">
Enter your Player ID and Email Address. <br>
A temporary Password will be emailed to you.
</p>
<p>
<label for="username1">Player ID:</label>
<input type="text" name="username1" id="username1">
<label class="error" for="username1" id="name1_error">
This field is required.</label>
</p>
<p>
<label for="email2">Email Address: </label>
<input type="text" name="email2" id="email2">
<label class="error" for="email2" id="email2_error">
This field is required.</label>
</p>
<p>
<input type="submit" name="regbutton2" class="pwbutton"
id="button6" value="Submit" >
<input type="button" name="canbutton2" class="pwbutton"
id="button7" value="Cancel" >
</p>
</fieldset>
</form>
</div>
<div id="content" style="padding-right: 10px">
<p style="font-size: 130%"><b>Welcome to Board18.</b>
</p>
<p>BOARD18 is intended to be used with a spreadsheet to play an
18xx style game remotely. The Google+ spreadsheet is a good
choice for this. As each player takes a turn, he will send an
Email to the other players. The Email will contain a list of
recent moves ending with his current move. If you don't use
Google+, the Email will also have to contain an
updated copy of the spread sheet being use to track the game
finances.
</p>
<p>
The BOARD18 game session associated with the game will be used
to display the game board and the stock market for the game.
Any active player can update the game.
</p>
<p><span style="font-size: 130%">NOTES:</span></p>
<ol>
<li>BOARD18 is designed to take advantage of the HTML5 standard.
Older releases of some browsers do not fully support this
standard.</li>
<li>Some features of BOARD18 require that cookies be enabled on
the browser.</li>
</ol>
</div>
</div>
</body>
</html>