-
Notifications
You must be signed in to change notification settings - Fork 7
/
play.html
815 lines (815 loc) · 68.4 KB
/
play.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
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
<head>
<title>Free Chess Club: Play Online Chess on the Free Internet Chess Server</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Free Chess Club. Play chess on the Free Internet Chess Server (FICS) using a modern web-based client. No downloads, no hassles—maximum chess guaranteed!" >
<meta property="og:title" content="Free Chess Club: Play Online Chess on the Free Internet Chess Server"/>
<meta property="og:description" content="Free Chess Club. Play chess on the Free Internet Chess Server (FICS) using a modern web-based client. No downloads, no hassles—maximum chess guaranteed!"/>
<meta property="og:url" content="http://www.freechess.club"/>
<meta property="og:type" content="website"/>
<meta property="og:site_name" content="freechess.club"/>
<meta property="og:image" content="https://www.freechess.club/assets/img/tfcc.png"/>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="Free Chess Club: Play Online Chess on the Free Internet Chess Server"/>
<meta name="twitter:description" content="Free Chess Club. Play chess on the Free Internet Chess Server (FICS) using a modern web-based client. No downloads, no hassles—maximum chess guaranteed!"/>
<meta name="twitter:site" content="@freechessclub"/>
<meta name="twitter:image" content="https://www.freechess.club/assets/img/tfcc.png"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Fredoka+One&text=Free%20Chess%20Club">
<link href="assets/css/chessground.css" rel="stylesheet">
<link href="assets/css/pieces/default.css" rel="stylesheet" id="piece">
<link href="assets/css/main.css" rel="stylesheet">
<link href="assets/css/application.css" rel="stylesheet">
<link href="assets/css/themes/default.css" rel="stylesheet" id="theme">
<link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon">
</head>
<body>
<div id="notifications" style="z-index: 2000; position: fixed; top: 0; right: 0; width: 100%">
<div class="toast notification-panel" data-bs-autohide="false" role="status" aria-live="polite" aria-atomic="true" id="notifications-header">
<div class="toast-body position-relative d-flex">
<span class="mx-auto">Notifications</span>
<button type="button" class="btn-close" style="background: transparent; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);" aria-label="Hide">
<span id="notifications-close-icon" class="fa-solid fa-chevron-down" aria-hidden="false"></span>
</button>
</div>
</div>
<div class="toast notification-panel" data-bs-autohide="false" role="status" aria-live="polite" aria-atomic="true" id="notifications-footer">
<div class="toast-body">
<div class="d-flex">
<a class="me-auto" id="notifications-clear-all" style="cursor: pointer; text-decoration: none; font-style: italic">Clear all</a>
<a class="ms-auto" id="notifications-show-all" style="cursor: pointer; text-decoration: none; font-style: italic">Show all >></a>
</div>
</div>
</div>
</div>
<div class="feature3 p-0 position-relative">
<div class="row justify-content-md-center m-0" id="main-row">
<div class="card-group p-0">
<div id="left-col" class="col-sm-12 col-md-3 col-lg-3 col-xl-3 align-self-center" style="min-width: 340px">
<div class="card bg-transparent" id="left-card">
<div class="card-header top-panel d-flex" id="left-panel-header" style="visibility: hidden">
<div id="navigation-toolbar" class="btn-toolbar m-auto">
<button type="button" id="fast-backward" class="btn btn-outline-secondary btn-md" data-bs-toggle="tooltip" data-bs-placement="top" data-fallback-placements="left,right" title="Beginning">
<span class="fa fa-fast-backward" aria-hidden="false"></span>
</button>
<button type="button" id="backward" class="btn btn-outline-secondary btn-md" data-bs-toggle="tooltip" data-bs-placement="top" data-fallback-placements="left,right" title="Back">
<span class="fa fa-backward" aria-hidden="false"></span>
</button>
<button type="button" id="forward" class="btn btn-outline-secondary btn-md" data-bs-toggle="tooltip" data-bs-placement="top" data-fallback-placements="right,left" title="Forward">
<span class="fa fa-forward" aria-hidden="false"></span>
</button>
<button type="button" id="fast-forward" class="btn btn-outline-secondary btn-md" data-bs-toggle="tooltip" data-bs-placement="top" data-fallback-placements="right,left" title="End">
<span class="fa fa-fast-forward" aria-hidden="false"></span>
</button>
<button type="button" id="exit-subvariation" style="display: none" class="btn btn-outline-secondary btn-md position-relative" aria-label="Exit Subvariation">
<div class="tooltip-overlay" style="pointer-events: auto" data-bs-toggle="tooltip" data-bs-placement="top" data-fallback-placements="right,left" title="Exit Subvariation"></div>
<span class="fa fa-eject" aria-hidden="false"></span>
</button>
<button id="menus-toggle-btn" class="btn btn-outline-secondary btn-md position-relative" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-menus" aria-label="Show/Hide Menus" aria-expanded="true" aria-controls="collapse-menus">
<div class="tooltip-overlay" data-tooltip-hover-only data-bs-toggle="tooltip" title="Show/Hide Menus"></div>
<span id="menus-toggle-icon" class="fa fa-toggle-up" aria-hidden="false"></span>
</button>
</div>
<div id="chat-collapse-toolbar" class="btn-toolbar d-md-none my-auto align-self-end">
</div>
</div>
<div id="inner-left-panels">
<div id="left-panel-header-2" class="card-header top-panel center" style="display: none">
<button type="button" id="stop-observing" style="display: none" class="btn btn-outline-secondary btn-md" title="Stop Observing"><span class="fa fa-times-circle me-2" aria-hidden="false"></span>Stop Observing</button>
<button type="button" id="stop-examining" style="display: none" class="btn btn-outline-secondary btn-md" title="Stop Examining"><span class="fa fa-times-circle me-2" aria-hidden="false"></span>Stop Examining</button>
</div>
<div class="card-body p-0">
<ul class="nav nav-pills nav-fill user-select-none" id="pills-tab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link py-2" id="pills-play-tab" data-bs-toggle="pill" data-bs-target="#pills-play" type="button" role="tab" aria-controls="pills-play" aria-selected="true">Play</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link py-2" id="pills-observe-tab" data-bs-toggle="pill" data-bs-target="#pills-observe" type="button" role="tab" aria-controls="pills-observe" aria-selected="false">Observe</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link py-2" id="pills-history-tab" data-bs-toggle="pill" data-bs-target="#pills-history" type="button" role="tab" aria-controls="pills-history" aria-selected="false">History</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link py-2" id="pills-game-tab" data-bs-toggle="pill" data-bs-target="#pills-game" type="button" role="tab" aria-controls="pills-game" aria-selected="false">Game</button>
</li>
</ul>
</div>
<div id="collapse-menus" class="collapse show collapse-init">
<div class="card-body noselect p-0" id="left-panel">
<div class="h-100 d-flex flex-column" id="left-menu">
<div class="tab-content flex-grow-1" style="overflow: hidden; min-height: 0">
<div class="tab-pane pt-2 fade show active h-100" id="pills-play" role="tabpanel" aria-labelledby="pills-play-tab">
<div class="d-flex flex-column h-100">
<div class="modal fade" id="play-computer-modal" tabindex="-1" aria-labelledby="play-computer-modal-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<form id="play-computer-form">
<div class="modal-header">
<h5 class="modal-title" id="play-computer-modal-label"><span class="fa-solid fa-desktop me-2" aria-hidden="false"></span>Play Computer</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="mb-3">
<label class="form-heading">Difficulty Level:</label>
<div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-level" id="play-computer-level1" checked>
<label class="form-check-label" for="play-computer-level1">1</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-level" id="play-computer-level2">
<label class="form-check-label" for="play-computer-level2">2</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-level" id="play-computer-level3">
<label class="form-check-label" for="play-computer-level3">3</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-level" id="play-computer-level4">
<label class="form-check-label" for="play-computer-level4">4</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-level" id="play-computer-level5">
<label class="form-check-label" for="play-computer-level5">5</label>
</div>
</div>
<div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-level" id="play-computer-level6">
<label class="form-check-label" for="play-computer-level6">6</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-level" id="play-computer-level7">
<label class="form-check-label" for="play-computer-level7">7</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-level" id="play-computer-level8">
<label class="form-check-label" for="play-computer-level8">8</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-level" id="play-computer-level9">
<label class="form-check-label" for="play-computer-level9">9</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-level" id="play-computer-level10">
<label class="form-check-label" for="play-computer-level10">10</label>
</div>
</div>
</div>
<div class="mb-3">
<label class="form-heading">Player Time:</label>
<div class="input-group">
<input type="number" min="0" max="999" class="form-control text-center blur-on-enter" id="play-computer-min" value="0">
<span class="input-group-text"> min </span>
<input type="number" min="0" max="999" class="form-control text-center blur-on-enter" id="play-computer-inc" value="0">
<span class="input-group-text"> inc </span>
</div>
</div>
<div class="mb-3">
<label class="form-heading">Player Color:</label>
<div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-color" id="play-computer-color-any" checked>
<label class="form-check-label" for="play-computer-color-any">Any</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-color" id="play-computer-color-white">
<label class="form-check-label" for="play-computer-color-white">White</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-color" id="play-computer-color-black">
<label class="form-check-label" for="play-computer-color-black">Black</label>
</div>
</div>
</div>
<div class="mb-3">
<label class="form-heading">Type:</label>
<div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-type" id="play-computer-type-standard" checked>
<label class="form-check-label" for="play-computer-type-standard">Standard</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-type" id="play-computer-type-chess960">
<label class="form-check-label" for="play-computer-type-chess960">Chess960</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="play-computer-type" id="play-computer-type-crazyhouse">
<label class="form-check-label" for="play-computer-type-crazyhouse">Crazyhouse</label>
</div>
</div>
</div>
</div>
<div class="modal-footer center">
<button type="submit" class="btn btn-primary me-4">Play</button>
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Cancel</button>
</div>
</form>
</div>
</div>
</div>
<div class="mb-2 border-bottom border-top py-2 btn-toolbar center w-100">
<button type="button" class="btn btn-outline-secondary btn-block btn-md" aria-expanded="false" id="quick-game">Quick Game</button>
<button type="button" class="btn btn-outline-secondary btn-block btn-md" data-bs-toggle="modal" data-bs-target="#play-computer-modal" aria-expanded="false" id="play-computer"><span class="me-2 fa-solid fa-desktop" aria-hidden="false"></span>Play Computer</button>
</div>
<ul class="nav nav-tabs nav-fill" id="pills-play-subtab" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="pills-pairing-tab" data-bs-toggle="tab" data-bs-target="#pills-pairing" type="button" role="tab" aria-controls="pills-pairing" aria-selected="true">Pairing</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="pills-lobby-tab" data-bs-toggle="tab" data-bs-target="#pills-lobby" type="button" role="tab" aria-controls="pills-lobby" aria-selected="false">Lobby</button>
</li>
</ul>
<div id="play-pane-subcontent" class="tab-content flex-grow-1 overflow-auto" style="min-height: 0">
<div class="tab-pane fade show active" id="pills-pairing" role="tabpanel" aria-labelledby="pills-pairing-tab">
<div class="btn-group-vertical btn-block center position-static" role="group" aria-label="New Game Menu">
<div class="pane-status" id="sent-offers-status" style="display: none"></div>
<div class="center pane-status" id="pairing-pane-status" style="display: none"></div>
<div class="input-group">
<span class="input-group-text" id="opponent-player-label">Play against</span>
<input type="text" class="form-control blur-on-enter" id="opponent-player-name" placeholder="Anyone" aria-describedby="opponent-player-label" spellcheck="false">
</div>
<label class="form-heading" style="margin-bottom: 2px;"><span class="me-2 fa fa-bolt" aria-hidden="false"></span>Lightning</label>
<div class="btn-group" role="group" aria-label="Lightning">
<button type="button" class="w-100 btn btn-outline-secondary btn-md" href="#" onclick="getGame(1,0);">1 min</button>
<button type="button" class="w-100 btn btn-outline-secondary btn-md" href="#" onclick="getGame(2,0);">2 min</button>
</div>
<label class="form-heading" style="margin-bottom: 2px;"><span class="me-2 fa fa-rocket" aria-hidden="false"></span>Blitz</label>
<div class="btn-group" role="group" aria-label="Blitz">
<button type="button" class="w-100 btn btn-outline-secondary btn-md" href="#" onclick="getGame(3,0);">3 min</button>
<button type="button" class="w-100 btn btn-outline-secondary btn-md" href="#" onclick="getGame(5,0);">5 min</button>
<button type="button" class="w-100 btn btn-outline-secondary btn-md" href="#" onclick="getGame(10,0);">10 min</button>
<button type="button" class="w-100 btn btn-outline-secondary btn-md" href="#" onclick="getGame(2,12);">2 + 12</button>
</div>
<label class="form-heading" style="margin-bottom: 2px;"><span class="me-2 fa fa-gears" aria-hidden="false"></span>Standard</label>
<div class="btn-group" role="group" aria-label="Standard">
<button type="button" class="w-100 btn btn-outline-secondary btn-md" href="#" onclick="getGame(15,0);">15 min</button>
<button type="button" class="w-100 btn btn-outline-secondary btn-md" href="#" onclick="getGame(20,0);">20 min</button>
</div>
<label class="form-heading" style="margin-bottom: 2px;"><span class="me-2 fa fa-clock-o" aria-hidden="false"></span>Custom</a></label>
<form id="custom-control" class="w-100">
<div class="input-group">
<input type="number" min="0" max="999" class="form-control text-center blur-on-enter" id="custom-control-min" value="0">
<span class="input-group-text"> min </span>
<input type="number" min="0" max="999" class="form-control text-center blur-on-enter" id="custom-control-inc" value="0">
<span class="input-group-text"> inc </span>
<span class="input-group-append">
<button class="btn btn-outline-secondary btn-md" type="submit" id="custom-control-go">Go</button>
</span>
</div>
</form>
<div class="btn-group dropdown position-static" role="group" aria-label="Custom-2">
<button class="btn btn-outline-secondary dropdown-toggle w-100" id="player-color-button" type="button" data-bs-toggle="dropdown" aria-expanded="false">Any color</button>
<ul class="dropdown-menu" id="player-color-menu">
<li><a class="dropdown-item" onclick="setNewGameColor('Any color');">Any color</a></li>
<li><a class="dropdown-item" onclick="setNewGameColor('White');">White</a></li>
<li><a class="dropdown-item" onclick="setNewGameColor('Black');">Black</a></li>
</ul>
<button class="btn btn-outline-secondary dropdown-toggle w-100" id="rated-unrated-button" type="button" data-bs-toggle="dropdown" aria-expanded="false">Unrated</button>
<ul class="dropdown-menu" id="rated-unrated-menu">
<li><a class="dropdown-item" onclick="setNewGameRated('Rated');">Rated</a></li>
<li><a class="dropdown-item" onclick="setNewGameRated('Unrated');">Unrated</a></li>
</ul>
<button class="btn btn-outline-secondary dropdown-toggle w-100" id="variants-button" type="button" data-bs-toggle="dropdown" aria-expanded="false">Variants</button>
<ul class="dropdown-menu" id="variants-menu">
<li><a class="dropdown-item" onclick="setNewGameVariant('Standard', '');">Standard</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Chess960', 'wild fr');">Chess960</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Bughouse', 'bughouse');">Bughouse (4 player)</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Crazyhouse', 'crazyhouse');">Crazyhouse</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Losers', 'losers');">Losers</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Wild 0', 'wild 0');">Wild 0</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Wild 1', 'wild 1');">Wild 1</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Wild 2', 'wild 2');">Wild 2</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Wild 3', 'wild 3');">Wild 3</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Wild 4', 'wild 4');">Wild 4</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Wild 5', 'wild 5');">Wild 5</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Wild 8', 'wild 8');">Wild 8</a></li>
<li><a class="dropdown-item" onclick="setNewGameVariant('Wild 8a', 'wild 8a');">Wild 8a</a></li>
</ul>
</div>
<div class="btn-group dropdown position-static" role="group" aria-label="Study">
<button type="button" class="btn btn-outline-secondary btn-md" id="puzzlebot">Puzzle</button>
<button class="btn btn-outline-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">Endgames</button>
<ul class="dropdown-menu dropdown-menu-end" id="endgamebot">
<li><a class="dropdown-item" onclick="sessionSend('t endgamebot play kpk'); showGameTab();">kpk</a></li>
<li><a class="dropdown-item" onclick="sessionSend('t endgamebot play kbnk'); showGameTab();">kbnk</a></li>
<li><a class="dropdown-item" onclick="sessionSend('t endgamebot play kbbk'); showGameTab();">kbbk</a></li>
<li><a class="dropdown-item" onclick="sessionSend('t endgamebot play kqk'); showGameTab();">kqk</a></li>
<li><a class="dropdown-item" onclick="sessionSend('t endgamebot play krpkr'); showGameTab();">krpkr</a></li>
<li><a class="dropdown-item" onclick="sessionSend('t endgamebot play krk'); showGameTab();">krk</a></li>
<li><a class="dropdown-item" onclick="sessionSend('t endgamebot play kqkr'); showGameTab();">kqkr</a></li>
<li><a class="dropdown-item" onclick="sessionSend('t endgamebot play kpkp'); showGameTab();">kpkp</a></li>
<li><a class="dropdown-item" onclick="sessionSend('t endgamebot play kqpkq'); showGameTab();">kqpkq</a></li>
<li><a class="dropdown-item" onclick="sessionSend('t endgamebot play knnkp'); showGameTab();">knnkp</a></li>
</ul>
</div>
</div>
</div>
<div class="tab-pane fade h-100" id="pills-lobby" role="tabpanel" aria-labelledby="pills-lobby-tab">
<div class="d-flex flex-column h-100">
<div class="pane-status" id="lobby-pane-status" style="display: none"></div>
<div id="lobby" class="flex-grow-1" style="min-height: 0">
<div class="d-flex flex-column h-100">
<div class="center p-2 justify-content-around">
<div>
<input type="checkbox" class="btn-check" id="lobby-show-computers" autocomplete="off">
<label class="btn btn-default border-0" for="lobby-show-computers">
<span id="lobby-show-computers-icon" class="fa-regular fa-eye me-2" aria-hidden="false"></span>Computers
</label>
</div>
<div>
<input type="checkbox" class="btn-check" id="lobby-show-unrated" autocomplete="off">
<label class="btn btn-default border-0" for="lobby-show-unrated">
<span id="lobby-show-unrated-icon" class="fa-regular fa-eye me-2" aria-hidden="false"></span>Unrated
</label>
</div>
</div>
<div class="flex-grow-1 overflow-auto" id="lobby-table-container" style="min-height: 0;">
<div class="btn-group-vertical w-100" id="lobby-table"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane pt-2 fade h-100" id="pills-observe" role="tabpanel" aria-labelledby="pills-observe-tab">
<div class="d-flex flex-column h-100">
<div class="center pane-status" id="observe-pane-status" style="display: none"></div>
<form id="observe-user">
<div class="input-group">
<span class="input-group-text" id="observe-user-group">Observe</span>
<input type="text" class="form-control" id="observe-username" placeholder="Player name" aria-describedby="observe-user" spellcheck="false">
<button type="submit" class="btn btn-outline-secondary btn-md" id="observe-go">Go</button>
</div>
</form>
<div class="flex-grow-1 overflow-auto" style="min-height: 0" id="games-table"></div>
</div>
</div>
<div class="tab-pane pt-2 fade h-100" id="pills-history" role="tabpanel" aria-labelledby="pills-history-tab">
<div class="d-flex flex-column h-100">
<div class="center pane-status" id="history-pane-status" style="display: none"></div>
<form id="history-user">
<div class="input-group" id="history-user-group">
<span class="input-group-text" id="history-user-label">History</span>
<input type="text" class="form-control" id="history-username" placeholder="Player name" aria-describedby="history-user-label" spellcheck="false">
<button type="submit" class="btn btn-outline-secondary btn-md" id="history-go">Go</button>
</div>
</form>
<div class="flex-grow-1 overflow-auto" style="min-height: 0" id="history-table"></div>
</div>
</div>
<div class="tab-pane h-100 fade" id="pills-game" role="tabpanel" aria-labelledby="pills-game-tab">
<div class="d-flex flex-column h-100">
<button id="game-list-button" style="display: none" class="mt-1 w-100 btn btn-outline-secondary btn-md dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<span class="label"></span>
</button>
<ul class="dropdown-menu" id="game-list-dropdown">
<li class="px-2 pb-2"><input type="text" class="form-control blur-on-enter" id="game-list-filter" placeholder="Filter games..." aria-label="Game list filter" spellcheck="false"></li>
</ul>
<div id="game-toolbar" class="d-flex justify-content-end" style="gap: 14px">
<div class="btn-group">
<input type="radio" checked class="btn-check" name="view-mode" id="game-table-view" autocomplete="off">
<label class="btn btn-outline-secondary btn-sm btn-transparent" for="game-table-view" data-bs-toggle="tooltip" data-bs-placement="top" data-fallback-placements="left,right" title="Table View">
<span class="fa-solid fa-table-columns" aria-hidden="false"></span>
</label>
<input type="radio" class="btn-check" name="view-mode" id="game-list-view" autocomplete="off">
<label class="btn btn-outline-secondary btn-sm btn-transparent" for="game-list-view" data-bs-toggle="tooltip" data-bs-placement="top" data-fallback-placements="right,left" title="List View">
<span class="fa-solid fa-align-justify" aria-hidden="false"></span>
</label>
</div>
<input type="checkbox" class="btn-check" id="game-edit-mode" autocomplete="off" aria-checked="false">
<label class="btn btn-outline-secondary btn-sm btn-transparent" for="game-edit-mode" data-bs-toggle="tooltip" data-bs-placement="top" title="Edit Mode" data-description="Add multiple sub-variations and annotations.">
<span class="fa-solid fa-pen-to-square" aria-hidden="false"></span>
</label>
<input type="checkbox" class="btn-check" id="game-preserved" autocomplete="off" aria-checked="false">
<label class="btn btn-outline-secondary btn-sm btn-transparent" for="game-preserved" data-bs-toggle="tooltip" data-bs-placement="top" title="Preserve Game" data-description="Stop this game being over-written when starting a new game.">
<span class="fa-solid fa-unlock" aria-hidden="false"></span>
</label>
<div>
<button type="button" id="more-game-tools" class="btn btn-outline-secondary btn-sm btn-transparent dropdown-toggle hide-caret position-relative" data-bs-toggle="dropdown" aria-expanded="false" aria-label="More game tools">
<div class="tooltip-overlay" data-tooltip-hover-only data-bs-toggle="tooltip" title="More game tools"></div>
<span class="fa-solid fa-ellipsis-vertical" aria-hidden="false"></span>
</button>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="more-game-tools">
<li><a class="dropdown-item noselect" id="game-tools-new"><span class="fa-solid fa-file-circle-plus dropdown-icon" aria-hidden="false"></span>New Game</a></li>
<li>
<a class="dropdown-item dropdown-toggle noselect" id="game-tools-new-variant"><span class="fa-solid fa-file-circle-plus dropdown-icon" aria-hidden="false"></span>New Variant Game</a>
<ul class="dropdown-menu dropdown-submenu" id="new-variant-game-submenu" aria-labelledby="game-tools-new-variant">
<li><a class="dropdown-item noselect">Chess960</a></li>
<li><a class="dropdown-item noselect">Crazyhouse</a></li>
<li><a class="dropdown-item noselect">Losers</a></li>
</ul>
</li>
<li><a class="dropdown-item noselect" id="game-tools-open-pgn"><span class="fa-solid fa-file-import dropdown-icon" aria-hidden="false"></span>Open Game PGN</a></li>
<li><a class="dropdown-item noselect" id="game-tools-save-pgn"><span class="fa-solid fa-floppy-disk dropdown-icon" aria-hidden="false"></span>Save Game PGN</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item noselect" id="game-tools-clone"><span class="fa-solid fa-copy dropdown-icon" aria-hidden="false"></span>Duplicate Game</a></li>
<li><a class="dropdown-item noselect" id="game-tools-examine"><span class="fa-brands fa-slideshare dropdown-icon" aria-hidden="false"></span>Examine Mode (Shared)</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item noselect" id="game-tools-properties"><span class="fa-solid fa-file-pen dropdown-icon" aria-hidden="false"></span>Game Properties</a></li>
<li style="display: none"><a class="dropdown-item noselect" id="game-tools-close"><span class="fa-solid fa-xmark dropdown-icon" aria-hidden="false"></span>Close Game</a></li>
</ul>
</div>
</div>
<span class="center" id="game-pane-status">You're not playing a game.</span>
<div id="movelist-container" class="flex-grow-1 overflow-auto" style="min-height: 0">
<table id="move-table" class="table table-sm mb-0">
<tbody></tbody>
</table>
<div id="movelists">
<div class="movelist px-2 py-1"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer p-0" id="left-panel-bottom" style="display: none">
<div class="d-flex flex-column h-100 w-100 position-relative">
<button id="close-status" class="btn btn-default position-absolute">×</button>
<ul class="nav nav-tabs pt-2" id="left-bottom-tabs" style="visibility: hidden" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="status-tab" data-bs-toggle="tab" data-bs-target="#status-panel" type="button" role="tab" aria-controls="status-panel" aria-selected="true">Status</button>
</li>
<li class="nav-item" role="presentation" style="position: relative; display: none">
<button class="nav-link" id="engine-tab" style="padding-right: 30px" data-bs-toggle="tab" href="#engine-panel" role="tab" aria-controls="engine-panel" aria-selected="false">Engine</button>
<container class="h-100 d-flex" style="position: absolute; top: 0; right: 12px; z-index: 10">
<span class="closeTab align-self-center btn btn-default btn-sm">×</span>
</container>
</li>
<li class="nav-item" role="presentation" style="position: relative; display: none">
<button class="nav-link" id="eval-graph-tab" style="padding-right: 30px" data-bs-toggle="tab" href="#eval-graph-panel" role="tab" aria-controls="eval-graph-panel" aria-selected="false">Eval Graph</button>
<container class="h-100 d-flex" style="position: absolute; top: 0; right: 12px; z-index: 10">
<span class="closeTab align-self-center btn btn-default btn-sm">×</span>
</container>
</li>
</ul>
<div class="tab-content flex-grow-1" style="min-height: 0">
<div class="tab-pane fade show active p-1 h-100" id="status-panel" role="tabpanel" aria-labelledby="status-panel">
<div id="game-status-list" class="d-flex flex-column overflow-auto center h-100">
<div class="px-2 w-100 h-100">
<div class="center py-1" style="text-align: center"><span class="game-status"></span></div>
<div class="opening-name center py-1 border-top" style="display: none"></div>
<div class="game-watchers center flex-wrap pt-2 pb-1 border-top"></div>
</div>
</div>
</div>
<div class="tab-pane fade h-100 w-100 p-1" id="engine-panel" role="tabpanel" aria-labelledby="engine-panel">
<div class="d-flex flex-column h-100 w-100">
<div style="display: inline-block">
<button type="button" id="start-engine" class="me-1 btn btn-engine btn-outline-secondary btn-sm p-0" style="width: 50px" title="Start Engine">Go</button>
<div id="pv-button-group" class="btn-group" style="width: 50px">
<button type="button" id="remove-pv" class="btn btn-engine btn-outline-secondary btn-sm p-0" title="Remove Engine Line">-</button>
<button type="button" id="add-pv" class="btn btn-engine btn-outline-secondary btn-sm p-0" title="Add Engine Line">+</button>
</div>
</div>
<div class="flex-grow-1 w-100" style="min-height: 0">
<ul class="list-striped" id="engine-pvs"></ul>
</div>
</div>
</div>
<div class="tab-pane fade h-100 w-100" id="eval-graph-panel" role="tabpanel" aria-labelledby="eval-graph-panel">
<div id="eval-graph-container" class="h-100 w-100" style="display: none">
</div>
<div id="eval-progress" class="center h-100 w-100" style="display: none">
<div class="progress h-100 w-100">
<div class="progress-bar" role="progressbar" aria-label="Loading Eval Graph" style="width: 100%;" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">100%</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer bottom-panel" id="left-panel-footer">
<div id="playing-game-buttons" class="btn-toolbar m-auto" style="display: none">
<button type="button" id="takeback" class="btn btn-outline-secondary btn-md" data-bs-toggle="tooltip" data-bs-placement="top" title="Takeback">
<span class="fa fa-undo" aria-hidden="false"></span>
</button>
<button type="button" id="draw" class="btn btn-outline-secondary btn-md" data-bs-toggle="tooltip" data-bs-placement="top" title="Draw">
<span class="fa fa-handshake-o" aria-hidden="false"></span>
</button>
<button type="button" id="abort" class="btn btn-outline-secondary btn-md" data-bs-toggle="tooltip" data-bs-placement="top" title="Abort">
<span class="fa fa-times-circle" aria-hidden="false"></span>
</button>
<button type="button" id="resign" class="btn btn-outline-secondary btn-md" data-bs-toggle="tooltip" data-bs-placement="top" title="Resign">
<span class="fa fa-flag-o" aria-hidden="false"></span>
</button>
</div>
<div id="viewing-game-buttons" class="btn-toolbar center w-100">
<button type="button" id="show-status-panel" class="btn btn-outline-secondary btn-md" title="Analyze Game" style="display: none">Analyze</button>
</div>
</div>
</div>
</div>
<div id="mid-col" class="col-sm-12 col-md-auto position-relative align-self-center">
<div class="toast-container h-100 w-100" style="z-index: 100;">
<div id="game-requests" aria-live="polite" aria-atomic="true"></div>
</div>
<div id="main-board-area">
<div class="card game-card bg-transparent">
<div class="card-header title-bar">
<div class="d-flex align-items-center">
<button type="button" class="me-auto btn btn-outline-secondary btn-transparent" title="Maximize" aria-label="Maximize">
<span class="game-maximize-icon fa-regular fa-window-maximize" aria-hidden="false"></span>
</button>
<span class="title-bar-text mx-auto"></span>
<button type="button" class="ms-auto btn btn-outline-secondary btn-transparent" title="Close" aria-label="Close">
<span class="game-close-icon fa-solid fa-xmark" aria-hidden="false"></span>
</button>
</div>
</div>
<div class="top-panel card-header p-0">
<div class="h-100 w-100 d-flex justify-content-between align-items-center status noselect opponent-status">
<div class="d-flex flex-grow-1 overflow-hidden align-items-center">
<div class="d-flex flex-grow-1 overflow-hidden align-items-center name-rating">
<div class="name"></div>
<span class="badge bg-secondary rating"></span>
</div>
<div class="captured"></div>
</div>
<div class="clock d-flex">
<div class="clock-time"></div>
<div class="fractional-clock-time" style="display: none;"></div>
</div>
</div>
</div>
<div class="card-body p-0 noselect" id="board-card">
<div class="mw-100 position-relative">
<div class="promotion-panel"></div>
<div class="cg-wrap mw-100 board"></div>
</div>
</div>
<div class="bottom-panel card-footer p-0">
<div class="h-100 w-100 d-flex justify-content-between align-items-center status noselect player-status">
<div class="d-flex flex-grow-1 overflow-hidden align-items-center">
<div class="d-flex flex-grow-1 overflow-hidden align-items-center name-rating">
<div class="name"></div>
<span class="badge bg-secondary rating"></span>
</div>
<div class="captured"></div>
</div>
<div class="clock d-flex">
<div class="clock-time"></div>
<div class="fractional-clock-time" style="display: none;"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="right-col" class="col-sm-12 col-md-12 col-lg position-relative align-self-center" style="min-width: 374px">
<div class="card bg-transparent" id="right-card">
<div class="top-panel card-header" id="right-panel-header" style="visibility: hidden">
<div id="user-dropdown" class="dropdown btn-toolbar my-auto me-auto position-relative" style="max-width: 42%">
<button class="w-100 btn btn-outline-secondary btn-md dropdown-toggle hide-caret" type="button" id="connectButton" data-bs-toggle="dropdown" aria-label="Connect/Disconnect" aria-expanded="false">
<div class="tooltip-overlay" data-tooltip-hover-only data-bs-toggle="tooltip" title="Connect/Disconnect"></div>
<div id="session-status" class="w-100"></div>
</button>
<div class="dropdown-menu" aria-labelledby="connectButton">
<a class="dropdown-item noselect" id="disconnect"><span class="fa fa-unlink dropdown-icon" aria-hidden="false"></span>Disconnect</a>
<a class="dropdown-item noselect" id="connect-guest"><span class="fa fa-user-secret dropdown-icon" aria-hidden="false"></span>Connect as Guest</a>
<a class="dropdown-item noselect" id="connect-user"><span class="fa fa-user dropdown-icon" aria-hidden="false"></span>Connect as User</a>
</div>
</div>
<div class="btn-toolbar my-auto ms-auto">
<button id="chat-maximize-btn" class="btn btn-outline-secondary btn-md position-relative" type="button" aria-label="Maximize Chat">
<div class="tooltip-overlay" data-tooltip-hover-only data-bs-toggle="tooltip" data-fallback-placements="left, right" title="Maximize Chat"></div>
<span id="chat-maximize-icon" class="fa fa-toggle-left" aria-hidden="false"></span>
</button>
<div class="modal fade" id="settings-modal" tabindex="-1" aria-labelledby="settings-modal-label" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="settings-modal-label"><span class="fa fa-gear me-2" aria-hidden="false"></span>Settings</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form>
<div class="form-group row">
<div class="col">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="autopromote-toggle" checked>
<label class="form-check-label" for="autopromote-toggle"><span id="autopromote-toggle-icon" class="fa fa-chess-queen dropdown-icon" aria-hidden="false"></span>Queen Auto-promote</label>
</div>
</div>
<div class="col">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="wakelock-toggle" checked>
<label class="form-check-label" for="wakelock-toggle"><span id="wakelock-toggle-icon" class="fa fa-lock dropdown-icon" aria-hidden="false"></span>Wake Lock</label>
</div>
</div>
</div>
<div class="form-group row">
<div class="col">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="notifications-toggle" checked>
<label class="form-check-label" for="notifications-toggle"><span id="notifications-toggle-icon" class="fa fa-bell dropdown-icon" aria-hidden="false"></span>Notifications</label>
</div>
</div>
<div class="col">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="timestamp-toggle" checked>
<label class="form-check-label" for="timestamp-toggle"><span id="timestamp-toggle-icon" class="fa fa-clock-o dropdown-icon" aria-hidden="false"></span>Timestamp</label>
</div>
</div>
</div>
<div class="form-group row">
<div class="col">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="chattabs-toggle" checked>
<label class="form-check-label" for="notifications-toggle"><span id="chattabs-toggle-icon" class="fa-solid fa-comments dropdown-icon" aria-hidden="false"></span>Chat Tabs</label>
</div>
</div>
<div class="col">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="multiboard-toggle" checked>
<label class="form-check-label" for="multiboard-toggle"><span id="multiboard-toggle-icon" class="fa fa-window-restore dropdown-icon" aria-hidden="false"></span>Multi-board mode</label>
</div>
</div>
</div>
<hr/>
<div class="form-group row">
<div class="col" id="textsize-control">
<input type="range" class="custom-range" value="1" min="0.8" max="1.4" step="0.2" id="textsize-range">
<label for="textsize-range">Text Size</label>
</div>
<div class="col">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="highlights-toggle" checked>
<label class="form-check-label" for="highlights-toggle"><span id="highlights-toggle-icon" class="fa fa-arrows-spin dropdown-icon" aria-hidden="false"></span>Board Highlights</label>
</div>
</div>
</div>
<div class="form-group row">
<legend class="col-form-label">Themes</legend>
<div class="btn-group" role="group" aria-label="Themes">
<button type="button" class="btn btn-outline-dark col p-3" style="background: linear-gradient(to right, #dee3e6 50%, #8ca2ad 50%)" id="theme-default"></button>
<button type="button" class="btn btn-outline-dark col p-3" style="background: linear-gradient(to right, #eaffea 50%, #7aab80 50%)" id="theme-green"></button>
<button type="button" class="btn btn-outline-dark col p-3" style="background: linear-gradient(to right, #f4ede1 50%, #c6ab8e 50%)" id="theme-yellow"></button>
<button type="button" class="btn btn-outline-dark col p-3" style="background: linear-gradient(to right, #d3d3d3 50%, #555555 50%)" id="theme-gray"></button>
<button type="button" class="btn btn-outline-dark col p-3" style="background: linear-gradient(to right, #decfef 50%, #b160ca 50%)" id="theme-purple"></button>
<button type="button" class="btn btn-outline-dark col p-3" style="background: linear-gradient(to right, #ececec 50%, #c1c18e 50%)" id="theme-ic"></button>
<button type="button" class="btn btn-outline-dark col p-3" style="background: linear-gradient(to right, #dcdcdc 50%, #c9c9c9 50%)" id="theme-newspaper"></button>
</div>
</div>
<div class="form-group row pe-2">
<legend class="col-form-label">Pieces</legend>
<div>
<div class="btn-group w-100 overflow-auto" role="group" aria-label="Pieces">
<button type="button" class="btn btn-outline-secondary" id="pieces-merida"><img src="assets/css/images/pieces/merida/wN.svg" width="36"/></button>
<button type="button" class="btn btn-outline-secondary" id="pieces-cburnett"><img src="assets/css/images/pieces/cburnett/wN.svg" width="36"/></button>
<button type="button" class="btn btn-outline-secondary" id="pieces-alpha"><img src="assets/css/images/pieces/alpha/wN.svg" width="36"/></button>
<button type="button" class="btn btn-outline-secondary" id="pieces-cardinal"><img src="assets/css/images/pieces/cardinal/wN.svg" width="36"/></button>
<button type="button" class="btn btn-outline-secondary" id="pieces-leipzig"><img src="assets/css/images/pieces/leipzig/wN.svg" width="36"/></button>
<button type="button" class="btn btn-outline-secondary" id="pieces-maestro"><img src="assets/css/images/pieces/maestro/wN.svg" width="36"/></button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div id="settings-dropdown" class="dropdown" data-bs-toggle="tooltip" data-bs-placement="left" title="Settings">
<button class="btn btn-outline-secondary btn-md dropdown-toggle hide-caret" type="button" id="settingsButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Settings">
<span class="fa fa-gear" aria-hidden="false"></span>
</button>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="settingsButton">
<div class="dropdown-item noselect" id="flip-toggle"><span id="flip-toggle-icon" class="fa fa-refresh dropdown-icon" aria-hidden="false"></span>Flip Board</div>
<div class="dropdown-item noselect" id="sound-toggle"><span id="sound-toggle-icon" class="fa fa-volume-up dropdown-icon" aria-hidden="false"></span>Sounds ON</div>
<div class="dropdown-item noselect" id="advanced-settings" data-bs-toggle="modal" data-bs-target="#settings-modal"><span id="advanced-settings-icon" class="fa-solid fa-gears dropdown-icon" aria-hidden="false"></span>Settings</div>
<div class="dropdown-divider"></div>
<div class="dropdown-item disabled noselect" id="version"></div>
</div>
</div>
<span tabindex="0" data-bs-toggle="tooltip" data-bs-placement="left" title="No notifications">
<button id="notifications-btn" style="position: relative" class="btn btn-outline-secondary btn-md" type="button" aria-label="Notifications" data-bs-toggle="button" disabled>
<span id="notifications-icon" class="fa fa-bell" aria-hidden="false"></span>
<svg id="notifications-bubble" class="counter-bubble h-100 w-100" style="display: none; position: absolute; top: 0; left: 0">
<circle cx="50%" cy="50%" transform="translate(6, -6)" r="6" />
<text id="notifications-number" class="counter-number" x="50%" y="50%" transform="translate(6, -5)" text-anchor="middle" alignment-baseline="middle"></text>
</svg>
</button>
<span></span> <!-- This tricks bootstrap into allowing the outer <span> wrapper in a btn-toolbar (so we can have a tooltip on a disabled button) -->
</span>
<button id="chat-toggle-btn" style="position: relative" class="btn btn-outline-secondary btn-md" type="button" data-bs-toggle="collapse" data-bs-target="#collapse-chat" aria-expanded="true" aria-label="Show/Hide Chat" aria-controls="collapse-chat">
<div class="tooltip-overlay" data-tooltip-hover-only data-bs-toggle="tooltip" title="Show/Hide Chat"></div>
<span id="chat-toggle-icon" class="fa fa-comment" aria-hidden="false"></span>
<svg id="chat-unviewed-bubble" class="counter-bubble h-100 w-100" style="display: none; position: absolute; top: 0; left: 0">
<circle cx="50%" cy="50%" transform="translate(6, -6)" r="6" />
<text id="chat-unviewed-number" class="counter-number" x="50%" y="50%" transform="translate(6, -5)" text-anchor="middle" alignment-baseline="middle"></text>
</svg>
</button>
</div>
</div>
<div id="inner-right-panels">
<div id="secondary-board-area" class="pt-1 ps-lg-2 pe-lg-1"></div>
<div id="collapse-chat" class="collapse show collapse-init">
<div id="chat-panel" class="d-flex flex-column">
<div class="card-body d-flex flex-column flex-grow-1" style="min-height: 0">
<div class="d-flex">
<ul class="nav nav-tabs d-flex flex-grow-1 flex-wrap justify-content-start user-select-none" role="tablist" id="tabs">
<div id="chan-dropdown" class="d-flex dropdown" data-bs-toggle="tooltip" data-bs-placement="top" title="Join Channel">
<button class="btn btn-outline-secondary btn-sm dropdown-toggle hide-caret" type="button" id="chanButton" data-bs-toggle="dropdown" aria-expanded="false" aria-label="Join Channel">
<span class="fa fa-plus-square" aria-hidden="false"></span>
</button>
<div id="chan-dropdown-menu" class="dropdown-menu" aria-labelledby="chanButton">
</div>
</div>
<li class="nav-item">
<button class="text-sm-center nav-link active" data-bs-toggle="tab" href="#content-console" id="tab-console" role="tab">Console</button>
</li>
</ul>
<button class="align-self-start btn btn-outline-secondary btn-sm" style="display: none" type="button" id="collapse-chat-arrow" aria-label="Close Chat">
<span class="fa-solid fa-arrow-up" aria-hidden="false"></span>
</button>
</div>
<div class="tab-content d-flex flex-column flex-grow-1 position-relative" style="min-height: 0" id="chat-tabContent">
<button id="chat-scroll-button" class="btn btn-info" title="Scroll to bottom">
<span class="fa-solid fa-arrow-down" aria-hidden="false"></span>
</button>
<div class="tab-pane show active" id="content-console" role="tabpanel">
<div class="d-flex flex-column chat-content-wrapper h-100">
<div class="chat-text flex-grow-1 mt-3" style="min-height: 0"></div>
</div>
</div>
</div>
</div>
<div id="right-panel-footer" class="bottom-panel card-footer widget">
<form id="input-form" class="form-inline d-flex h-100 w-100">
<div class="input-group input-group-md m-auto">
<textarea id="input-text" rows="1" type="text" class="form-control" placeholder="Type message here and press Enter to send!" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="modal" id="login-screen" tabindex="-1" role="dialog" aria-labelledby="login-modal" aria-hidden="true">
<div class="modal-dialog modal-sm" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="login-modal">Login to FICS</h5>
<button type="button" class="btn btn-outline-secondary close" data-bs-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form id="login-form">
<div class="mb-2 form-check form-switch">
<input id="login-as-guest" class="form-check-input" type="checkbox" role="switch">
<label class="form-check-label" for="login-as-guest">
Login as Guest
</label>
</div>
<div class="mb-3">
<input id="login-user" type="text" class="form-control" placeholder="Username" autocomplete="off" required>
<div class="invalid-tooltip">
You're already logged in!
</div>
</div>
<div class="mb-3">
<input id="login-pass" type="password" class="form-control" placeholder="Password" autocomplete="off">
</div>
<div class="mb-1 form-check">
<input id="remember-me" type="checkbox" class="form-check-input">
<label class="form-check-label" for="remember-me">
Remember me
</label>
</div>
Not a member? <a href="https://www.freechess.org/cgi-bin/Register/FICS_register.cgi?Language=English" target="_blank">Register</a> here.
<div class="mt-2 mb-2 pt-3 border-top center justify-content-evenly">
<button type="submit" id="login" class="btn btn-primary">Login</button>
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Cancel</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.7.0.slim.min.js" integrity="sha256-tG5mcZUtJsZvyKAxYLVXrmjKBVLd6VpVccqz/r4ypFE=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/d3.min.js" integrity="sha384-BfdMhEKmGjfIcPlLK2EXeY8IW+8aVgSwDo8P3DHR4+iceT2QW/ygYkMeZ2dZ77j4" crossorigin="anonymous"></script>
<script defer type="text/javascript" src="assets/js/bundle.js"></script>
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', 'UA-93678919-1', 'auto');
ga('send', 'pageview');
</script>
<script async src='https://www.google-analytics.com/analytics.js'></script>
</body>
</html>