-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
901 lines (879 loc) · 48.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
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
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=.8, maximum-scale=0.8">
<script type="text/javascript" src="js/lang.js"></script>
<script type="text/javascript" src="js/bootstrap.bundle.min.js"></script>
<script type="text/javascript" src="js/winddata.js"></script>
<script type="text/javascript" src="js/packs.js"></script>
<script type="text/javascript" src="js/gamestate.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
<script type="text/javascript" src="js/controls.js"></script>
<script type="text/javascript" src="js/windeditor.js"></script>
<script type="text/javascript" src="js/game.js"></script>
<link rel="manifest" href="manifest.json" />
<link rel="icon" href="img/icon.svg" />
<link rel="apple-touch-icon" href="img/icon-96.png" />
<link rel="apple-touch-icon" sizes="256" href="img/icon-256.png" />
<title>TSS | Tactical Sailing Simulator</title>
<link href="css/bootstrap.min.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />
</head>
<body class="start">
<div style="display: none;">
<p>Tactical Sailing Simulator (TSS) is free simulator for sail strategy.</p>
<p>Choose do tack or go forward</p>
<p>#sail #tactical #strategy #rinrab #tss</p>
</div>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" display="block" height="0">
<defs>
<symbol id="icon-starboard-forward" viewBox="0 0 16 16">
<polyline points="14,14 2,2" fill="none" stroke="currentColor" stroke-linejoin="miter" stroke-width="1.7" />
<polyline points="3,8 2,2 8,3" fill="none" stroke="currentColor" stroke-linejoin="miter" stroke-linecap="round"
stroke-width="1.7" />
<ellipse rx="1.8" ry="1.8" cx="14" cy="14" fill="currentColor" />
</symbol>
<symbol id="icon-port-forward" viewBox="0 0 16 16">
<polyline points="2,14 14,2" fill="none" stroke="currentColor" stroke-linejoin="miter" stroke-width="1.7" />
<polyline points="13,8 14,2 8,3" fill="none" stroke="currentColor" stroke-linejoin="miter"
stroke-linecap="round" stroke-width="1.7" />
<ellipse rx="1.8" ry="1.8" cx="2" cy="14" fill="currentColor" />
</symbol>
<symbol id="icon-starboard-tack" viewBox="0 0 16 16">
<polyline points="8,14 2,8 8,2" fill="none" stroke="currentColor" stroke-linejoin="miter" stroke-width="1.7" />
<polyline points="8,7 9,1 3,2" fill="none" stroke="currentColor" stroke-linejoin="miter" stroke-linecap="round"
stroke-width="1.7" />
<ellipse rx="1.8" ry="1.8" cx="8" cy="14" fill="currentColor" />
</symbol>
<symbol id="icon-port-tack" viewBox="0 0 16 16">
<polyline points="8,14 14,8 8,2" fill="none" stroke="currentColor" stroke-linejoin="miter" stroke-width="1.7" />
<polyline points="8,7 7,1 13,2" fill="none" stroke="currentColor" stroke-linejoin="miter" stroke-linecap="round"
stroke-width="1.7" />
<ellipse rx="1.8" ry="1.8" cx="8" cy="14" fill="currentColor" />
</symbol>
<symbol id="wind-arrow" class="svg-round-line">
<path d="M 1 14 L 6 22 L 11 14 M 4 2 V 15 M 8 2 V 15" fill="none" stroke="black"></path>
</symbol>
<symbol id="icon-tomark">
<ellipse rx="3" ry="3" cx="4" cy="7" stroke="currentColor" stroke-width="1" fill="none"></ellipse>
<ellipse rx="1" ry="1" cx="4" cy="7" fill="currentColor"></ellipse>
<path fill-rule="evenodd" fill="currentColor" stroke="currentColor" transform="translate(7, 11.5) rotate(-75) scale(0.5)" d="M8 15a.5.5 0 0 0 .5-.5V2.707l3.146 3.147a.5.5 0 0 0 .708-.708l-4-4a.5.5 0 0 0-.708 0l-4 4a.5.5 0 1 0 .708.708L7.5 2.707V14.5a.5.5 0 0 0 .5.5z" />
</symbol>
<symbol id="cup-svg">
<path d="M2.5.5A.5.5 0 0 1 3 0h10a.5.5 0 0 1 .5.5c0 .538-.012 1.05-.034 1.536a3 3 0 1 1-1.133 5.89c-.79 1.865-1.878 2.777-2.833 3.011v2.173l1.425.356c.194.048.377.135.537.255L13.3 15.1a.5.5 0 0 1-.3.9H3a.5.5 0 0 1-.3-.9l1.838-1.379c.16-.12.343-.207.537-.255L6.5 13.11v-2.173c-.955-.234-2.043-1.146-2.833-3.012a3 3 0 1 1-1.132-5.89A33.076 33.076 0 0 1 2.5.5zm.099 2.54a2 2 0 0 0 .72 3.935c-.333-1.05-.588-2.346-.72-3.935zm10.083 3.935a2 2 0 0 0 .72-3.935c-.133 1.59-.388 2.885-.72 3.935zM3.504 1c.007.517.026 1.006.056 1.469.13 2.028.457 3.546.87 4.667C5.294 9.48 6.484 10 7 10a.5.5 0 0 1 .5.5v2.61a1 1 0 0 1-.757.97l-1.426.356a.5.5 0 0 0-.179.085L4.5 15h7l-.638-.479a.501.501 0 0 0-.18-.085l-1.425-.356a1 1 0 0 1-.757-.97V10.5A.5.5 0 0 1 9 10c.516 0 1.706-.52 2.57-2.864.413-1.12.74-2.64.87-4.667.03-.463.049-.952.056-1.469H3.504z" />
</symbol>
<symbol id="delete-svg">
<path d="M6.5 1h3a.5.5 0 0 1 .5.5v1H6v-1a.5.5 0 0 1 .5-.5ZM11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3A1.5 1.5 0 0 0 5 1.5v1H2.506a.58.58 0 0 0-.01 0H1.5a.5.5 0 0 0 0 1h.538l.853 10.66A2 2 0 0 0 4.885 16h6.23a2 2 0 0 0 1.994-1.84l.853-10.66h.538a.5.5 0 0 0 0-1h-.995a.59.59 0 0 0-.01 0H11Zm1.958 1-.846 10.58a1 1 0 0 1-.997.92h-6.23a1 1 0 0 1-.997-.92L3.042 3.5h9.916Zm-7.487 1a.5.5 0 0 1 .528.47l.5 8.5a.5.5 0 0 1-.998.06L5 5.03a.5.5 0 0 1 .47-.53Zm5.058 0a.5.5 0 0 1 .47.53l-.5 8.5a.5.5 0 1 1-.998-.06l.5-8.5a.5.5 0 0 1 .528-.47ZM8 4.5a.5.5 0 0 1 .5.5v8.5a.5.5 0 0 1-1 0V5a.5.5 0 0 1 .5-.5Z" />
</symbol>
<symbol id="edit-icon">
<path d="M15.502 1.94a.5.5 0 0 1 0 .706L14.459 3.69l-2-2L13.502.646a.5.5 0 0 1 .707 0l1.293 1.293zm-1.75 2.456-2-2L4.939 9.21a.5.5 0 0 0-.121.196l-.805 2.414a.25.25 0 0 0 .316.316l2.414-.805a.5.5 0 0 0 .196-.12l6.813-6.814z" />
<path fill-rule="evenodd"
d="M1 13.5A1.5 1.5 0 0 0 2.5 15h11a1.5 1.5 0 0 0 1.5-1.5v-6a.5.5 0 0 0-1 0v6a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5v-11a.5.5 0 0 1 .5-.5H9a.5.5 0 0 0 0-1H2.5A1.5 1.5 0 0 0 1 2.5v11z" />
</symbol>
<symbol id="youtube">
<path d="M8.051 1.999h.089c.822.003 4.987.033 6.11.335a2.01 2.01 0 0 1 1.415 1.42c.101.38.172.883.22 1.402l.01.104.022.26.008.104c.065.914.073 1.77.074 1.957v.075c-.001.194-.01 1.108-.082 2.06l-.008.105-.009.104c-.05.572-.124 1.14-.235 1.558a2.007 2.007 0 0 1-1.415 1.42c-1.16.312-5.569.334-6.18.335h-.142c-.309 0-1.587-.006-2.927-.052l-.17-.006-.087-.004-.171-.007-.171-.007c-1.11-.049-2.167-.128-2.654-.26a2.007 2.007 0 0 1-1.415-1.419c-.111-.417-.185-.986-.235-1.558L.09 9.82l-.008-.104A31.4 31.4 0 0 1 0 7.68v-.123c.002-.215.01-.958.064-1.778l.007-.103.003-.052.008-.104.022-.26.01-.104c.048-.519.119-1.023.22-1.402a2.007 2.007 0 0 1 1.415-1.42c.487-.13 1.544-.21 2.654-.26l.17-.007.172-.006.086-.003.171-.007A99.788 99.788 0 0 1 7.858 2h.193zM6.4 5.209v4.818l4.157-2.408L6.4 5.209z" />
</symbol>
</defs>
</svg>
<div class="row h-100 g-0 d-print-none">
<div style="width: calc(100vh * 200 / 500); padding: 0;" id="wind-data-container">
<svg xmlns="http://www.w3.org/2000/svg" id="wind-data-svg" class="h-100"></svg>
</div>
<div class="col p-0 position-relative">
<div id="game-cont" class="position-absolute">
<div id="game-area" style="position: relative; height: 100%; width: 100%;">
<svg viewBox="0 0 1 1" id="background" style="height: 100%; background-color: #ebeaff;"></svg>
<div class="copyright">
<div class="text-center text-muted">
TSS © Rautu & Rinrab v1.1.2
</div>
</div>
<div id="lines-container">
<svg id="lines-svg" stroke="gray" class="w-100 h-100" xmlns="http://www.w3.org/2000/svg"
stroke-width="0.005">
<g id="lines-drawing"></g>
</svg>
</div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" class="pn-lines game-elem" id="upmarklines">
<g>
<line x1="25" y1="0" x2="0" y2="25" stroke="gray" stroke-width="0.005"></line>
<line x1="25" y1="0" x2="50" y2="25" stroke="gray" stroke-width="0.005"></line>
</g>
</svg>
<div id="marks"></div>
<div id="track-cont" style="width:100%; height: 100%;">
<svg id="track" xmlns="http://www.w3.org/2000/svg" class="game-elem svg-round-line" style="height: 100%;">
</svg>
</div>
<div id="boats"></div>
<svg xmlns="http://www.w3.org/2000/svg" id="start-line-svg">
<line id="start-line" stroke-dasharray="4 6" stroke-width="0.5" stroke="gray"></line>
</svg>
</div>
</div>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 32" id="wind" class="game-elem">
<use href="#wind-arrow"></use>
</svg>
<h3 class="game-elem" id="wind-label">+10º</h3>
</div>
<div style="width: 300px;" id="controll-container" class="h-100">
<div class="d-flex flex-column align-items-stretch h-100 p-1">
<div>
<div id="start-alert" class="alert alert-warning text-center">
<div class="row align-items-center p-0 m-0">
<!-- <input type="file" id="load-race-file" /> -->
<label class="col">
<span lang="en">Start procedure</span>
<span lang="ru">Стартовая процедура</span>
</label>
</div>
</div>
<div id="game-alert" class="alert alert-info text-center">
<div class="row align-items-center p-0 m-0">
<div class="col">
<span lang="en">Race: </span>
<span lang="ru">Гонка: </span>
<span id="wind-scenario-name-inrace-alert"></span>
</div>
<input type="image" class="btn btn-outline-primary btn-sm col-auto btn-november" data-bs-target="#end-race-modal" data-bs-toggle="modal" src="img/november.svg">
</div>
</div>
</div>
<div id="create">
<div class="input-group mb-3">
<select id="select-wind" class="form-select"></select>
<button class="btn btn-outline-primary" data-bs-toggle="modal" data-bs-target="#manange-winds-modal" title="Manange Winds">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-card-list" viewBox="0 0 16 16">
<path d="M14.5 3a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h13zm-13-1A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-13z" />
<path d="M5 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 5 8zm0-2.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0 5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-1-5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM4 8a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zm0 2.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z" />
</svg>
</button>
<button id="edit-btn" class="btn btn-outline-primary" data-bs-toggle="modal"
data-bs-target="#wind-editor-window" title="Edit wind scenario">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-pencil-square" viewBox="0 0 16 16">
<use href="#edit-icon"></use>
</svg>
</button>
<button id="add-wind-btn" class="btn btn-outline-primary" data-bs-toggle="modal"
data-bs-target="#wind-editor-window" title="Add custom wind scenario">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" style="transform: scale(1.3);"
class="bi bi-plus" viewBox="0 0 16 16">
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z" />
</svg>
</button>
</div>
</div>
<div class="w-100 mb-1 input-group start-control-header">
<button class="btn btn-outline-secondary" id="btn-add-player">
<span lang="en">Add player</span>
<span lang="ru">Добавить игрока</span>
</button>
<button class="btn btn-outline-primary" id="btn-apply">
<span lang="en">Start!</span>
<span lang="ru">Старт!</span>
</button>
</div>
<div class="w-100 mb-1 input-group race-control-header">
<button class="btn btn-outline-primary" id="back-btn">
<span lang="en">Back</span>
<span lang="ru">Назад</span>
</button>
<button class="btn btn-outline-primary" id="btn-done">
<span lang="en">Next</span>
<span lang="ru">Вперед</span>
</button>
</div>
<div class="flex-grow-1 flex-shrink-1 mb-2 overflow-auto">
<div id="controlls" style="width: 100%;">
<div id="last-controll" class="mb-2"></div>
</div>
</div>
<div class="settings-container row g-1">
<div class="btn-group w-100">
<a class="btn btn-outline-primary" id="save-game-btn">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download"
viewBox="0 0 16 16">
<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z" />
<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z" />
</svg>
<span lang="en">Save</span>
<span lang="ru">Сохранить</span>
</a>
<label class="btn btn-outline-primary col" for="load-race-file">
<span class="glyphicon glyphicon-folder-open" aria-hidden="true">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-upload"
viewBox="0 0 16 16">
<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z" />
<path d="M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708l3-3z" />
</svg>
</span>
<span lang="en">Load</span>
<span lang="ru">Загрузить</span>
<input type="file" id="load-race-file" accept=".tss" style="display:none">
</label>
</div>
<div class="col-auto">
<button class="btn btn-outline-primary col-auto position-relative" data-bs-target="#cup-modal" data-bs-toggle="modal">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trophy" viewBox="0 0 16 16" style="transform: scale(1.3)">
<use href="#cup-svg"></use>
</svg>
<span id="cup-race-count" class="position-absolute top-0 start-100 translate-middle badge text-white rounded-pill bg-primary border border-primary" hidden></span>
</button>
</div>
<div class="col-auto">
<button type="button" class="btn btn-outline-primary" data-bs-toggle="modal" data-bs-target="#help-modal">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-question-square" viewBox="0 0 16 16">
<path d="M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" />
<path d="M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z" />
</svg>
</button>
</div>
<div class="btn-group col w-100" role="group" aria-label="Settings">
<input class="btn-check" type="checkbox" id="set-show-tracks" />
<label class="btn btn-outline-secondary" for="set-show-tracks" title="Show tracks">
<svg xmlns="http://www.w3.org/2000/svg" style="transform: scale(1.5);" width="16" height="16" viewBox="0 0 16 16"
class="bi">
<path fill="none" stroke="currentColor" stroke-width="0.5"
d="m6.3 15-.5-.4-.5-.4-.5-.4.5-.4.5-.3.6-.3.6-.3.6-.3.6-.3.6-.3.7-.2-.3-.4-.4-.4-.4-.4-.4-.4-.4-.4-.5-.4-.4-.4-.5-.4-.5-.3-.5-.4.5-.4.5-.4.5-.4.6-.3.5-.4.5-.4.4-.4"></path>
<ellipse ry="0.7" rx="0.7" cx="2" cy="15"></ellipse>
<ellipse ry="0.7" rx="0.7" cx="14" cy="15"></ellipse>
<ellipse ry="0.7" rx="0.7" cx="8" cy="2"></ellipse>
</svg>
</label>
<input class="btn-check" type="checkbox" id="set-show-boats" />
<label class="btn btn-outline-secondary" for="set-show-boats" title="Show boats">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="-5.6247 -10 11.2494 18.5"
style="transform: scale(1.5) rotate(45deg);" class="bi bi-arrows-fullscreen">
<path d="M -4 7.5 L 4 7.5 C 5 1.5 5 -2.5 2.5 -9 L -2.5 -9 C -5 -2.5 -5 1.5 -4 7.5 Z"
stroke="currentColor" stroke-width="1" fill="none" />
<path d="M 0 -6 C 2 -4 3 -1 2 6" stroke="currentColor" fill="none" stroke-width="1" />
<ellipse rx="1" ry="1" cx="0" cy="-6" />
</svg>
</label>
<input class="btn-check" type="checkbox" id="set-show-lanelines" />
<label class="btn btn-outline-secondary" for="set-show-lanelines" title="Show lanelines">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" style="transform: scale(1.5);" viewBox="-8 0 16 16"
class="bi">
<path d="M -8 12 L 0 4 L 8 12" stroke="currentColor" stroke-width=".5" fill="none"></path>
<ellipse rx="1.5" ry="1.5" cx="0" cy="4" fill="currentColor"></ellipse>
</svg>
</label>
<input type="checkbox" class="btn-check" id="set-show-equal-lines" />
<label class="btn btn-outline-secondary show-future-wind" for="set-show-equal-lines"
title="Show equal lines">
<svg viewBox="0 0 16 16" width="16" height="16" xmlns="http://www.w3.org/2000/svg" style="transform: scale(1.5);"
class="bi">
<defs>
<path transform="scale(0.3) translate(9, 10) rotate(-15)" id="boat"
d="M -4 7.5 L 4 7.5 C 5 1.5 5 -2.5 2.5 -9 L -2.5 -9 C -5 -2.5 -5 1.5 -4 7.5 Z" stroke="currentColor"
stroke-width="3" fill="none" />
</defs>
<path d="M 0 15 L 16 11 M 0 11 L 16 7 M 0 7 L 16 3 M 0 3 L 16 -1 M 16 15 L 0 19" fill="none"
stroke="currentColor" stroke-width="0.5" />
<use href="#boat" transform="translate(-1, 7) rotate(-45)"></use>
<use href="#boat" transform="translate(7, 7) rotate(-45)" />
</svg>
</label>
</div>
<div class="btn-group">
<input type="checkbox" class="btn-check" id="zoom-check" />
<label class="btn btn-outline-secondary show-future-wind" for="zoom-check"
title="Zoom to up mark zone">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-zoom-in" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M6.5 12a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11zM13 6.5a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0z" />
<path d="M10.344 11.742c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1 6.538 6.538 0 0 1-1.398 1.4z" />
<path fill-rule="evenodd" d="M6.5 3a.5.5 0 0 1 .5.5V6h2.5a.5.5 0 0 1 0 1H7v2.5a.5.5 0 0 1-1 0V7H3.5a.5.5 0 0 1 0-1H6V3.5a.5.5 0 0 1 .5-.5z" />
</svg>
</label>
<input type="checkbox" class="btn-check" id="show-future-wind" />
<label class="btn btn-outline-secondary show-future-wind" for="show-future-wind" title="Show future wind">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16" style="transform: scale(1.5)"
class="bi">
<path id="arrow" d="M 3 2 L 3 10 M 7 2 L 7 10 M 1 11 L 5 15 L 9 11"
transform="rotate(-10) translate(-2, 0)" stroke-linecap="round" stroke="currentColor" fill="none" />
<use href="#arrow" transform="scale(0.5) translate(23, 0) rotate(20)"></use>
</svg>
</label>
<!--<input class="btn-check" type="checkbox" id="set-projector-mode" />
<label class="btn btn-outline-secondary" for="set-projector-mode" title="Projector Mode">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-projector" viewBox="0 0 16 16">
<path d="M14 7.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0ZM2.5 6a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4Zm0 2a.5.5 0 0 0 0 1h4a.5.5 0 0 0 0-1h-4Z" />
<path d="M0 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1H5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1 2 2 0 0 1-2-2V6Zm2-1a1 1 0 0 0-1 1v3a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H2Z" />
</svg>
</label>-->
<input type="checkbox" class="btn-check" id="full-screen" />
<label class="btn btn-outline-secondary" for="full-screen" title="Fullscreen mode">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-arrows-fullscreen" viewBox="0 0 16 16">
<path fill-rule="evenodd" d="M5.828 10.172a.5.5 0 0 0-.707 0l-4.096 4.096V11.5a.5.5 0 0 0-1 0v3.975a.5.5 0 0 0 .5.5H4.5a.5.5 0 0 0 0-1H1.732l4.096-4.096a.5.5 0 0 0 0-.707zm4.344 0a.5.5 0 0 1 .707 0l4.096 4.096V11.5a.5.5 0 1 1 1 0v3.975a.5.5 0 0 1-.5.5H11.5a.5.5 0 0 1 0-1h2.768l-4.096-4.096a.5.5 0 0 1 0-.707zm0-4.344a.5.5 0 0 0 .707 0l4.096-4.096V4.5a.5.5 0 1 0 1 0V.525a.5.5 0 0 0-.5-.5H11.5a.5.5 0 0 0 0 1h2.768l-4.096 4.096a.5.5 0 0 0 0 .707zm-4.344 0a.5.5 0 0 1-.707 0L1.025 1.732V4.5a.5.5 0 0 1-1 0V.525a.5.5 0 0 1 .5-.5H4.5a.5.5 0 0 1 0 1H1.732l4.096 4.096a.5.5 0 0 1 0 .707z" />
</svg>
</label>
</div>
</div>
</div>
</div>
</div>
<div class="modal modal-sm fade" tabindex="-1" id="end-race-modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">
<span lang="en">Do you want to end race?</span>
<span lang="ru">Закончить гонку?</span>
</h5>
<button class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body g-1 row">
<button class="btn btn-primary" data-bs-dismiss="modal" id="btn-reset-and-addtocup">
<span lang="en">Add to cup</span>
<span lang="ru">Добавить в кубок</span>
</button>
<button class="btn btn-danger" data-bs-dismiss="modal" id="btn-reset" pn-html="do NOT add to cup">
<span lang="en">Do <b>not</b> add to cup</span>
<span lang="ru"><b>Не</b> добавлять в кубок</span>
</button>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" data-bs-dismiss="modal">
<span lang="en">Cancel</span>
<span lang="ru">Отмена</span>
</button>
</div>
</div>
</div>
</div>
<div class="modal fade modal-lg" id="wind-editor-window" data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-fullscreen">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5">Wind Editor</h1>
<div class="mr-0">
<button class="btn btn-outline-primary" id="share-btn" data-bs-toggle="tooltip" data-bs-trigger="none"
data-bs-title="Link copied to clipboard!">
Share
</button>
</div>
</div>
<div class="modal-body row overflow-hidden">
<div class="col" style="height: 100%; overflow: auto;">
<div class="alert alert-warning" id="wind-readonly-text">
This is predifined wind preset. It cannot be changed. Use 'Create Wind' button to
create custom wind scenario.
</div>
<div class="mb-3">
<label class="form-label">Scenario name</label>
<input type="text" class="form-control" id="editor-wind-name" placeholder="i.e. "pendulum 1"" />
</div>
<div class="mb-0">
<label class="form-label">Wind change</label>
<a data-bs-toggle="tooltip" data-bs-title="Enter wind change. Use space, comma or enter as delimeter."
data-bs-placement="right" style="color: var(--bs-primary); margin-left: 0.5rem;">
<svg xmlns="http://www.w3.org/2000/svg" class="bi" width="16" height="16" viewBox="0 0 16 16">
<path d="M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z" />
</svg>
</a>
<textarea class="form-control" id="editor-wind" rows="7"
placeholder="i.e. 5, 10, 15, 20, 15...">0, 0, 0</textarea>
</div>
<div class="mb-3 row">
<div class="col d-block invalid-feedback" id="wind-valid"></div>
<div class="col-auto"><span>Average wind: </span><span id="wind-average"></span></div>
<div class="col-auto text-end"><span>Wind length: </span><span id="wind-count"></span></div>
</div>
<div class="mb-3">
<div class="row">
<div class="col">
<label class="form-label">Map width</label>
<input type="number" value="40" min="5" max="200" class="form-control" id="map-width" />
</div>
<div class="col">
<label class="form-label">Map height</label>
<input type="number" value="30" min="5" max="200" class="form-control" id="map-height" />
</div>
<div class="col">
<label class="form-label">Start line size</label>
<input type="number" value="15" min="5" max="200" class="form-control" id="start-line-size" />
</div>
</div>
</div>
</div>
<div class="col-3 h-100" id="editor-preview" style="height: 100%;"></div>
</div>
<div class="modal-footer">
<div class="row w-100 g-2">
<div class="col-auto">
<button type="button" class="btn btn-danger col-auto" id="delete-btn" data-bs-dismiss="modal">
Delete
</button>
</div>
<div class="col-auto">
<button class="btn btn-primary" id="copy-btn" data-bs-dismiss="modal">Make a copy</button>
</div>
<div class="col"></div>
<div class="col-auto">
<button type="button" class="btn btn-primary col-auto" id="editor-save" data-bs-dismiss="modal">
Save changes
</button>
</div>
<div class="col-auto">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade modal-lg" id="add-wind-url-window">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5">Add wind?</h1>
</div>
<div class="modal-body">
<div class="mb-3">
<label class="form-label">Scenario name</label>
<input type="text" class="form-control" id="add-wind-name" readonly />
</div>
<div class="mb-0">
<label class="form-label">Wind change</label>
<textarea class="form-control" id="add-wind-text" rows="7" readonly></textarea>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id="load-wind-save" data-bs-dismiss="modal">
Add wind
</button>
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
<div class="modal fade d-print-none" id="cup-modal">
<div class="modal-dialog modal-fullscreen">
<div class="modal-content">
<div class="modal-header d-print-none row g-1">
<div class="col-auto">
<h1 class="modal-title fs-5">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-trophy" viewBox="0 0 16 16" style="transform: scale(1.3)">
<use href="#cup-svg"></use>
</svg>
<span class="m-1"></span>
<span lang="en">Cup</span>
<span lang="ru">Кубок</span>
</h1>
</div>
<div class="col-1"></div>
<div class="col-auto">
<button class="btn btn-outline-primary" data-bs-dismiss="modal" id="add-players-to-race-btn">
<span lang="en">Add players to race</span>
<span lang="ru">Добавить яхты в гонку</span>
</button>
</div>
<div class="col"></div>
<div class="col-auto">
<div class="btn-group dropstart">
<button type="button" class="btn btn-outline-secondary dropdown-toggle dropdown-arrow-hidden" data-bs-toggle="dropdown">
<span lang="en">Reset</span>
<span lang="ru">Сбросить</span>
</button>
<div class="dropdown-menu p-3" style="width: 15rem">
<div class="mb-1 text-center fw-semibold">
<span lang="en">Do you want to reset cup?</span>
<span lang="ru">Сбросить кубок?</span>
</div>
<div class="row m-0 p-0 gx-1">
<div class="col">
<button class="btn btn-danger w-100" id="cup-reset-btn">
<span lang="en">Reset</span>
<span lang="ru">Сбросить</span>
</button>
</div>
<div class="col">
<button class="btn btn-primary w-100">
<span lang="en">Cancel</span>
<span lang="ru">Отмена</span>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-body">
<div class="row d-print-none">
</div>
<div id="cup-container"></div>
<div class="row">
<div class="col"></div>
<header class="col-auto fw-bold print-only">
<span id="print-excluding"></span>
</header>
</div>
</div>
<div class="modal-footer d-print-none row g-0">
<div class="col-auto">
<button class="btn btn-secondary" id="cup-print">
<span lang="en">Print</span>
<span lang="ru">Печать</span>
</button>
</div>
<div class="col-auto mx-2"></div>
<div class="col-auto">
<button class="btn btn-primary" id="cup-export">
<span lang="en">Export</span>
<span lang="ru">Экспортировать</span>
</button>
</div>
<div class="col-auto">
<label class="btn btn-primary" for="cup-import">
<span lang="en">Import</span>
<span lang="ru">Импортировать</span>
</label>
<input type="file" accept=".tsscup" id="cup-import" hidden />
</div>
<div class="col"></div>
<div class="col-auto">
<select id="cup-excluding" class="form-select col-auto" style="width: 300px">
<option>No excluding</option>
<option>1 excluding</option>
<option>2 excluding</option>
<!-- TODO: translate -->
</select>
</div>
<div class="col-auto">
<button class="btn btn-secondary" data-bs-dismiss="modal">
<span lang="en">Close</span>
<span lang="ru">Закрыть</span>
</button>
</div>
</div>
</div>
</div>
</div>
<div class="modal modal fade" id="install-tsspreview-modal">
<div class="modal-dialog modal-dialog-centered modal-fullscreen-lg-down">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Install TSS Preview</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<p>
You can install
<a href="" target="_blank" class="text-decoration-none tsspreview">TSS Preview</a>
for fast preview .tss files.
</p>
</div>
<div class="modal-footer">
<div class="btn-group w-100">
<a href="" id="install-tsspreview-btn" target="_blank" class="btn btn-outline-primary col tsspreview">Install</a>
<button class="btn btn-outline-primary col" data-bs-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
</div>
<div class="modal modal fade" id="manange-winds-modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Manange Winds</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div id="wm-list"></div>
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
<div class="modal modal-lg fade" id="help-modal">
<div class="modal-dialog modal-fullscreen-lg-down">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">
<span lang="en">Help</span>
<span lang="ru">Справка</span>
</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<div class="row">
<h5 class="text-start">
<span lang="en">Keyboard shortcuts</span>
<span lang="ru">Сочетания клавиш</span>
</h5>
<div class="col">
<table class="table table-borderless">
<tbody>
<tr>
<td class="text-end">
<kbd lang="en">Space</kbd>
<kbd lang="ru">Пробел</kbd>
</td>
<td>
<span lang="en">Next turn</span>
<span lang="ru">Следующий ход</span>
</td>
</tr>
<tr>
<td class="text-end">
<kbd>
<span>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-backspace" viewBox="0 0 16 16" style="margin-bottom: -1px;">
<path d="M5.83 5.146a.5.5 0 0 0 0 .708L7.975 8l-2.147 2.146a.5.5 0 0 0 .707.708l2.147-2.147 2.146 2.147a.5.5 0 0 0 .707-.708L9.39 8l2.146-2.146a.5.5 0 0 0-.707-.708L8.683 7.293 6.536 5.146a.5.5 0 0 0-.707 0z"/>
<path d="M13.683 1a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-7.08a2 2 0 0 1-1.519-.698L.241 8.65a1 1 0 0 1 0-1.302L5.084 1.7A2 2 0 0 1 6.603 1h7.08zm-7.08 1a1 1 0 0 0-.76.35L1 8l4.844 5.65a1 1 0 0 0 .759.35h7.08a1 1 0 0 0 1-1V3a1 1 0 0 0-1-1h-7.08z"/>
</svg>
</span>
<span lang="en">Backspace</span>
<span lang="ru">Назад</span>
</kbd>
</td>
<td>
<span lang="en">Previous turn</span>
<span lang="ru">Предыдущий ход</span>
</td>
</tr>
<tr>
<td class="text-end"><kbd>1</kbd> - <kbd>9</kbd></td>
<td>
<span lang="en">Change player turn selection</span>
<span lang="ru">Изменить выбор игрока</span>
</td>
</tr>
<tr>
<td class="text-end"><kbd>A</kbd></td>
<td>
<span lang="en">Add player</span>
<span lang="ru">Добавить игрока</span>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col">
<table class="table table-borderless">
<tbody>
<tr>
<td class="text-end"><kbd>Ctrl</kbd> + <kbd>1</kbd></td>
<td>
<span lang="en">All forward</span>
<span lang="ru">Всем вперед</span>
</td>
</tr>
<tr>
<td class="text-end"><kbd>Ctrl</kbd> + <kbd>2</kbd></td>
<td>
<span lang="en">All tack</span>
<span lang="ru">Всем оверхштаг</span>
</td>
</tr>
<tr>
<td class="text-end"><kbd>Ctrl</kbd> + <kbd>3</kbd></td>
<td>
<span lang="en">All to mark</span>
<span lang="ru">Всем на знак</span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<h5>Tactical Sail Simulator</h5>
<p>
<span lang="en">
Tactical sail simulator is trainer for sail strategy.
This trainer made for one device.
Players sitting near the device and say to coach their turns: go forward or
do take.
</span>
<span lang="ru">
Tactical Sail Simulator - это тренажер для стратегии парусных гонок.
Он сделан для совместных тренеровок на одном устройстве.
Идея в том, что спортсмены говорят тренеру свой ход (вперед или оверхштаг)
и пытаются выиграть на заходах ветра.
</span>
</p>
<p>
<strong lang="en">Forward: </strong>
<strong lang="ru">Вперед: </strong>
<span lang="en">Move boat forward along with the wind.</span>
<span lang="ru">Двигает все яхты вперед с учетом захода ветра.</span>
</p>
<p>
<strong lang="en">Tack: </strong>
<strong lang="ru">Оверхштаг: </strong>
<span lang="en">
Change moving direction from left-top to right-top and back.
Tack is main command in control. Use it to optimize your path.
</span>
<span lang="ru">
Изменяет направление движения (с направления в левый верхний угол на направления в правый вехний угол и обратно).
Поворот оверхштаг - это основная команда в тренажере. Используйте ее для сокращения пути.
</span>
</p>
</p>
<p>
<strong lang="en">To Mark: </strong>
<strong lang="ru">На знак: </strong>
<span lang="en">If you are out lane line or near finish press it to take of.</span>
<span lang="ru">Используйте эту команды если вы на лейн-лайне или рядом с финишем.</span>
</p>
</p>
<h5 lang="en">Save your game</h5>
<h5 lang="ru">Как сохранить гонку?</h5>
<p lang="en">
After race you can save game for next analysis or to continue.
Click to save button in bottom right of display to save your race.
Then you can continue this race later, press to load then select file and continue race.
To view race on windows PC you can use
<a href="" target="_blank" class="text-decoration-none tsspreview">TSS Preview</a>.
</p>
<p lang="ru">
После того как вы прошли гонку, вы можете сохранить игру для анализа стратегии и продолжении гонки в будущем.
Для этого нажмите на кнопку "Сохранить" в правом-нижнем углу.
После этого вы можете продолжить гонку нажав загрузить и выбрав файл с игрой.
Чтобы быстро смотреть гонки изпользуйте программу
<a href="" target="_blank" class="text-decoration-none tsspreview">TSS Preview</a>
она сможет облегчить жизнь.
</p>
<div class="row">
<a>
<img src="screenshots/1.png" class="img-thumbnail rounded-4 mb-2" alt="Screenshot 1">
</a>
<a>
<img src="screenshots/2.png" class="img-thumbnail rounded-4" alt="Screenshot 2">
</a>
</div>
<br>
<div id="changelog">
<h5 lang="en">Changelog</h5>
<h5 lang="ru">Список изменений</h5>
<ul type="disc">
<li>
<p><strong>v1.1.2</strong></p>
<ul type="circle">
<li>
<p lang="en">Add "Manage Winds" window for watch wind list and edit it quick</p>
<p lang="ru">Добавлен диалог "Управлять ветрами" чтобы смотреть список ветров и быстро редактировать их</p>
</li>
</ul>
</li>
<li>
<p><strong>v1.1.1</strong></p>
<ul type="circle">
<li>
<p lang="en">
Create <a class="text-decoration-none tsspreview" target="_blank" href="">TSS Preview</a> for preview *.tss files
</p>
<p lang="ru">
Создана программа <a class="text-decoration-none tsspreview" target="_blank" href="">TSS Preview</a> для предпросмотра *.tss файлов
</p>
</p>
</li>
</ul>
</li>
<li>
<p><strong>v1.1.0</strong></p>
<ul type="circle">
<li>
<p>
<span lang="en">Add cup</span>
<span lang="ru">Добавлен режим кубка</span>
<span class="mx-1"></span>
<a href="https://youtu.be/YFyJAuS8ej4" class="text-decoration-none align-middle" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" style="scale: 1.2;" fill="currentColor" class="bi bi-youtube" viewBox="0 0 16 16">
<use href="#youtube"></use>
</svg>
<span lang="en">See video</span>
<span lang="ru">Смотреть видео</span>
</a>
</p>
</li>
<li>
<p lang="en">Add hotkeys to select turn of all boats to forward, tack or to mark</p>
<p lang="ru">Добавлены сочетания клавиш для установки всех яхт "Вперед", "Оверхштаг" и "На знак"</p>
</li>
</ul>
</li>
<li>
<p><strong>v1.0.2</strong></p>
<ul type="circle">
<li>
<p lang="en">Zoom to up mark zone</p>
<p lang="ru">Добавлена функция чтобы приблизить в зону знака</p>
</li>
<li>
<p lang="en">Add help</p>
<p lang="ru">Добавлена справка</p>
</li>
</ul>
</li>
<li>
<p><strong>v1.0.0</strong></p>
<ul type="circle">
<li>
<p lang="en">Initial release.</p>
<p lang="ru">Первая версия.</p>
</li>
</ul>
</li>
</ul>
</div>
<br />
<div>
<div class="row">
<div class="col">
<a href="https://github.com/rinrab/tss" class="text-muted text-decoration-none" target="_blank">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor"
class="bi bi-github" viewBox="0 0 16 16">
<path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z" />
</svg>
GitHub
</a>
</div>
<p class="col text-end text-muted">© Rautu & Rinrab</p>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">
<span lang="en">Close</span>
<span lang="ru">Закрыть</span>
</button>
</div>
</div>
</div>
</div>
<div class="toast-container position-fixed top-0 start-0 p-3 d-print-none">
<div id="too-many-boats-alert" class="toast" data-bs-autohide="true" data-bs-delay="4000">
<div class="toast-header">
<strong class="me-auto">Too many boats</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
<span lang="en">You can't add more players.</span>
<span lang="ru">Вы не можете добавить больше яхт.</span>
</div>
</div>
</div>
<div class="toast-container position-fixed top-0 end-0 p-3 d-print-none">
<div id="add-player-alert" class="toast" data-bs-autohide="true">
<div class="toast-header">
<strong class="me-auto">
<span lang="en">You add boat</span>
<span lang="ru">Вы добавили яхту</span>
</strong>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
</div>
</div>
</div>
<div id="print-area">
</div>
</body>
</html>