-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
370 lines (349 loc) · 17 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
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
<!DOCTYPE html>
<!--
/*
The MIT License (MIT)
Copyright (c) 2013 Vincent Chu. chuvincent@gmail.com. http://www.vincentchu.com
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-->
<html lang="en"><head>
<meta charset="utf-8">
<title>Word Tile</title>
<meta name="description" content="">
<meta name="author" content="">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">
<!-- Le styles -->
<style>
body {
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<link href="css/bootstrap.custom.css" rel="stylesheet">
<!--<link href="css/bootstrap-responsive.css" rel="stylesheet">-->
<link href="css/game.css" rel="stylesheet">
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="ico/favicon.png">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top" id="gamenavbar">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" id="brandTitle" data-toggle="collapse" data-target=".nav-collapse">WordTile</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="index.html">Home</a></li>
<li><a id="menuLink" href="#">Link</a></li>
<li class="active"><a id="menuInstructions" href="#">How</a></li>
<li><a id="menuStats" href="#">Stats</a></li>
<!--<li class="active"><a id="menuDebug" href="#">Debug</a></li>-->
<li class="active"><a href="http://www.vincentchu.com">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div><!--container-->
</div>
</div>
<div class="container-fluid" id="gamecontrol">
<div class="row-fluid">
<div class="span2" id="playerName"></div>
<div class="span1" id="playerScore"></div>
<div class="span2" id="opponentName"></div>
<div class="span1" id="opponentScore"></div>
<div class="span4">
<button class="gamecontrolbutton" id="btnReset">Reset</button>
<button class="gamecontrolbutton" id="btnSubmit">Submit</button>
<!--<button id="btnTest">Test</button>-->
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid top-bottom-pad" id="divWordArea">
</div>
</div>
<div class="container-fluid" id="gamegrid">
<div class="row-fluid top-bottom-pad gamerow">
<!--<div class="span2"><img src="http://placehold.it/300x300"/></div>-->
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t00">W</div></div>
<div class="span2"><div class="boardtile gametile gametiletext player" id="t01">E</div></div>
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t02">L</div></div>
<div class="span2"><div class="boardtile gametile gametiletext player" id="t03">C</div></div>
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t04">O</div></div>
</div>
<div class="row-fluid top-bottom-pad gamerow">
<!--<div class="span2"><img src="http://placehold.it/300x300"/></div>-->
<div class="span2"><div class="boardtile gametile gametiletext player" id="t10">M</div></div>
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t11">E</div></div>
<div class="span2"><div class="boardtile gametile gametiletext player" id="t12">W</div></div>
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t13">E</div></div>
<div class="span2"><div class="boardtile gametile gametiletext player" id="t14">L</div></div>
</div>
<div class="row-fluid top-bottom-pad gamerow">
<!--<div class="span2"><img src="http://placehold.it/300x300"/></div>-->
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t20">C</div></div>
<div class="span2"><div class="boardtile gametile gametiletext player" id="t21">O</div></div>
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t22">M</div></div>
<div class="span2"><div class="boardtile gametile gametiletext player" id="t23">E</div></div>
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t24">W</div></div>
</div>
<div class="row-fluid top-bottom-pad gamerow">
<!--<div class="span2"><img src="http://placehold.it/300x300"/></div>-->
<div class="span2"><div class="boardtile gametile gametiletext player" id="t30">E</div></div>
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t31">L</div></div>
<div class="span2"><div class="boardtile gametile gametiletext player" id="t32">C</div></div>
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t33">O</div></div>
<div class="span2"><div class="boardtile gametile gametiletext player" id="t34">M</div></div>
</div>
<div class="row-fluid top-bottom-pad gamerow">
<!--<div class="span2"><img src="http://placehold.it/300x300"/></div>-->
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t40">E</div></div>
<div class="span2"><div class="boardtile gametile gametiletext player" id="t41">W</div></div>
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t42">E</div></div>
<div class="span2"><div class="boardtile gametile gametiletext player" id="t43">L</div></div>
<div class="span2"><div class="boardtile gametile gametiletext opponent" id="t44">C</div></div>
</div>
</div>
<!-- /container -->
<!--<div id="debugStatus"></div>-->
<div class="pagination-centered hide" id="statusFooter">
<a class="btn btn-info" id="btnNudgeViaFacebook">
Nudge your opponent via Facebook
</a>
</div>
<!-- /container -->
<!-- dialogs -->
<!-- setup modal -->
<div id="setupModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header" id="setupModalHeader">
<!--<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>-->
<h3 id="setupModalLabel">Welcome<!--placeholder--></h3>
</div>
<div class="modal-body" id="setupModalBody">
<div id="setupModalBodyText">Enjoy!<!--placeholder--></div>
<div id="fb-root"></div>
<!-- These forms are hidden and shown depending on the state -->
<form class="form-horizontal" id="setupGameIdForm">
<div class="control-group">
<label class="control-label" for="inputGameId">Game room</label>
<div class="controls">
<input type="text" placeholder="Game room" id="inputGameId">
<select id="inputGameIdDropdown">
</select>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputGameLanguage">Tiles</label>
<div class="controls">
<select id="inputGameLanguage">
<option value="en">English</option>
<option value="jp">Japanese</option>
<option value="ma">Math</option>
</select>
</div>
</div>
<!--<button type="submit" class="btn">Go to game</button>-->
</form>
<form class="form-horizontal" id="setupSignUpForm">
<div class="control-group">
<label class="control-label" for="inputUsername">Name</label>
<div class="controls">
<input type="text" id="inputUsername" placeholder="Nickname in this room">
<input type="hidden" id="inputFbUserid">
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputPassword">Password</label>
<div class="controls">
<input type="password" id="inputPassword" placeholder="Simple Password (Optional)">
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox">
<input type="checkbox" id="inputRemberLogin" checked> Remember me
</label>
<!-- <button type="submit" class="btn">Sign in</button>-->
</div>
</div>
</form>
<form class="form-horizontal" id="setupGameShare">
<div class="control-group">
<label class="control-label" for="inputGameURL">Sharing the link</label>
<div class="controls">
<input type="text" id="inputGameURL" readonly/>
</div>
</div>
<div class="control-group">
<label class="control-label" for="inputGameFacebook">Request via Facebook</label>
<div class="controls">
<input type="button" id="inputGameFacebook" value="Send Game Request to your friend!"/>
</div>
</div>
<!--<button type="submit" class="btn">Go to game</button>-->
</form>
<!-- end forms -->
</div>
<div class="modal-footer">
<button type="button" class="btn" id="setupModalStart">Another room</button>
<button type="button" class="btn" id="setupModalFacebook">Login via Facebook</button>
<button type="button" class="btn btn-primary" id="setupModalPrimary">Continue</button>
</div>
</div>
<!-- end setup modal -->
<!-- user feedback -->
<div id="feedbackModal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="feedbackModalLabel"></h3>
</div>
<div class="modal-body">
<div id="feedbackModalBodyText"><!--placeholder--></div>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">Close</a>
</div>
</div>
<!-- end user feedback -->
<!-- Link to game room -->
<div id="linkModal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="linkModalLabel"></h3>
</div>
<div class="modal-body">
<div id="linkModalBodyText">With the following link you can play on any browser, mobile or desktop, and within or without Facebook.</div>
<form class="form-horizontal">
<div class="control-group">
<label class="control-label" for="inputGameURLLink">Sharing the link</label>
<div class="controls">
<input type="text" id="inputGameURLLink" readonly/>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">Close</a>
</div>
</div>
<!-- end link to game room -->
<!-- statistics -->
<div id="statsModal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="statsModalLabel"></h3>
</div>
<div class="modal-body">
<div id="statsModalBodyText">
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Categories</th>
<th>Words left</th>
</tr>
</thead>
<tbody id="statsModalTableBody">
</tbody>
</table>
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Word Length</th>
<th>Words left</th>
</tr>
</thead>
<tbody id="lengthStatsModalTableBody">
</tbody>
</table>
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Used Words</th>
<th>Submitted By</th>
</tr>
</thead>
<tbody id="allSubmissionsTableBody">
</tbody>
</table>
</div>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">Close</a>
</div>
</div>
<!-- end user feedback -->
<!-- statistics -->
<div id="debugModal" class="modal hide fade">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="debugModalLabel"></h3>
</div>
<div class="modal-body">
<div id="debugModalBodyText">
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Variables</th>
<th>Value</th>
</tr>
</thead>
<tbody id="debugModalTableBody">
</tbody>
</table>
</div>
<div id="debugModalExtraText">
</div>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-dismiss="modal" aria-hidden="true">Close</a>
</div>
</div>
<!-- end statistics -->
<!-- end dialogs -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<!--<script src="js/jquery-1.8.3.min.js"></script>-->
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/jquery.ui.touch-punch.min.js"></script>
<!--<script src="js/bootbox.min.js"></script>-->
<script src="js/purl.js"></script>
<!-- <script src="js/jquery.fitText.js"></script>-->
<script src="https://connect.facebook.net/en_US/all.js"></script>
<script src="js/game.japanese.js"></script>
<script src="js/game.score.js"></script>
<script src="js/game.storage.js"></script>
<script src="js/game.helper.js"></script>
<script src="js/game.menu.js"></script>
<script src="js/game.ui.js"></script>
<script src="js/game.facebook.js"></script>
<script src="js/game.setup.js"></script>
<script src="js/game.idle.js"></script>
<script src="js/game.control.js"></script>
</body>
</html>