-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
404 lines (225 loc) · 12.6 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
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Picture That!</title>
<link rel="stylesheet" href="picture_that.css" />
<link rel="stylesheet" href="themes/picture_this.min.css" />
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.1/jquery.mobile.structure-1.1.1.min.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/mobile/1.1.1/jquery.mobile-1.1.1.min.js"></script>
<!--Probably should delete this copy of kineticjs on the server -->
<!-- <script type="text/javascript" src="kineticjs.js"></script>-->
<script type="text/javascript" src="http://www.html5canvastutorials.com/libraries/kinetic-v3.10.4.js"></script>
</head>
<body>
<div data-role="page" id="start_page" data-theme="a" data-transition="flow" data-title="Picture That!">
<div data-role="header">
<h1>Picture That!</h1>
</div> <!--Header-->
<div data-role="content">
<div class="login_button">
<label for"sign_up">New User?</label>
<input type="button" id="sign_up" value="Sign Up" />
</div> <!--Sign Up Button-->
<br />
<br />
<br />
<div class="login_button">
<label for="login_start">Returning User?</label>
<input type="button" id="login_start" value="Login" />
</div> <!--Login Button-->
<br />
<br />
</div> <!--Content-->
<div data-role="footer">
<h4>Copyright Picture That! LLC.</h4>
</div><!-- Footer -->
</div> <!--Start Page-->
<div data-role="dialog" data-transition="pop" id="login_page" data-theme="a" data-title="User Login">
<br />
<div data-role="fieldcontain">
<label for="username">Username</label>
<input type="text" value="" placeholder="Username" id="username" />
</div> <!--End of username field-->
<div data-role="fieldcontain">
<label for="password">Password</label>
<input type="password" value="" placeholder="Password" id="password" />
</div> <!--End of password field -->
<div data-role="fieldcontain">
<div class="login_button">
<input type="button" id="login" value="Login"/>
</div> <!--Login Button-->
</div>
<br />
</div> <!--Login Dialouge Window (Pop Up)-->
<div data-role="dialog" data-transition="pop" id="sign_up_page" data-theme="a" data-title="Sign Up">
<label for="desired_username">Desired Username</label>
<input type="text" id="desired_username" />
<label for="email">Email</label>
<input type="text" id="email" />
<label for="desired_password">Password</label>
<input type="password" id="desired_password" />
<label for="repeat_password">Repeat Password</label>
<input type="password" id="repeat_password" />
<br />
<input type="button" id="sign_up_submit" inline="true" data-icon="check" data-iconpos="left" value="Submit" />
</div> <!--Sign Up Dialouge Window (Pop Up) -->
<div data-role="page" id="home_page" data-theme="a" data-title="Home" data-transition="flow">
<div data-role="header" data-id="head_navigation" data-position="fixed" >
<h1>Picture That!</h1>
<a href="#settings_page" data-icon="gear" data-role="button">Settings</a>
<div data-role="navbar" data-iconpos="left" >
<ul>
<li><a class="ui-btn-active ui-state-persist" href="#home_page" data-role="button" data-icon="home">Home</a></li>
<li><a class="ui-btn-active ui-state-persist" data-role="button" href="#user_search_page">New Game</a></li>
<li><a class="ui-btn-active ui-state-persist" href="#creation_page" data-role="button" >Create Puzzle</a></li>
<li><a class="ui-btn-active ui-state-persist" href="#" data-role="button">Current Games</a></li>
<li><a class="ui-btn-active ui-state-persist" href="#" data-role="button">Picto-Feed</a></li>
</ul>
</div> <!--Nabar-->
</div> <!--Header-->
<div data-role="content">
<div id="introduction">
<p style="text-align:center;"><b>Welcome to <i>Picture That!</i></b> <br/><br />
Picture That! brings the wit and hilarity of pictograms to life by having you define the pictogram with pictures of your choosing!
Think your creative enough to take no more than four pictures to get grandma to guess the phrase "You only live once"?
Just by playing you are guaranteed more laughs than you can handle, and maybe some bragging rights (if you're lucky).
<br />
<br />
So jump right in by inviting your friends to a game now!
</p>
</div>
<br />
</div> <!-- Content-->
<div data-role="footer">
<h4>Copyright Picture That! LLC.</h4>
</div><!-- /footer -->
</div> <!--Home Page-->
<div data-role="page" id="creation_page" data-theme="a" data-transition="flow" data-title="Create!">
<div data-role="header" data-id="head_navigation" data-position="fixed" >
<h1>Picture That!</h1>
<a href="#settings_page" data-icon="gear" data-role="button">Settings</a>
<div data-role="navbar" data-iconpos="left" >
<ul>
<li><a class="ui-btn-active ui-state-persist" href="#home_page" data-role="button" data-icon="home">Home</a></li>
<li><a class="ui-btn-active ui-state-persist" data-role="button" href="#user_search_page">New Game</a></li>
<li><a class="ui-btn-active ui-state-persist" href="#creation_page" data-role="button" >Create Puzzle</a></li>
<li><a class="ui-btn-active ui-state-persist" href="#" data-role="button">Current Games</a></li>
<li><a class="ui-btn-active ui-state-persist" href="#" data-role="button">Picto-Feed</a></li>
</ul>
</div> <!--Nabar-->
</div> <!--Header-->
<div data-role="content">
<!-- <ul data-role="listview" data-theme="a">
<li data-icon="plus">
<a href="#image_upload_window" data-icon="plus" id="add_image_button">Add Image</a>
</li>
<li data-icon="plus">
<a href="#text_upload_window" id="add_text_button">Add Text</a>
</li>
<li data-icon="plus">
<a href="#symbol_upload_window" data-icon="plus" id="add_symbol_button">Add Symbol</a>
</li>
<li data-icon="delete">
<a href="" data-icon="" id="erase_canvas">Clear Puzzle</a>
</li>
<li data-icon="star">
<a id="save_image">Save Puzzle</a>
</li>
<li data-icon="info">
<a id="load_image">Load Puzzle</a>
</li>
</ul>-->
<div id="creation_canvas"></div> <!--Canvas Used for Primary Game Display-->
</div><!-- /content -->
<div data-role="footer">
<h4>Copyright Picture That! LLC.</h4>
</div><!-- /footer -->
</div> <!--Creation Page-->
<div data-role="dialog" data-transition="pop" id="user_search_page" data-theme="a" data-title="User Search">
<div id="user_entry">
<p>Opponents Username</p>
<input type="text" id="user_to_search" />
</div> <!--User to search-->
<div >
<input type="button" id="user_search_button" value="Search" />
</div> <!--Search Button-->
</div> <!--User Search Dialouge Window (Pop Up)-->
<div data-role="dialog" data-transition="pop" id="image_upload_window" data-theme="a" data-title="Upload Image">
<p style="text-align:left;"><b>Enter the URL of an internet image</b></p>
<input type="text" id="url" value=""/>
<br />
<b> OR</b>
<br />
<br />
<b>Upload an image</b>
<br />
<input type="file" id="image_uploaded" accept="image/*" multiple />
<br />
<br />
<input type="button" id="upload_image_button" value="Upload" />
</div> <!--Image Upload Window (Pop Up)-->
<div data-role="dialog" data-transition="pop" id="text_upload_window" data-theme="a" data-title="Upload Text">
<p style="text-align:left;"><b>Enter Text</b></p>
<input type="text" id="component_text" />
<input type="button" id="upload_text" value="Upload" />
</div> <!--Text Upload Window (Pop Up)-->
<div data-role="dialog" data-transition="pop" id="symbol_upload_window" data-theme="a" data-title="Upload Symbol">
<h3 style="text-align:center; padding-top:2px;">Choose Symbol</h3>
<div class="ui-grid-a">
<div class="ui-block-a">
<div data-role="controlgroup">
<a id="equals" data-role="button">=</a>
<a id="carrot" data-role="button">^</a>
<a id="and" data-role="button">&</a>
<a id="at_sign" data-role="button">@</a>
<a id="pound_sign" data-role="button">#</a>
<a id="less_than" data-role="button"><</a>
</div> <!--Control Group-->
</div> <!--Block A-->
<div class="ui-block-b">
<div data-role="controlgroup">
<a id="exclmation_point" data-role="button">!</a>
<a id="question_mark" data-role="button">?</a>
<a id="plus" data-role="button">+</a>
<a id="minus" data-role="button">-</a>
<a id="slash" data-role="button">/</a>
<a id="greater_than" data-role="button">></a>
</div> <!--Control Group-->
</div> <!--Block B-->
</div> <!-- End UI Grid-->
</div> <!--Symbol Upload Window (Pop Up)-->
<div data-role="page" id="settings_page" data-theme="a" data-transition="flow" data-title="Settings">
<div data-role="content">
<label for="flip-1">Select slider:</label>
<select name="flip-1" id="flip-1" data-role="slider">
<option value="off">Off</option>
<option value="on">On</option>
</select>
<br />
<label for="slider-1">Input slider:</label>
<input type="range" name="slider-1" id="slider-1" value="60" min="0" max="100" />
<br />
<fieldset data-role="controlgroup" data-mini="true">
<input type="radio" name="radio-mini" id="radio-mini-1" value="choice-1" checked="checked" />
<label for="radio-mini-1">Credit</label>
<input type="radio" name="radio-mini" id="radio-mini-2" value="choice-2" />
<label for="radio-mini-2">Debit</label>
<input type="radio" name="radio-mini" id="radio-mini-3" value="choice-3" />
<label for="radio-mini-3">Cash</label>
</fieldset>
<br />
<label><input type="checkbox" name="checkbox-0" /> I agree </label>
<input type="checkbox" name="checkbox-1" id="checkbox-1" class="custom" />
<label for="checkbox-1">I agree</label>
</div><!-- /content -->
<div data-role="footer">
<h4>Copyright Picture That! LLC.</h4>
</div><!-- /footer -->
</div> <!--Settings Page-->
</body>
<script type="text/javascript" src="test_script2.js"></script>
<script type="text/javascript" src="creation_canvas.js"></script>
</html>