-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
581 lines (568 loc) · 38.6 KB
/
index.html
File metadata and controls
581 lines (568 loc) · 38.6 KB
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
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
<!doctype html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="./semantic-ui/dist/semantic.min.css">
<link rel="stylesheet" type="text/css" href="./main.css">
<link rel="stylesheet" type="text/css" href="./chessboard.css">
<script src="/jquery/dist/jquery.js"></script>
<script src="./pdf.js"></script>
<script type="text/javascript" src="./snake_game.js"></script>
</head>
<body>
<div>
<div>
<div>
<div id="particleHolder" style="display:block;background: radial-gradient(rgb(27, 201, 142), rgb(11, 90, 63)); z-index: 5; transform: translate3d(0px, 0px, 0px);">
<div style="position: relative;
text-align: center;
color: white;">
<div id="particlesContainer" style="width:100%;height:750px">
</div>
<div style="position: absolute;
top: 40%;
left: 50%;
transform: translate(-50%, -50%);">
<h1 class="connectionAtStart" style="font-size:38px">Canvas</h1>
<div class="ui text connectionAtStart" style="margin:10px;border-width:2px;borderColor:#fff;border-style:dashed;border-radius:5px" id="myId"></div>
<div class="ui left icon input connectionAtStart" style="margin:10px">
<input type="text" placeholder="Partner id" id="partner">
<i class="add user icon"></i>
</div>
<div class="ui text info">
Share your id to connect.
</div>
</div>
<div class="ui text browseGuest" onclick="browseAsGuest()" style="position: fixed;
bottom: 40px;
right: 46%;
z-index: 9;">
Browse as guest.
</div>
</div>
</div>
<div class="ui" style="display:none;padding-left:80px;background:#f8f8f8;height:750px" id="showOnConnect">
<div id="sideBarContent" class="ui left demo vertical visible inverted sidebar labeled icon menu" style="margin-top:60px;display:none">
<a class="item" onclick="showDashBoard()">
<i class="home icon"></i>
Home
</a>
<a class="item" onclick="showCanvas()">
<i class="write icon"></i>
Canvas
</a>
<a class="item" onclick="showVoiceCall()">
<i class="call icon"></i>
Voice
</a>
<a class="item" onclick="showVideoCall()">
<i class="photo icon"></i>
Video
</a>
<a class="item" onclick="showGames()">
<i class="game icon"></i>
Games
</a>
<a class="item" onCLick="showPDF()">
<i class="file pdf outline icon"></i>
PDF
</a>
<a class="item" onCLick="showDropbox()">
<i class="dropbox icon"></i>
File
</a>
<a class="item" onCLick="disconnect()">
<i class="power icon"></i>
End
</a>
</div>
<div class="ui prompt modal">
<div class="header" id="setPromptHeader"></div>
<div class="content" id="setPromptContent">
</div>
<div class="actions">
<div class="ui blue approve button">Ok</div>
</div>
</div>
<div class="ui decision modal">
<div class="header" id="setDecisionHeader">Decision</div>
<div class="content" id="setDecisionContent">
</div>
<div class="actions">
<div class="ui blue approve button">Ok</div>
<div class="ui cancel button">Cancel</div>
</div>
</div>
<div style="width:100%;height:60px;text-align:center;background:#fff;padding-top:5px;box-shadow: 0 0px 3px rgba(0, 0, 0, 0.25), 0 0px 3px rgba(0, 0, 0, 0.22)">
<img src="./img/canvas.png" alt="" style="width:160px;height:50px">
</div>
<div class="ui grid">
<div class="one wide column">
<i id="backButton" style="margin-top:25px;margin-left:30px" class="chevron backButton left big icon" onclick="showDashBoard()"></i>
</div>
<div class="six wide column">
<h1 id="currentWindow" style="color:#a8a8a8;margin-top:20px">DashBoard</h1></div>
<div class="four wide column"></div>
<div class="ui three wide column">
<div id="connect_notify" style="float:left;margin-top:25px"></div>
</div>
</div>
<div class="ui equal width center aligned padded grid">
<div id="dashboard_section" class="row">
<div class="column">
<div style="margin:0px 80px 0px 80px">
<div class="ui three column stackable grid">
<div class="cardItem column">
<div class="cardHover" onclick="showCanvas()">
<div class="content" style="text-align:center;padding:20px">
<div class="ui image " style="height:100px">
<div>
<i class="write large icon" style="color:#3f3f3f"></i>
</div>
</div>
<div style="padding-bottom:20px">
<a class="header highlightHeader">
Canvas
</a>
</div>
</div>
</div>
</div>
<div class="cardItem column">
<div class="cardHover" onclick="showVoiceCall()">
<div class="content" style="text-align:center;padding:20px">
<div class="ui image " style="height:100px">
<div>
<i class="call large icon" style="color:#3f3f3f"></i>
</div>
</div>
<div style="padding-bottom:20px">
<a class="header highlightHeader">
Call
</a>
</div>
</div>
</div>
</div>
<div class="cardItem column">
<div class="cardHover" onclick="showPDF()">
<div class="content" style="text-align:center;padding:20px">
<div class="ui image " style="height:100px">
<div>
<i class="file pdf outline large icon" style="color:#3f3f3f"></i>
</div>
</div>
<div style="padding-bottom:20px">
<a class="header highlightHeader">
PDF Share
</a>
</div>
</div>
</div>
</div>
<div class="cardItem column">
<div class="cardHover" onclick="showVideoCall()">
<div class="content" style="text-align:center;padding:20px">
<div class="ui image " style="height:100px">
<div>
<i class="photo large icon" style="color:#3f3f3f"></i>
</div>
</div>
<div style="padding-bottom:20px">
<a class="header highlightHeader">
Video
</a>
</div>
</div>
</div>
</div>
<div class="cardItem column">
<div class="cardHover" onclick="showGames()">
<div class="content" style="text-align:center;padding:20px">
<div class="ui image " style="height:100px">
<div>
<i class="game large icon" style="color:#3f3f3f"></i>
</div>
</div>
<div style="padding-bottom:20px">
<a class="header highlightHeader">
Games
</a>
</div>
</div>
</div>
</div>
<div class="cardItem column">
<div class="cardHover" onclick="showDropbox()">
<div class="content" style="text-align:center;padding:20px">
<div class="ui image " style="height:100px">
<div>
<i class="dropbox large icon" style="color:#3f3f3f"></i>
</div>
</div>
<div style="padding-bottom:20px">
<a class="header highlightHeader">
File Share Spot
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="canvas_section" class="row" style="margin-left:40px">
<div class="column">
<section id="draw">
<div class="row" style="padding-top: 20px">
<canvas id="canvas" resize="" style="user-select: none; touch-action: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(1, 0, 0, 0);" width="1290" height="553" data-paper-scope="1">
</canvas>
<div class="ui button blue" id="drawMode" onCLick=toggleMode()>Point Mode</div>
<div class="ui button blue" onclick="my_clear()">Clean</div>
</div>
</section>
</div>
</div>
<div id="dropbox_section" class="row" style="padding-top:30px">
<div class="column">
<div class="ui segment" style="width:100%;height:500px">
<form>
<input type="file" multiple>
<i style="margin-top:80px" class="cloud upload massive grey icon"></i>
<div style="margin-top:40px;margin-bottom:40px"></div>
<span>Drag your files here or click in this area.</span>
</form>
</div>
<div class="ui segment">
<div class="ui text" id="progress" style="display: none;">
Received <span id="downloaded"></span> of <span id="file_size"></span> bytes
</div>
<div class="ui text" id="progress_sent" style="display: none;">
Sent <span id="sent"></span> of <span id="file_size_sent"></span> bytes
</div>
<table class="ui celled table">
<thead>
<tr>
<th>Preview</th>
<th>Name</th>
<th>Download</th>
</tr>
</thead>
<tbody id="download_table">
</tbody>
</table>
<ul id="sent_files">
</ul>
</div>
</div>
</div>
<div id="call_section" class="row">
<div class="column">
<div>
<div class="ui segment" style="width:100%;height:400px">
<div style="padding-top:10%">
<div class="ui blue button" id="voice_call">
Call
</div>
<div class="ui yellow button" id="cancel_call" style="display:none">
Cancel
</div>
<div class="ui red button" id="end_call" style="display : none">
End
</div>
</div>
</div>
<div id="voice" style="display: none;">
<audio id="their_voice" controls="" autoplay=""></audio>
</div>
</div>
</div>
</div>
<div id="video_call_section" class="row">
<div class="column">
<div>
<div class="ui segment">
<div class="ui blue button" id="video_call">
Video Call
</div>
<div class="ui yellow button" id="cancel_video_call" style="display:none">
Cancel
</div>
<div class="ui red button" id="end_video_call" style="display : none">
End
</div>
</div>
<video id="their-video" width="50%" height="50%" style="z-index: 5; position: relative; margin-left: auto; margin-right: auto;" autoplay=""></video>
<div id="my-video-div">
<video id="my-video" muted="true" width="180" height="120" autoplay=""></video>
</div>
</div>
</div>
</div>
<div id="game_section" style="width:100%;padding-left:5%;margin-top:60px">
<div class="ui grid" id="gameContent">
<div class="cardItem" style="width:50%">
<div class="cardHover" onclick="showChess()">
<div class="content" style="text-align:center;padding:20px">
<div class="ui image " style="height:100px">
<div>
<i class="file pdf outline large icon" style="color:#3f3f3f"></i>
</div>
</div>
<div style="padding-bottom:20px">
<a class="header highlightHeader">
Chess
</a>
</div>
</div>
</div>
</div>
<div class="cardItem" style="width:50%">
<div class="cardHover" onclick="showSnake()">
<div class="content" style="text-align:center;padding:20px">
<div class="ui image " style="height:100px">
<div>
<i class="file pdf outline large icon" style="color:#3f3f3f"></i>
</div>
</div>
<div style="padding-bottom:20px">
<a class="header highlightHeader">
Duel Snake
</a>
</div>
</div>
</div>
</div>
</div>
<div id="chessView" style="display:none" class="row">
<div class="column">
<section id="chess_section">
<div id="board_div" align="center">
<div id="board" style="width:500px;">
<div class="chessboard-63f37">
<div class="board-b72b1" style="width: 464px;">
<div class="row-5277c">
<div class="square-55d63 white-1e1d7 square-a8" style="width: 58px; height: 58px" id="a8-bdb3-0f88-1b32-8c35-8470-fb7e-39b0-7325" data-square="a8">
<div class="notation-322f9 numeric-fc462">8</div><img src="./assets/bR.png" alt="" class="piece-417db" data-piece="bR" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-b8" style="width: 58px; height: 58px" id="b8-8c97-8044-0ae2-1a5b-e4ad-451d-1bae-9e82" data-square="b8"><img src="./assets/bN.png" alt="" class="piece-417db" data-piece="bN" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-c8" style="width: 58px; height: 58px" id="c8-7d1c-e456-d1da-1544-4f58-7b14-f071-c6d9" data-square="c8"><img src="./assets/bB.png" alt="" class="piece-417db" data-piece="bB" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-d8" style="width: 58px; height: 58px" id="d8-9e26-dc7c-9b21-d13d-2dbd-5c9b-4803-acca" data-square="d8"><img src="./assets/bQ.png" alt="" class="piece-417db" data-piece="bQ" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-e8" style="width: 58px; height: 58px" id="e8-f411-6f3a-2d46-c312-0b51-22dd-6902-641b" data-square="e8"><img src="./assets/bK.png" alt="" class="piece-417db" data-piece="bK" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-f8" style="width: 58px; height: 58px" id="f8-f0c6-0d41-c1c1-c0e5-e9f9-bdd3-e01d-9d01" data-square="f8"><img src="./assets/bB.png" alt="" class="piece-417db" data-piece="bB" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-g8" style="width: 58px; height: 58px" id="g8-55cf-e39a-906b-1bda-ca38-a63a-a5ca-ea88" data-square="g8"><img src="./assets/bN.png" alt="" class="piece-417db" data-piece="bN" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-h8" style="width: 58px; height: 58px" id="h8-7b3e-133f-3e13-3a3c-7959-afae-7121-1067" data-square="h8"><img src="./assets/bR.png" alt="" class="piece-417db" data-piece="bR" style="width: 58px;height: 58px;"></div>
<div class="clearfix-7da63"></div>
</div>
<div class="row-5277c">
<div class="square-55d63 black-3c85d square-a7" style="width: 58px; height: 58px" id="a7-c64a-3157-e5bd-4bd3-1b56-792f-fd45-fd30" data-square="a7">
<div class="notation-322f9 numeric-fc462">7</div><img src="./assets/bP.png" alt="" class="piece-417db" data-piece="bP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-b7" style="width: 58px; height: 58px" id="b7-c37a-47ed-a971-c3e5-52cc-d99d-2b0a-1153" data-square="b7"><img src="./assets/bP.png" alt="" class="piece-417db" data-piece="bP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-c7" style="width: 58px; height: 58px" id="c7-1ceb-49bd-cdd3-db74-da36-0214-d29f-9a2e" data-square="c7"><img src="./assets/bP.png" alt="" class="piece-417db" data-piece="bP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-d7" style="width: 58px; height: 58px" id="d7-0d43-cfa1-1b77-e80f-a37c-55c9-2715-4f6b" data-square="d7"><img src="./assets/bP.png" alt="" class="piece-417db" data-piece="bP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-e7" style="width: 58px; height: 58px" id="e7-6f54-03f0-cde1-0aae-6af9-05f0-6eed-d293" data-square="e7"><img src="./assets/bP.png" alt="" class="piece-417db" data-piece="bP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-f7" style="width: 58px; height: 58px" id="f7-5de3-aab0-48bb-a072-6317-1bc5-b7ca-1ac9" data-square="f7"><img src="./assets/bP.png" alt="" class="piece-417db" data-piece="bP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-g7" style="width: 58px; height: 58px" id="g7-28ad-c10f-79d9-85c6-22de-3764-0d53-0b03" data-square="g7"><img src="./assets/bP.png" alt="" class="piece-417db" data-piece="bP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-h7" style="width: 58px; height: 58px" id="h7-db30-a90d-5b68-17c8-9852-77be-b16b-53b5" data-square="h7"><img src="./assets/bP.png" alt="" class="piece-417db" data-piece="bP" style="width: 58px;height: 58px;"></div>
<div class="clearfix-7da63"></div>
</div>
<div class="row-5277c">
<div class="square-55d63 white-1e1d7 square-a6" style="width: 58px; height: 58px" id="a6-46a1-91c8-9964-453c-4b70-9fa0-b497-8384" data-square="a6">
<div class="notation-322f9 numeric-fc462">6</div>
</div>
<div class="square-55d63 black-3c85d square-b6" style="width: 58px; height: 58px" id="b6-8742-ab51-50f4-f164-0c40-754f-2dac-e6ca" data-square="b6"></div>
<div class="square-55d63 white-1e1d7 square-c6" style="width: 58px; height: 58px" id="c6-4dd9-60cc-691b-3b83-778f-ffc1-f7e9-e480" data-square="c6"></div>
<div class="square-55d63 black-3c85d square-d6" style="width: 58px; height: 58px" id="d6-49a9-752c-b120-06bf-21b7-2125-c31e-cc0d" data-square="d6"></div>
<div class="square-55d63 white-1e1d7 square-e6" style="width: 58px; height: 58px" id="e6-6cc1-b097-f204-917b-3154-f998-80ae-3677" data-square="e6"></div>
<div class="square-55d63 black-3c85d square-f6" style="width: 58px; height: 58px" id="f6-bc03-b8c5-7f85-faf7-2295-d014-b23b-320d" data-square="f6"></div>
<div class="square-55d63 white-1e1d7 square-g6" style="width: 58px; height: 58px" id="g6-e349-3017-937e-1fbe-31ff-448c-d6a8-b8fa" data-square="g6"></div>
<div class="square-55d63 black-3c85d square-h6" style="width: 58px; height: 58px" id="h6-488b-4d02-ad5e-831d-622c-0e06-6011-f877" data-square="h6"></div>
<div class="clearfix-7da63"></div>
</div>
<div class="row-5277c">
<div class="square-55d63 black-3c85d square-a5" style="width: 58px; height: 58px" id="a5-7279-fc5d-5ee6-a91f-27e6-2451-0814-2e3d" data-square="a5">
<div class="notation-322f9 numeric-fc462">5</div>
</div>
<div class="square-55d63 white-1e1d7 square-b5" style="width: 58px; height: 58px" id="b5-2813-c963-f2ee-4cef-ec65-9def-3cdf-b03f" data-square="b5"></div>
<div class="square-55d63 black-3c85d square-c5" style="width: 58px; height: 58px" id="c5-6402-dce4-e259-7c81-ecb2-a36b-f804-9bc3" data-square="c5"></div>
<div class="square-55d63 white-1e1d7 square-d5" style="width: 58px; height: 58px" id="d5-0ddb-a2af-c449-80b5-4c93-ddd7-b119-3344" data-square="d5"></div>
<div class="square-55d63 black-3c85d square-e5" style="width: 58px; height: 58px" id="e5-555b-420f-5d28-3823-a1cb-bf41-a5d9-a67f" data-square="e5"></div>
<div class="square-55d63 white-1e1d7 square-f5" style="width: 58px; height: 58px" id="f5-150a-f498-de30-789b-eed8-6243-1782-a78b" data-square="f5"></div>
<div class="square-55d63 black-3c85d square-g5" style="width: 58px; height: 58px" id="g5-af0c-b6ea-9363-66e2-807c-dd2c-729a-6f4e" data-square="g5"></div>
<div class="square-55d63 white-1e1d7 square-h5" style="width: 58px; height: 58px" id="h5-26f4-619b-cb61-e6b9-8d91-ca45-3c7a-3525" data-square="h5"></div>
<div class="clearfix-7da63"></div>
</div>
<div class="row-5277c">
<div class="square-55d63 white-1e1d7 square-a4" style="width: 58px; height: 58px" id="a4-338b-89eb-7c40-2cb2-3dea-f935-fac7-d14f" data-square="a4">
<div class="notation-322f9 numeric-fc462">4</div>
</div>
<div class="square-55d63 black-3c85d square-b4" style="width: 58px; height: 58px" id="b4-e6af-d0bc-aed3-22f8-ce61-ab09-af90-380c" data-square="b4"></div>
<div class="square-55d63 white-1e1d7 square-c4" style="width: 58px; height: 58px" id="c4-f7ef-3622-63db-96c7-91d0-768a-3663-e2e1" data-square="c4"></div>
<div class="square-55d63 black-3c85d square-d4" style="width: 58px; height: 58px" id="d4-f9d2-4921-1467-04f9-f8e7-9528-2ad7-b504" data-square="d4"></div>
<div class="square-55d63 white-1e1d7 square-e4" style="width: 58px; height: 58px" id="e4-b351-b9e8-026e-2065-077e-c086-bd6c-7687" data-square="e4"></div>
<div class="square-55d63 black-3c85d square-f4" style="width: 58px; height: 58px" id="f4-fcc9-baef-01b5-e482-3a3f-14c7-9a04-dc65" data-square="f4"></div>
<div class="square-55d63 white-1e1d7 square-g4" style="width: 58px; height: 58px" id="g4-0ddb-e908-4052-b209-df56-0f4f-0cd4-fa08" data-square="g4"></div>
<div class="square-55d63 black-3c85d square-h4" style="width: 58px; height: 58px" id="h4-619c-e9f7-9a3c-8dfd-f28a-5416-b33d-f34d" data-square="h4"></div>
<div class="clearfix-7da63"></div>
</div>
<div class="row-5277c">
<div class="square-55d63 black-3c85d square-a3" style="width: 58px; height: 58px" id="a3-81be-b228-4349-fce3-d0b9-2762-e134-e95e" data-square="a3">
<div class="notation-322f9 numeric-fc462">3</div>
</div>
<div class="square-55d63 white-1e1d7 square-b3" style="width: 58px; height: 58px" id="b3-c2ff-11bf-2de2-2851-4b4f-9eb2-6138-176e" data-square="b3"></div>
<div class="square-55d63 black-3c85d square-c3" style="width: 58px; height: 58px" id="c3-b713-8b46-8a89-df42-c384-cd7b-b193-490e" data-square="c3"></div>
<div class="square-55d63 white-1e1d7 square-d3" style="width: 58px; height: 58px" id="d3-8276-359f-f1a8-78b6-b7ed-a3cd-3c67-fd6c" data-square="d3"></div>
<div class="square-55d63 black-3c85d square-e3" style="width: 58px; height: 58px" id="e3-1bc0-5729-3d98-ba70-bfc1-7dca-aa04-b0b8" data-square="e3"></div>
<div class="square-55d63 white-1e1d7 square-f3" style="width: 58px; height: 58px" id="f3-f1f2-f11f-6683-26a9-c244-3f4a-c317-c6b5" data-square="f3"></div>
<div class="square-55d63 black-3c85d square-g3" style="width: 58px; height: 58px" id="g3-3036-96ff-60d0-fbb4-9356-032a-11e5-2274" data-square="g3"></div>
<div class="square-55d63 white-1e1d7 square-h3" style="width: 58px; height: 58px" id="h3-931f-c7c5-d74e-74bb-5cd5-201c-a5a5-46da" data-square="h3"></div>
<div class="clearfix-7da63"></div>
</div>
<div class="row-5277c">
<div class="square-55d63 white-1e1d7 square-a2" style="width: 58px; height: 58px" id="a2-0ceb-603e-eb8f-9a5a-c819-5600-6180-6924" data-square="a2">
<div class="notation-322f9 numeric-fc462">2</div><img src="./assets/wP.png" alt="" class="piece-417db" data-piece="wP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-b2" style="width: 58px; height: 58px" id="b2-0138-0610-88c9-52dd-ebd4-6871-ce71-c45e" data-square="b2"><img src="./assets/wP.png" alt="" class="piece-417db" data-piece="wP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-c2" style="width: 58px; height: 58px" id="c2-5a1c-99d3-c89c-6173-4c74-a39a-8915-e2fe" data-square="c2"><img src="./assets/wP.png" alt="" class="piece-417db" data-piece="wP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-d2" style="width: 58px; height: 58px" id="d2-f2cd-0318-bfe1-0449-bf3f-5d05-9489-caac" data-square="d2"><img src="./assets/wP.png" alt="" class="piece-417db" data-piece="wP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-e2" style="width: 58px; height: 58px" id="e2-87a7-38ef-e013-8f5a-3e73-60f6-20bb-a241" data-square="e2"><img src="./assets/wP.png" alt="" class="piece-417db" data-piece="wP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-f2" style="width: 58px; height: 58px" id="f2-5e04-4685-2b46-9469-164e-4d9c-4ef2-7462" data-square="f2"><img src="./assets/wP.png" alt="" class="piece-417db" data-piece="wP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-g2" style="width: 58px; height: 58px" id="g2-bbfd-0ec4-bfa9-7116-afd3-7ff8-ba29-517b" data-square="g2"><img src="./assets/wP.png" alt="" class="piece-417db" data-piece="wP" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-h2" style="width: 58px; height: 58px" id="h2-fa6b-e21a-a6e2-7bfe-e28a-2082-29e5-f7ca" data-square="h2"><img src="./assets/wP.png" alt="" class="piece-417db" data-piece="wP" style="width: 58px;height: 58px;"></div>
<div class="clearfix-7da63"></div>
</div>
<div class="row-5277c">
<div class="square-55d63 black-3c85d square-a1" style="width: 58px; height: 58px" id="a1-ac86-0de0-d66e-e799-6cab-c299-d6d6-05dc" data-square="a1">
<div class="notation-322f9 alpha-d2270">a</div>
<div class="notation-322f9 numeric-fc462">1</div><img src="./assets/wR.png" alt="" class="piece-417db" data-piece="wR" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-b1" style="width: 58px; height: 58px" id="b1-208b-f929-b20d-73a3-4d31-1eb5-b850-fdcb" data-square="b1">
<div class="notation-322f9 alpha-d2270">b</div><img src="./assets/wN.png" alt="" class="piece-417db" data-piece="wN" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-c1" style="width: 58px; height: 58px" id="c1-0f13-0e4b-f4dc-a44b-8111-4094-89c9-4640" data-square="c1">
<div class="notation-322f9 alpha-d2270">c</div><img src="./assets/wB.png" alt="" class="piece-417db" data-piece="wB" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-d1" style="width: 58px; height: 58px" id="d1-c153-41eb-8b43-01d8-ad51-930d-5a3e-a77c" data-square="d1">
<div class="notation-322f9 alpha-d2270">d</div><img src="./assets/wQ.png" alt="" class="piece-417db" data-piece="wQ" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-e1" style="width: 58px; height: 58px" id="e1-e540-8ecd-a999-d777-8ad0-4c77-e8a2-ae0c" data-square="e1">
<div class="notation-322f9 alpha-d2270">e</div><img src="./assets/wK.png" alt="" class="piece-417db" data-piece="wK" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-f1" style="width: 58px; height: 58px" id="f1-ed91-51cc-5c33-d8ea-88f6-541a-84aa-15fa" data-square="f1">
<div class="notation-322f9 alpha-d2270">f</div><img src="./assets/wB.png" alt="" class="piece-417db" data-piece="wB" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 black-3c85d square-g1" style="width: 58px; height: 58px" id="g1-f680-f26a-c57a-ea93-3a4f-d628-0dcb-9a9b" data-square="g1">
<div class="notation-322f9 alpha-d2270">g</div><img src="./assets/wN.png" alt="" class="piece-417db" data-piece="wN" style="width: 58px;height: 58px;"></div>
<div class="square-55d63 white-1e1d7 square-h1" style="width: 58px; height: 58px" id="h1-c6f4-76a6-b46b-a0e3-69c8-c1d2-ad22-1ebe" data-square="h1">
<div class="notation-322f9 alpha-d2270">h</div><img src="./assets/wR.png" alt="" class="piece-417db" data-piece="wR" style="width: 58px;height: 58px;"></div>
<div class="clearfix-7da63"></div>
</div>
</div>
</div>
</div>
<div>
<div style="margin-top:10px">
<div class="ui button" id="chess_new_game">New Game</div>
<!-- <button >New Game</button> -->
<div class="ui button" id="chess_flip_board"> Flip Board</div>
</div>
</div>
</div>
<div style="text-align:center;">
<br>
<div class="ui text" id="chess_status">White to move</div>
</div>
</section>
</div>
</div>
<div id="snakeView" style="display:none;margin-left:24%" class="ui row">
<div class="column">
<canvas id="snake" width="450" height="450"></canvas>
<div class="ui blue button" onclick=shouldStartGame()>Start</div>
</div>
</div>
</div>
<div id="pdf_section" class="row" style="padding-top:10px;width:100%;height:700px">
<div class="column">
<div class="ui segment">
<div class="ui grid">
<div class="ten wide column">
<canvas id="pdf-holder-new" resize="" data-paper-scope="2"></canvas>
</div>
<div class="six wide column" style="background:#fff">
<div class="ui segment">
<div>
<label for="pdfLoader" class="ui icon grey button">
<i class="file icon"></i>
Open Pdf</label>
<input type="file" id="pdfLoader" style="display:none" onchange="loadPdf(event)">
</div>
</div>
<div class="ui segment" style="margin-top:20%">
<i class="minus big icon backButton" onclick="decrementScale()"></i>
<i class="plus big icon backButton" onclick="setScale(.8)"></i>
</div>
<div class="ui segment" style="margin-top:20%">
<div>
<div class="ui mini input" style="width:60px">
<input type="text" placeholder="jump" id="pageJump">
</div>
</div>
<div>
<div class="ui content" style="margin-bottom:10px">
<span id="page_num"></span> / <span id="page_count"></span>
</div>
</div>
<div>
<i class="chevron left big icon backButton" id="prev"></i>
<i class="chevron right big icon backButton" id="next"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="shout_box">
<div class="header">Text Chat
<span class="badge" id="unread_badge"></span>
<span id="typing_msg" style="display: none;">typing</span>
<div class="open_btn"> </div>
</div>
<div class="toggle_chat" style="display: none;">
<div class="message_box"></div>
<div class="user_info">
<input name="shout_message" id="shout_message" type="text" placeholder="Type Message Here">
</div>
</div>
</div>
</div>
<div/>
<script type="text/javascript" src="./peer.js"></script>
<script type="text/javascript" src="./responsivevoice.js"></script>
<script type="text/javascript" src="./dataProcess.js"></script>
<script type="text/javascript" src="./sideBarSwitcher.js"></script>
<script type="text/javascript" src="./connection.js"></script>
<script type="text/javascript" src="./chessboard.js"></script>
<script type="text/javascript" src="./chess.js"></script>
<script type="text/javascript" src="./chess_custom.js"></script>
<script type="text/javascript" src="./paper-full.min.js"></script>
<script type="text/javascript" src="./chat.js"></script>
<script type="text/javascript" src="./voiceCall.js"></script>
<script type="text/javascript" src="./videoCall.js"></script>
<script type="text/javascript" src="./jquery.linkify.min.js"></script>
<script type="text/javascript" src="./fileTransfer.js"></script>
<script type="text/javascript" src="./fileDataProcess.js"></script>
<script src="/socket.io-client/dist/socket.io.js"></script>
<script src="/particles.js/particles.js"></script>
<script type="text/javascript" src="/particlesEmbed.js"></script>
<script type="text/javascript" src="/pdfLoader.js"></script>
<script type="text/javascript" src="./test.js"></script>
<script src="/semantic-ui/dist/semantic.min.js"></script>
<script>
function send(data) {
if (connection != null && connection.peer != null) {
connection.send(data);
console.log("Sent: " + data);
} else {
console.log("not connected");
}
}
</script>
<script type="text/paperscript" src="./draw.js" canvas="canvas" data-script-scope="add"></script>
<script type="text/paperscript" src="./pdf_draw.js" canvas="pdf-holder-new" data-script-scope="add"></script>
</body>
</html>