-
Notifications
You must be signed in to change notification settings - Fork 20
/
stream.html
787 lines (750 loc) · 39.9 KB
/
stream.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
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
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="keywords" content="tcec,chess,engine,live,game,broadcast,event" />
<link id="favicon" rel="icon" href="img/favicon.ico">
<title>TCEC - Live Chess Broadcast</title>
<!-- Bootstrap core CSS -->
<link href="dist/css/bootstrap.min.css" rel="stylesheet">
<link href="dist/css/chessboard-0.3.0.min.css" rel="stylesheet">
<link href="dist/css/chessboard.css" rel="stylesheet">
<link href="dist/css/tooltipster.bundle.min.css" rel="stylesheet">
<link href="dist/bootstrap-table.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.4.1/css/all.css" integrity="sha384-5sAR7xN1Nv6T6+dT2mhtzEpVJvfS3NScPQTrOxhwjIuvcA67KV2R5Jz6kr4abQsz" crossorigin="anonymous">
<!-- Custom styles for this template -->
<!-- vch -->
<link href="dist/css/custom.css?v=1000000000000000000043" rel="stylesheet">
<link href="dist/css/bootstrap-slider.min.css" rel="stylesheet">
</head>
<body class="dark>
<main role="main" class="container">
<div class="row">
<div class="col-md-12">
<br>
<table id="event-overview" class="eventoverview">
</table>
</div>
</div>
<br>
<div class="row">
<div class="col-md-4 col-sm-7 col-12" id="board-container">
<div class="row" id="board-top-engine-eval">
<div class="col-4 d-inline-block d-sm-none d-md-none d-lg-none d-xl-none" id="boardinfod21">
<span class="board-top-engine-eval black-engine-name truncate-name"></span>
</div>
<div class="col-3 d-inline-block d-sm-none d-md-none d-lg-none d-xl-none text-center" id="boardinfod22">
<span class="h5 d-inline board-top-engine-eval black-time-remaining">
0:00:00
</span>
</div>
<div class="col-2 d-inline-block d-sm-none d-md-none d-lg-none d-xl-none text-center" id="boardinfod23">
<span class="h5 board-top-engine-eval black-time-used">
0:00
</span>
</div>
<div class="col-2 d-inline-block d-sm-none d-md-none d-lg-none d-xl-none text-center" id="boardinfod24">
<span class="h5 d-inline board-top-engine-eval black-engine-eval">
</span>
</div>
</div>
<!-- Main chess board -->
<div id="board" style="width: 100%"></div>
<div class="row" id="board-bottom-engine-eval">
<div class="col-4 d-inline-block d-sm-none d-md-none d-lg-none d-xl-none" id="boardinfod11">
<span class="board-bottom-engine-eval white-engine-name truncate-name"></span>
</div>
<div class="col-3 d-inline-block d-sm-none d-md-none d-lg-none d-xl-none text-center" id="boardinfod12">
<span class="h5 d-inline board-bottom-engine-eval white-time-remaining">
0:00:00
</span>
</div>
<div class="col-2 d-inline-block d-sm-none d-md-none d-lg-none d-xl-none text-center" id="boardinfod13">
<span class="h5 board-bottom-engine-eval white-time-used">
0:00
</span>
</div>
<div class="col-2 d-inline-block d-sm-none d-md-none d-lg-none d-xl-none text-center" id="boardinfod14">
<span class="h5 d-inline board-bottom-engine-eval white-engine-eval">
</span>
</div>
</div>
<div class="btn-group d-flex navigation-buttons" role="group">
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder" id="board-to-first">
<i class="fa fa-angle-double-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder" id="board-previous">
<i class="fa fa-angle-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder" id="board-autoplay">
<i class="fa fa-play"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder" id="board-next">
<i class="fa fa-angle-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder" id="board-to-last">
<i class="fa fa-angle-double-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder" id="board-reverse" title="Reverse board">
<i class="fa fa-random"></i>
</a>
<a href="#/" class="toggleDark btn btn-primary btn-sm w-100 rightborder" id="board-to-theme" title="Toggle page theme">
<i class="fa fa-moon"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder fen" id="fen" onClick="copyFen()" title="Copy FEN">
<i class="fa fa-copy"></i>
</a>
<a href="#/" class="refreshBoard btn btn-primary btn-sm w-100" id="board-to-sync" title="Resync all data">
<i class="fa fa-retweet"></i>
</a>
<span class="p1 fa-stack has-badge d-none" onclick="onLastMove()" data-count="" id="newmove"></span>
</div>
<br>
<div id="engine-history"></div>
</div>
<div class="col-md-4 col-sm-5 col-12" id="middle-data-column">
<div class="row">
<div class="col-12 justify-content-around d-flex">
<ul class="nav nav-pills mb-4 nav-fill" id="pills-tab" role="tablist" style="height:10px;">
<li class="nav-item">
<a class="nav-link active" id="v-pills-gameinfo-tab" data-toggle="pill"
href="#v-pills-gameinfo" role="tab" aria-controls="v-pills-gameinfo" aria-selected="true" onClick="hideEngInfo()">
Engine Info
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="v-pills-pv-top-tab" data-toggle="pill" href="#v-pills-pv-top" role="tab" aria-controls="v-pills-pv-top" aria-selected="false" onClick="showEngInfo()">
PV
</a>
</li>
</ul>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="tab-content" id="v-pills-tabContent">
<div class="tab-pane fade" id="v-pills-pv-top" role="tabpanel" aria-labelledby="v-pills-pv-top-tab">
<div class="row">
<div class="col-12 col-md-12">
<div style="width:402px; border:0px solid yellow ; margin-left: auto; margin-right:auto;">
<div id="pv-boardwc" style="width: 200px;float:left; margin-left: auto; margin-right:auto;"></div>
<div id="pv-boardbc" style="width: 200px;float:left; margin-left: auto; margin-right:auto;"></div>
<div style="width:201px; margin-left: auto; margin-right:auto; float:left">
<div class="engine-pv alert alert-dark white-engine-pv" style="width: 195px;float:left; margin-left: auto; margin-right:auto;" id="white-engine-pv2">
</div>
</div>
<div style="width:201px; margin-left: auto; margin-right:auto; float:left">
<div class="engine-pv alert alert-dark black-engine-pv" style="width: 195px;float:left; margin-left: auto; margin-right:auto;" id="black-engine-pv2"></div>
</div>
</div>
</div>
</div>
<div style="width:402px; margin-left: auto; margin-right:auto;">
<div class="btn-group d-flex navigation-buttons" style="float:left; width: 196px; margin-left: auto; margin-right:auto;" id="nav1" role="group">
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-to-first1">
<i class="fa fa-angle-double-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-previous1">
<i class="fa fa-angle-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-autoplay1">
<i class="fa fa-play"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-next1">
<i class="fa fa-angle-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-to-last1">
<i class="fa fa-angle-double-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-reverse1">
<i class="fa fa-random"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder fen" id="fen" onClick="copyFenWhite()" title="Copy FEN">
<i class="fa fa-copy"></i>
</a>
</div>
<div class="btn-group d-flex navigation-buttons" style="width: 196px; margin-left: auto; margin-right:auto;" id="nav2" role="group">
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-to-first2">
<i class="fa fa-angle-double-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-previous2">
<i class="fa fa-angle-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-autoplay2">
<i class="fa fa-play"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-next2">
<i class="fa fa-angle-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-to-last2">
<i class="fa fa-angle-double-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-reverse2">
<i class="fa fa-random"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder fen" id="fen" onClick="copyFenBlack()" title="Copy FEN">
<i class="fa fa-copy"></i>
</a>
</div>
</div>
</div>
<div class="tab-pane show active" id="v-pills-gameinfo" role="tabpanel" aria-labelledby="v-pills-gameinfo">
<table class="table table-striped text-center py-0 engine-eval" id="infotable">
<thead>
<tr>
<td style="width: 45%">
<img id="white-engine-info" src="img/chesspieces/wikipedia/wK.png" style="height: 20px">
<small class="d-none d-sm-none d-md-inline-block d-lg-inline-block d-xl-inline-block white-engine-name-full"></small>
<small class="d-inline-block d-sm-inline-block d-md-none d-lg-none d-xl-none white-engine-name truncate-name"></small>
</td>
<td style="width: 10%">
</td>
<td style="width: 45%">
<img id="black-engine-info" src="img/chesspieces/wikipedia/bK.png" style="height: 20px">
<small class="d-none d-sm-none d-md-inline-block d-lg-inline-block d-xl-inline-block black-engine-name-full"></small>
<small class="d-inline-block d-sm-inline-block d-md-none d-lg-none d-xl-none black-engine-name truncate-name"></small>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="#" target="_blank" id="white-engine-chessprogramming">
<img src="img/tcec.jpg" alt="tcec" class="engineimage" id="white-engine" />
</a>
</td>
<td></td>
<td>
<a href="#" target="_blank" id="black-engine-chessprogramming">
<img src="img/tcec.jpg" alt="tcec" class="engineimage" id="black-engine" />
</a>
</td>
</tr>
<tr>
<td>
<span class="align-middle h1 d-inline white-engine-eval"></span>
</td>
<td>Evaluation</td>
<td>
<span class="align-middle h1 d-inline black-engine-eval"></span>
</td>
</tr>
<tr>
<td>
<span class="white-engine-depth"></span>
</td>
<td>Depth</td>
<td>
<span class="black-engine-depth"></span>
</td>
</tr>
<tr>
<td>
<span class="white-engine-speed"></span>
</td>
<td>Speed</td>
<td>
<span class="black-engine-speed"></span>
</td>
</tr>
<tr>
<td>
<span class="white-engine-nodes"></span>
</td>
<td>Nodes</td>
<td>
<span class="black-engine-nodes"></span>
</td>
</tr>
<tr>
<td>
<span class="white-engine-tbhits"></span>
</td>
<td>TB Hits</td>
<td>
<span class="black-engine-tbhits"></span>
</td>
</tr>
<tr>
<td>
<span class="white-engine-score"></span> (<span id="white-engine-elo"></span>)
</td>
<td>Score(Elo)</td>
<td>
<span class="black-engine-score"></span> (<span id="black-engine-elo"></span>)
</td>
</tr>
<tr>
<td>
<span class="h5 d-inline white-time-remaining">
0:00:00
</span>
<br>
<span class="white-time-used">
0:00
</span>
<i class="fa fa-cog fa-spin slow-spin white-to-move" style="float: left;"></i>
</td>
<td> </td>
<td>
<span class="h5 d-inline black-time-remaining">
0:00:00
</span>
<br>
<span class="black-time-used">
0:00
</span>
<i class="fa fa-cog fa-spin slow-spin black-to-move" style="float: right;"></i>
</td>
</tr>
<tr id="material-container">
<td>
<span id="white-material">
<span class="q"></span>
<span class="r"></span>
<span class="b"></span>
<span class="n"></span>
<span class="p"></span>
</span>
</td>
<td> </td>
<td>
<span id="black-material">
<span class="q"></span>
<span class="r"></span>
<span class="b"></span>
<span class="n"></span>
<span class="p"></span>
</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div id="charts">
<div class="row">
<div class="col-12 justify-content-around d-flex">
<ul class="nav nav-pills mb-3 nav-fill" id="pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="v-pills-eval-tab" data-toggle="pill" href="#v-pills-eval" role="tab" aria-controls="v-pills-eval" aria-selected="true">
Eval
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="v-pills-time-tab" data-toggle="pill" href="#v-pills-time" role="tab" aria-controls="v-pills-time" aria-selected="false">
Time
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="v-pills-speed-tab" data-toggle="pill" href="#v-pills-speed" role="tab" aria-controls="v-pills-speed" aria-selected="false">
Speed
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="v-pills-depth-tab" data-toggle="pill" href="#v-pills-depth" role="tab" aria-controls="v-pills-depth" aria-selected="false">
Depth
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="v-pills-tbhits-tab" data-toggle="pill" href="#v-pills-tbhits" role="tab" aria-controls="v-pills-tbhits" aria-selected="false">
TB
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="v-pills-pv-tab" data-toggle="pill" href="#v-pills-pv" role="tab" aria-controls="v-pills-pv" aria-selected="false">
PV
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="v-pills-pv-analys-tab" data-toggle="pill" href="#v-pills-pvanalys" role="tab" aria-controls="v-pills-pvanalys" aria-selected="false">
PV(A)
</a>
</li>
</ul>
</div>
<div class="col-12">
<div class="tab-content" id="v-pills-tabContent">
<div class="tab-pane fade show active" id="v-pills-eval" role="tabpanel" aria-labelledby="v-pills-eval-tab">
<canvas style="height: 250px;" id="eval-graph"></canvas>
</div>
<div class="tab-pane fade show" id="v-pills-time" role="tabpanel" aria-labelledby="v-pills-time-tab">
<canvas style="height: 250px;" id="time-graph"></canvas>
</div>
<div class="tab-pane fade" id="v-pills-speed" role="tabpanel" aria-labelledby="v-pills-speed-tab">
<canvas style="height: 250px;" id="speed-graph"></canvas>
</div>
<div class="tab-pane fade" id="v-pills-depth" role="tabpanel" aria-labelledby="v-pills-depth-tab">
<canvas style="height: 250px;" id="depth-graph"></canvas>
</div>
<div class="tab-pane fade" id="v-pills-tbhits" role="tabpanel" aria-labelledby="v-pills-tbhits-tab">
<canvas style="height: 250px;" id="tbhits-graph"></canvas>
</div>
<div class="tab-pane fade" id="v-pills-pvanalys" role="tabpanel" aria-labelledby="v-pills-pv-analys-tab">
<div class="row">
<div class="col-10 col-md-10">
<div id="pv-boarda" style="width: 250px; margin-left: auto; margin-right: auto;"></div>
</div>
<div class="col-2 col-md-2">
<div class="btn-group-vertical d-flex navigation-buttons" style="width: 50px;align-items: center;margin-top:50px;" role="group">
<a href="#/" class="btn btn-primary btn-sm w-100" id="pv-board-white">
<img src="img/chesspieces/wikipedia/wP.png" style="height: 16px" />
</a>
<a href="#/" class="btn btn-primary btn-sm w-100" id="pv-board-black">
<img src="img/chesspieces/wikipedia/bP.png" style="height: 16px" />
</a>
<a href="#/" class="btn btn-primary btn-sm w-100" id="pv-board-live1">
Eng1
</a>
<a href="#/" class="btn btn-primary btn-sm w-100" id="pv-board-live2">
Eng2
</a>
</div>
</div>
</div>
<div class="row">
<div class="col-10 col-md-10">
<div class="btn-group d-flex navigation-buttons" style="width: 250px; margin-left: auto; margin-right:auto;" role="group">
<a href="#/" class="btn btn-primary btn-sm w-100" id="pv-board-to-first">
<i class="fa fa-angle-double-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100" id="pv-board-previous">
<i class="fa fa-angle-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100" id="pv-board-autoplay">
<i class="fa fa-play"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100" id="pv-board-next">
<i class="fa fa-angle-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100" id="pv-board-to-last">
<i class="fa fa-angle-double-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100" id="pv-board-reverse">
<i class="fa fa-random"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder fen" id="fen" onClick="copyFenAnalysis()" title="Copy FEN">
<i class="fa fa-copy"></i>
</a>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="v-pills-pv" role="tabpanel" aria-labelledby="v-pills-pv-tab">
<div class="row">
<div class="col-12 col-md-12">
<div style="width:402px; border:0px solid yellow ; margin-left: auto; margin-right:auto;">
<div id="pv-boardw" style="width: 200px;float:left; margin-left: auto; margin-right:auto;"></div>
<div id="pv-boardb" style="width: 200px;float:left; margin-left: auto; margin-right:auto;"></div>
<div style="width:201px; margin-left: auto; margin-right:auto; float:left">
<div class="engine-pv alert alert-dark" style="width: 195px;float:left; margin-left: auto; margin-right:auto;" id="white-engine-pv">
</div>
</div>
<div style="width:201px; margin-left: auto; margin-right:auto; float:left">
<div class="engine-pv alert alert-dark" style="width: 195px;float:left; margin-left: auto; margin-right:auto;" id="black-engine-pv"></div>
</div>
</div>
</div>
</div>
<div style="width:402px; margin-left: auto; margin-right:auto;">
<div class="btn-group d-flex navigation-buttons" style="float:left; width: 196px; margin-left: auto; margin-right:auto;" id="nav1" role="group">
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-to-first1">
<i class="fa fa-angle-double-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-previous1">
<i class="fa fa-angle-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-autoplay1">
<i class="fa fa-play"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-next1">
<i class="fa fa-angle-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-to-last1">
<i class="fa fa-angle-double-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-reverse1">
<i class="fa fa-random"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder fen" id="fen" onClick="copyFenWhite()" title="Copy FEN">
<i class="fa fa-copy"></i>
</a>
</div>
<div class="btn-group d-flex navigation-buttons" style="width: 196px; margin-left: auto; margin-right:auto;" id="nav2" role="group">
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-to-first2">
<i class="fa fa-angle-double-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-previous2">
<i class="fa fa-angle-left"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-autoplay2">
<i class="fa fa-play"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-next2">
<i class="fa fa-angle-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-to-last2">
<i class="fa fa-angle-double-right"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 pv-board-reverse2">
<i class="fa fa-random"></i>
</a>
<a href="#/" class="btn btn-primary btn-sm w-100 rightborder fen" id="fen" onClick="copyFenBlack()" title="Copy FEN">
<i class="fa fa-copy"></i>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<table id="crosstable" class="table-dark table-striped">
</table>
<hr />
<div id="evalcont" style="display:none">
<ul class="nav nav-pills mb-3 nav-justified" id="pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="pills-eval-tab1" data-toggle="tab" href="#pills-eval1" role="tab" aria-controls="pills-eval" aria-selected="true">
<span id="engine1name">176Th 7Men TB</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pills-eval-tab2" data-toggle="tab" href="#pills-eval2" role="tab" aria-controls="pills-eval" aria-selected="false">
<span id="engine2name">128C 6Men TB</span>
</a>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<div class="tab-pane show active" id="pills-eval1" role="tabpanel" aria-labelledby="pills-eval-tab1">
<div id="live-eval-cont1"></div>
</div>
<div class="tab-pane fade" id="pills-eval2" role="tabpanel" aria-labelledby="pills-eval-tab2">
<div id="live-eval-cont2"></div>
</div>
</div>
</div>
<h6><span class="white-engine-name-full-new"></span> PV</h6>
<div class="white-engine-pv alert alert-dark" id="white-engine-pv3"></div>
<h6><span class="black-engine-name-full-new"></span> PV</h6>
<div class="black-engine-pv alert alert-dark" id="black-engine-pv3"></div>
</div>
</div>
<br>
<ul class="nav nav-pills mb-3 nav-justified" id="pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="pills-stand-tab" data-toggle="pill" href="#pills-stand" role="tab" aria-controls="pills-stand" aria-selected="true">
<div class="fmedium fa fa-medal d-none d-sm-block d-md-block">  Standings</div>
<div class="fmedium fa fa-medal d-block d-sm-none d-md-none"></div>
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pills-cross-tab" data-toggle="pill" href="#pills-cross" role="tab" aria-controls="pills-cross" aria-selected="true">
<div class="fmedium fa fa-times d-none d-sm-block d-md-block">  Crosstable</div>
<div class="fmedium fa fa-times d-block d-sm-none d-md-none"></div>
</a>
</li>
<li>
<a class="nav-link" id="pills-h2h-tab" data-toggle="pill" href="#pills-h2h" role="tab" aria-controls="pills-h2h" aria-selected="true">
<div class="fmedium fa fa-khanda d-none d-sm-block d-md-block">  Head2Head</div>
<div class="fmedium fa fa-khanda d-block d-sm-none d-md-none"></div>
</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pills-sched-tab" data-toggle="pill" href="#pills-sched" role="tab" aria-controls="pills-sched" aria-selected="false">
<div class="fmedium fa fa-calendar-alt d-none d-sm-block d-md-block">  Schedule</div>
<div class="fmedium fa fa-calendar-alt d-block d-sm-none d-md-none"></div>
</a>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<div class="tab-pane show active fade smallfont" id="pills-stand" role="tabpanel" aria-labelledby="pills-stand-tab">
</div>
<div class="tab-pane fade smallfont" id="pills-cross" role="tabpanel" aria-labelledby="pills-cross-tab">
<table id="standtable" class="table-dark table-striped">
</table>
</div>
<div class="tab-pane fade smallfont scheduleclass" id="pills-h2h" role="tabpanel" aria-labelledby="pills-h2h-tab">
<div id="schedule-wrapper">
<table id="h2h" class="table-dark table-striped">
</table>
</div>
</div>
<div class="tab-pane fade smallfont scheduleclass" id="pills-sched" role="tabpanel" aria-labelledby="pills-sched-tab">
<div id="schedule-wrapper">
<table id="schedule" class="table-dark table-striped">
</table>
</div>
</div>
</div>
</main><!-- /.container -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.4/umd/popper.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.1.3/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.18.0/axios.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/2.2.0/js.cookie.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.10/lodash.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-table/1.12.1/bootstrap-table.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/chess.js/0.10.2/chess.js"></script>
<script src="dist/js/graphs.js?v=10000000000000000000042"></script>
<script src="dist/js/chessboard.js?v=10000000000000000000042"></script>
<script src="dist/js/tcectables.js"></script>
<script src="dist/js/tcec.js?v=10000000000000000000042"></script>
<script src="dist/js/tooltipster.bundle.min.js"></script>
<script src="dist/js/bootstrap-4-navbar.js?v=1000000000000000000042"></script>
<script src="dist/js/themes.js"></script>
<script src="dist/js/bootstrap-slider.min.js"></script>
<script src="dist/js/clipboard.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.1/socket.io.js"></script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script src= "https://player.twitch.tv/js/embed/v1.js"></script>
<script>
$(document).ready(function () {
$(document).click(function (event) {
var clickover = $(event.target);
var _opened = $(".navbar-collapse").hasClass("navbar-collapse in");
if (_opened === true && !clickover.hasClass("navbar-toggle")) {
$("button.navbar-toggle").click();
}
});
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
var target = $(e.target).attr("href") // activated tab
$(target).show();
});
});
var {board, pvBoardw, pvBoardb, pvBoarda, pvBoardwc, pvBoardbc} = setBoardInit();
$('.toggleDark').click(function() {
var darkMode = localStorage.getItem('tcec-dark-mode');
if (darkMode == 20) {
localStorage.setItem('tcec-dark-mode', 10);
} else {
localStorage.setItem('tcec-dark-mode', 20);
}
setDefaultThemes();
updateTables();
$(".navbar-toggle").click();
});
$('.refreshBoard').on('click', function() {
updateAll(2);
});
$(document).ready(function () {
initTables();
});
$(function() {
var options = {
sloppy: true
};
var sliderVale = localStorage.getItem('tcec-chat-slider');
if (sliderVale == undefined)
{
sliderVale = 100;
}
var chatHeight = $("#board-container").height();
var chatHeight1 = parseInt(chatHeight * sliderVale/100);
$('#chatright').height(chatHeight1);
$( window ).resize(function() {
board.resize();
$('#chatright').height(chatHeight1);
$('#chatright').width('100%');
});
initToolTip();
updatePgn();
$(document).ready(function () {
setDefaults();
window.setTimeout(function()
{
setTwitch();
}, 10000);
window.setTimeout(function()
{
updateLiveChart();
updateLiveEval();
}, 2000);
window.setTimeout(function()
{
updateTables();
}, 3000);
window.setTimeout(function()
{
if ($('#google_adverts').height() <= 0) {
$('.encouragement').show();
} else {
$('.encouragement').hide();
}
}, 15000);
});
$('#chatsize').bootstrapSlider({
min:40,
max:150,
value: sliderVale,
handle: 'round',
formatter: function(value) {
$('#chatright').height(parseInt(value/100 * chatHeight));
localStorage.setItem('tcec-chat-slider', value);
}
});
});
//var socket = io.connect('https://tcecbeta.club:8000');
//var socket = io.connect('https://tcecbonus.club:8010');
var socket = io.connect('https://tcec.chessdom.com:8080');
socket.on('crosstable', function(data){
newUpdateStandData(data);
});
socket.on('liveeval', function(data){
updateLiveEvalData(data, 1, null, 1);
});
socket.on('liveeval1', function(data){
updateLiveEvalData(data, 1, null, 2);
});
socket.on('pgn', function(data){
updatePgnData(data, 1);
});
socket.on('schedule', function(data){
updateScheduleData(data);
updateH2hData(data);
});
socket.on('livechart', function(data){
updateLiveChartData(data, 1);
});
socket.on('livechart1', function(data){
updateLiveChartData(data, 2);
});
socket.on('lastpgntime', function(data){
setLastMoveTime(data);
});
socket.on('users', function(data){
setUsers(data);
});
</script>
<audio id="move_sound">
<source src="dist/audio/movesound.mp3" type="audio/mpeg"><embed src="dist/audio/movesound.mp3">
</audio>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(
['_setAccount', 'UA-37458566-1'],
['_trackPageview'],
['b._setAccount', 'UA-1679851-1'],
['b._trackPageview']
);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</body>
</html>
<!-- end -->