-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbythelee-ThreeJS.html
More file actions
969 lines (855 loc) · 35.1 KB
/
bythelee-ThreeJS.html
File metadata and controls
969 lines (855 loc) · 35.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
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
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
<head>
<title>By The Lee</title>
<meta charset="UTF-8">
<!--
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-->
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link rel="stylesheet" type="text/css" href="stylesheets/sliders.css">
<link href='https://fonts.googleapis.com/css?family=Sofia' rel='stylesheet'>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script src="/socket.io/socket.io.js"></script>
<script>
function toggleFullScreen() {
LBUtil.toggleFullScreen(document.getElementById("container"));
}
</script>
<style type="text/css">
html {
font-family: sans-serif;
font-size: 10px;
}
body {
margin: 0px;
padding: 0px;
overflow: hidden; /* Gets rid of the scroll bars */
}
canvas {
width: 100%; height:100%;
}
.fatal_error {
font-family: monospace;
text-align: center;
background-color: white;
color: black;
padding: 1.5rem;
}
.fatal_error_msg {
font-size: 1.25rem;
}
/* Used to dipslay a fatal error message */
#fatal_error {
position: absolute;
background-color: gray;
width: 100%;
height: 100%;
z-index: 1000;
margin: auto;
visibility: hidden;
}
#fatal_error_frame {
margin: 1.5rem;
}
#fatal_error_title {
font-size: 2rem;
}
#splash {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
margin: 0px;
overflow: auto;
}
#splash_title_table {
margin: 0 auto;
}
#splash_byline {
text-align: left;
font-style: italic;
font-size: 1.5rem;
}
#splash_title {
text-align: center;
font-size: 8rem;
}
#splash_icons_heading {
padding-top: 10px;
text-align: center;
font-size: 1.8rem;
font-weight: bold;
}
#splash_icon_table {
margin: 0 auto;
font-size: 1.5rem;
}
#splash_loading {
margin-top: 3rem;
text-align: center;
font-size: 3rem;
color: blue;
cursor: pointer;
}
#credits {
padding-top: 2rem;
margin: 0 auto;
font-size: 1.5rem;
}
#credits_title {
font-weight: bold;
text-align: center;
}
#credits_table {
margin: 0 auto;
visibility: hidden;
}
#credits:hover #credits_table {
visibility: visible;
}
#container {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
margin: 0px;
visibility: hidden;
}
#main_view {
position: absolute;
top: 0px;
bottom: 0px;
left: 0px;
right: 0px;
margin: 0px;
background-color: whitesmoke;
}
/*
Prevent focus box from being drawn around sliders
*/
input[type=range]::-moz-focus-outer {
border:0;
}
.vertical_slider {
margin: 0px;
padding: 0px;
}
.horizontal_slider {
margin: 0px;
padding: 0px;
}
/*
Label that appears on the top side of the slider.
*/
.slider_top_label {
position: absolute;
top: 4px;
font-size: 1.2rem;
}
/*
Label that appears on the bottom side of the slider.
*/
.slider_bottom_label {
position: absolute;
bottom: 4px;
font-size: 1.2rem;
}
#right_controls {
position: absolute;
top: 50%;
right: 10px;
width: 30rem;
transform: translateY(-50%);
z-index: 110;
}
/* Container for the vertical sheet controls within #right_controls */
#vsheet_controls {
transform-origin: right;
transform: rotate(270deg) translateX(50%) translateY(-50%);
}
/* Individual vertical sheet control. */
.vsheet_slider {
width: 30rem;
}
#bottom_controls {
position: absolute;
left: 50%;
bottom: 10px;
width: 30rem;
transform: translateX(-50%);
z-index: 120;
}
/* Container for the hull controls within #bottom_controls */
#hull_controls {
}
/* Individual hull control */
.hull_control_slider {
width: 30rem;
}
/* The HUD container */
#hud {
font-size: 1.2rem;
}
/* Outer container for a HUD display that pops up with a button */
.hud_display {
position: absolute;
}
/* Button-type element for popping up a HUD info display */
.hud_nav_btn {
text-align: left;
position: absolute;
width: 1.5rem;
text-shadow: 2px 2px 1px gray;
color: darkblue;
z-index: 10;
cursor: pointer;
padding: 1px;
border-width: 1px;
border-style: none;
display: inline-block;
position: absolute;
left: 0px;
top: 0px;
}
/* hud_nav_label is the expanded label displayed above a HUD info display */
.hud_nav_btn .hud_nav_label {
visibility: hidden;
position: absolute;
z-index: 11;
left: 1px;
text-align: left;
top: 1px;
width: 100px;
}
.hud_nav_btn:hover .hud_nav_label {
visibility: visible;
}
/* Table for a HUD info display */
.hud_popup_table {
table-layout: fixed;
border-collapse: collapse;
text-align: right;
font-family: "Aldrich", monospace;
font-size: 1.2rem;
}
.hud_popup_table_left {
position: absolute;
left: -200px;
top: 1.7rem;
}
.hud_popup_table td:nth-child(1) {
width: 30px;
}
.hud_popup_table td:nth-child(2) {
width: 40px;
}
.hud_popup_table td:nth-child(3) {
width: 20px;
text-align: left;
}
#hud_boat {
top: 7rem;
}
#hud_numeric_wind {
top: 16rem;
}
#hud_force {
top: 24rem;
}
/* A wind indicator, normally has a speed indicator and a dial */
.wind_indicator {
position: absolute;
width: 5.5rem;
height: 5.5rem;
}
/* An item in a wind indicator */
.wind_indicator_item {
float: left;
}
/* The wind arrow direction dial */
.wind_dial {
margin: auto;
width: 5rem;
height: 5rem;
font-size: 5rem;
color: rgba(0,0,0, .7);
}
/* The wind speed indicator, contains all the LED items */
.wind_speed_indicator {
width: 0.5rem;
}
/* A single LED item in the speed bar. */
.wind_speed_led {
width: 0.5rem;
height: 0.4rem;
border-style: solid;
border-width: 1px;
border-color: darkslategray;
}
.wind_speed_led_f0 {
background-color: hsla(120, 100%, 34%, .7);
}
.wind_speed_led_f1 {
background-color: hsla(120, 100%, 34%, .7);
}
.wind_speed_led_f2 {
background-color: hsla(120, 100%, 34%, .7);
}
.wind_speed_led_f3 {
background-color: hsla(60, 80%, 72%, .7);
}
.wind_speed_led_f4 {
background-color: hsla(60, 80%, 72%, .7);
}
.wind_speed_led_f5 {
background-color: hsla(29, 100%, 50%, .7);
}
.wind_speed_led_f6 {
background-color: hsla(0, 76%, 50%, .7);
}
.wind_speed_led_f7 {
background-color: hsla(0, 76%, 50%, .7);
}
.wind_speed_led_f8 {
background-color: hsla(0, 76%, 50%, .7);
}
/* A hover-style drop down */
.dropdown {
padding-left: 5px;
padding-right: 5px;
display: inline-block;
}
/* The button that drops down the contents of a dropdown */
.dropdown_btn {
cursor: pointer;
}
/* Container of the items dropped down */
.dropdown_items {
display: none;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
}
/* Items within .dropdown_items */
.dropdown_item {
display: block;
}
.dropdown:hover .dropdown_items {
display: block;
}
.dropdown:hover .dropdown_btn {
background-color: darkgray;
}
/* Outer-most container for app-wind indicator */
#app_wind_indicator {
left: 5px;
top: 5px;
z-index: 2;
}
/* The wind SVG icon. */
.wind_icon {
padding: 7px;
width: 1.5rem;
height: 1.5rem;
}
/* A menu button */
.menu_button {
text-align: center;
font-size: 1.5rem;
width: 3rem;
text-shadow: 2px 2px 1px gray;
color: darkblue;
z-index: 10;
cursor: pointer;
padding: 1px;
border-width: 1px;
border-style: none;
}
.menu_button:hover {
background-color: darkgray;
}
.menu_text {
font-size: 1.75rem;
color: darkblue;
cursor: pointer;
padding: 1px;
border-width: 1px;
border-style: none;
}
.menu_text:hover {
background-color: darkgray;
}
/* A menu button that's aligned horizontally */
.horiz_menu_button {
float: left;
}
.north_east {
transform: rotate(45deg);
}
.east {
transform: rotate(90deg);
}
.south_east {
transform: rotate(135deg);
}
.south {
transform: rotate(180deg);
}
.south_west {
transform: rotate(225deg);
}
.west {
transform: rotate(270deg);
}
.north_west {
transform: rotate(315deg);
}
#wind_menu {
position: absolute;
left: 10rem;
padding: 5px;
}
#view_menu {
position: absolute;
left: 13rem;
padding: 5px;
}
#menu_bar_top {
position: absolute;
left: 17rem;
width: 50%;
padding: 5px;
}
#race_menu {
position: absolute;
left: 28rem;
padding: 5px;
}
#race_display {
padding: 5px;
position: absolute;
left: 50%;
transform: translateX(-50%);
font-size: 4rem;
font-family: monospace;
text-align: center;
color: #00000088;
visibility: hidden;
}
.race_status {
display: inline;
}
.good_results {
color: #00AA00CC;
}
.penalty {
color: #CC0000CC;
}
.final_results {
color: #000088CC;
}
#penalty_status {
display: inline;
visibility: hidden;
}
#race_results {
cursor: pointer;
font-size: 4rem;
position: absolute;
font-family: monospace;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
visibility: hidden;
}
/* One of the two PIP views along the bottom of the screen */
.pip_view_bottom {
position: absolute;
bottom: 0px;
width: 50%;
height: 40%;
z-index: 1;
transition: 0.4s all;
}
/* A PIP view aligned along the left side of the screen */
.pip_view_left {
position: absolute;
left: -50%;
}
/* A PIP view aligned along the right side of the screen */
.pip_view_right {
position: absolute;
right: -50%;
}
.pip_view_map {
position: absolute;
top: 0px;
right: -30rem;
width: 30rem;
height: 30rem;
max-width: 50%;
max-height: 50%;
z-index: 1;
transition: 0.4s all;
background-color: rgba(0, 0, 256, 0.3);
}
/* The element that toggles a PIP view */
.pip_btn {
font-size: 1.5rem;
text-shadow: 2px 2px 1px gray;
color: darkblue;
z-index: 10;
cursor: pointer;
padding: 1px;
border-width: 1px;
border-style: none;
}
.pip_btn:hover {
background-color: darkgray;
}
#pip_map_btn {
position: absolute;
right: 5px;
top: 5px;
}
#pip_lower_right_btn {
position: absolute;
right: 5px;
bottom: 5px;
}
#pip_lower_left_btn {
position: absolute;
left: 5px;
bottom: 5px;
}
</style>
</head>
<body>
<div id="container">
<div id="main_view"></div>
<div id="hud">
<div id="app_wind_indicator" class="wind_indicator">
<div id="app_wind_speed_indicator" class="wind_indicator_item wind_speed_indicator">
<div id="app_wind_speed_led_f8" class="wind_speed_led wind_speed_led_f8"></div>
<div id="app_wind_speed_led_f7" class="wind_speed_led wind_speed_led_f7"></div>
<div id="app_wind_speed_led_f6" class="wind_speed_led wind_speed_led_f6"></div>
<div id="app_wind_speed_led_f5" class="wind_speed_led wind_speed_led_f5"></div>
<div id="app_wind_speed_led_f4" class="wind_speed_led wind_speed_led_f4"></div>
<div id="app_wind_speed_led_f3" class="wind_speed_led wind_speed_led_f3"></div>
<div id="app_wind_speed_led_f2" class="wind_speed_led wind_speed_led_f2"></div>
<div id="app_wind_speed_led_f1" class="wind_speed_led wind_speed_led_f1"></div>
<div id="app_wind_speed_led_f0" class="wind_speed_led wind_speed_led_f0"></div>
</div>
<div class="wind_indicator_item">
<i id="app_wind_dial" class="material-icons wind_dial">navigation</i>
</div>
</div>
<div id="wind_menu" class="dropdown">
<div class="wind_icon dropdown_btn">
<!-- Wind Icon... -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -60 100 120">
<path
d="M 0,0 70,0 c15,0 15,-30 0,-30 s-15,0 -15,15
M 0,-20 25,-20 c15,0 15,-30 0,-30 s-15,0 -15,15
M 0, 20 50, 20 c15,0 15,30 0,30 s-15,0 -15,-15"
fill="none" stroke="black" stroke-width="10px"/>
</svg>
<!-- End Wind Icon... -->
</div>
<div class="dropdown_items">
<div id="app_wind_back" class="dropdown_item menu_button" onclick="myApp.windBack()">
<i class="material-icons">rotate_left</i>
</div>
<div id="app_wind_veer" class="dropdown_item menu_button" onclick="myApp.windVeer()">
<i class="material-icons">rotate_right</i>
</div>
<div id="app_wind_increase" class="dropdown_item menu_button" onclick="myApp.windIncrease()">
<i class="material-icons">arrow_upward</i>
</div>
<div id="app_wind_decrease" class="dropdown_item menu_button" onclick="myApp.windDecrease()">
<i class="material-icons">arrow_downward</i>
</div>
</div>
</div>
<div id="view_menu" class="dropdown">
<div class="dropdown_btn menu_button">
<i class="material-icons">settings_overscan</i>
</div>
<div class="dropdown_items">
<div id="view_aft" class="dropdown_item menu_button" onclick="myApp.viewAft()">
<i class="material-icons">arrow_downward</i>
</div>
<div id="view_fwd" class="dropdown_item menu_button" onclick="myApp.viewFwd()">
<i class="material-icons">arrow_upward</i>
</div>
<div id="view_port" class="dropdown_item menu_button" onclick="myApp.viewPort()">
<i class="material-icons">arrow_back</i>
</div>
<div id="view_stbd" class="dropdown_item menu_button" onclick="myApp.viewStbd()">
<i class="material-icons">arrow_forward</i>
</div>
<div id="view_up" class="dropdown_item menu_button" onclick="myApp.viewUp()">
<i class="material-icons">cloud_queue</i>
</div>
<div id="camera_view" class="dropdown_item menu_button" onclick="myApp.nextCameraView()">
<i class="material-icons">directions_boat</i>
</div>
</div>
</div>
<div id="menu_bar_top">
<div id="menu_full_screen" class="menu_button horiz_menu_button" onclick="myApp.toggleFullScreen(document.getElementById('container'))">
<i class="material-icons">fullscreen</i>
</div>
<div id="menu_mouse_mode" class="menu_button horiz_menu_button" onclick="myApp.nextMouseMode()">
<i class="material-icons">open_with</i>
</div>
<div id="menu_run_pause" class="menu_button horiz_menu_button" onclick="myApp.toggleRunPause()">
<i class="material-icons">pause</i>
</div>
</div>
<div id="race_menu" class="dropdown">
<div class="dropdown_btn menu_button">
<i class="material-icons">assistant_photo</i>
</div>
<div class="dropdown_items">
<div id="practice_race" class="dropdown_item menu_text" onclick="myApp.startRace('Windward - Leeward', 'practice')">
Practice Windward Leeward
</div>
</div>
</div>
<div id="race_display">
<div id="time_display" class="race_status">-00:00:00.0</div>
<div id="marks_status" class="race_status">15/15</div>
<div id="penalty_status" class="race_status penalty">00:00 PENALTY</div>
</div>
<div id="hud_boat" class="hud_display">
<div class="hud_nav_btn" onclick="myApp.toggleHUDBoat()">B
<span id="hud_label_boat" class="hud_nav_label">Boat HUD</span>
</div>
<table id="hud_popup_boat" class="hud_popup_table hud_popup_table_left">
<tr>
<td>HDG</td>
<td id="hud_heading">000</td>
<td>°</td>
</tr>
<tr>
<td>SPD</td>
<td id="hud_speed">00.0</td>
<td>kt</td>
</tr>
<tr>
<td>VMG</td>
<td id="hud_vmg">-00.0</td>
<td>kt</td>
</tr>
<tr>
<td>LWY</td>
<td id="hud_leeway_deg">0.0</td>
<td id="hud_leeway_dir">°S</td>
</tr>
</table>
</div>
<div id="hud_numeric_wind" class="hud_display">
<div class="hud_nav_btn" onclick="myApp.toggleHUDWind()">W
<span id="hud_label_wind" class="hud_nav_label">Wind HUD</span>
</div>
<table id="hud_popup_wind" class="hud_popup_table hud_popup_table_left">
<tr>
<td>DIR</td>
<td id="hud_wind_dir">000</td>
<td>°</td>
</tr>
<tr>
<td>SPD</td>
<td id="hud_wind_speed">000</td>
<td>kt</td>
</tr>
<tr><td> </td><td></td><td></td></tr>
<tr>
<td>FPS</td>
<td id="hud_fps">0</td>
<td></td>
</tr>
</table>
</div>
<div id="hud_force" class="hud_display">
<div class="hud_nav_btn" onclick="myApp.toggleHUDForce()">F
<span id="hud_label_force" class="hud_nav_label">Forces HUD</span>
</div>
<table id="hud_popup_force" class="hud_popup_table hud_popup_table_left">
<tr>
<td>DRV</td>
<td id="hud_f_driving">000</td>
<td></td>
</tr>
<tr>
<td>HLG</td>
<td id="hud_f_heeling">000</td>
<td></td>
</tr>
<tr>
<td>FRC</td>
<td id="hud_f_friction">000</td>
<td></td>
</tr>
<tr>
<td>RES</td>
<td id="hud_f_residuary">000</td>
<td></td>
</tr>
<tr>
<td>IKL</td>
<td id="hud_f_induced_keel">000</td>
<td></td>
</tr>
<tr>
<td>ISL</td>
<td id="hud_f_induced_sail">000</td>
<td></td>
</tr>
</table>
</div>
</div>
<div id="right_controls">
<div id="vsheet_controls">
<div id="jib_slider">
<div class="slider_top_label">Jib</div>
<div><input id="jibsheet" class="vertical_slider vsheet_slider" type="range" value="0" min="-100" max="100" oninput="myApp.onJibsheetChange(value, min, max)"></div>
</div>
<div id="main_slider">
<div class="slider_bottom_label">Main</div>
<div><input id="mainsheet" class="vertical_slider vsheet_slider" type="range" value="0" min="-100" max="100" oninput="myApp.onMainsheetChange(value, min, max)"></div>
</div>
</div>
</div>
<div id="bottom_controls">
<div id="hull_controls">
<div id="rudder_slider">
<div class="slider_top_label">Rudder</div>
<div><input id="rudder" class="horizontal_slider hull_control_slider" type="range" value="0" min="-100" max="100" oninput="myApp.onRudderChange(value, min, max)"
data-flip_min_max="true"></div>
</div>
<div id="throttle_slider">
<div class="slider_bottom_label">Throttle</div>
<div><input id="throttle" class="horizontal_slider hull_control_slider" type="range" value="0" min="-5" max="10" oninput="myApp.onThrottleChange(value, min, max)"></div>
</div>
</div>
</div>
<div>
<div id="pip_map_btn" class="pip_btn" onclick="myApp.toggleMap()"><i class="material-icons">map</i></div>
<div id="pip_map" class="pip_view_map"></div>
</div>
<div>
<div id="pip_lower_left_btn" class="pip_btn" onclick="myApp.togglePIPLowerLeft()"><i class="material-icons">chevron_right</i></div>
<div id="pip_lower_left" class="pip_view_bottom pip_view_left"></div>
</div>
<div>
<div id="pip_lower_right_btn" class="pip_btn" onclick="myApp.togglePIPLowerRight()"><i class="material-icons">chevron_left</i></div>
<div id="pip_lower_right" class="pip_view_bottom pip_view_right"></div>
</div>
</div>
<div id="fatal_error">
<div id="fatal_error_frame">
<div id="fatal_error_title" class="fatal_error fatal_error_msg"></div>
<div id="fatal_error_msg" class="fatal_error fatal_error_msg"></div>
<div id="fatal_error_msg2" class="fatal_error fatal_error_msg"></div>
</div>
</div>
<div id="splash" onclick="myApp.closeSplash(event)">
<table id='splash_title_table'>
<tr><td id="splash_byline">It's Albert's sailing simulator</td></tr>
<tr><td id="splash_title">By The Lee!</td></tr>
</table>
<div id="splash_icons_heading">What the icons mean:</div>
<table id="splash_icon_table">
<tr>
<td class="wind_icon dropdown_btn"> <!-- Wind Icon... -->
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -60 100 120">
<path
d="M 0,0 70,0 c15,0 15,-30 0,-30 s-15,0 -15,15
M 0,-20 25,-20 c15,0 15,-30 0,-30 s-15,0 -15,15
M 0, 20 50, 20 c15,0 15,30 0,30 s-15,0 -15,-15"
fill="none" stroke="black" stroke-width="10px"/>
</svg>
<!-- End Wind Icon... -->
</td>
<td>Wind menu: change strength, direction</td>
</tr>
<tr>
<td><i class="material-icons">settings_overscan</i></td>
<td>View menu: standard views, in boat, at boat</td>
</tr>
<tr>
<td><i class="material-icons">fullscreen</i></td>
<td>Toggle full screen</td>
</tr>
<tr>
<td><i class="material-icons">open_with</i></td>
<td>Toggle rotate/pan view with drag</td>
</tr>
<tr>
<td><i class="material-icons">pause</i></td>
<td>Pause/run</td>
</tr>
<tr>
<td><i class="material-icons">assistant_photo</i></td>
<td>Racing</td>
</tr>
<tr>
<td><i class="material-icons">map</i></td>
<td>Display map (not yet working)</td>
</tr>
<tr>
<td><i class="material-icons">chevron_right</i></td>
<td>Display Picture-in-Picture view, lower left</td>
</tr>
<tr>
<td><i class="material-icons">chevron_left</i></td>
<td>Display Picture-in-Picture view, lower right</td>
</tr>
</table>
<div id="splash_loading">Just a second while I load...</div>
<table id='credits'>
<tr><td id='credits_title'>Credits...</td></tr>
<tr><td>
<table id='credits_table'>
<tr><td>Open source, on GitHub at <a href="https://github.com/leeboardtools/bythelee" target='_blank'>https://github.com/leeboardtools/bythelee</a></td></tr>
<tr><td>Uses <a href='https://threejs.org/' target='_blank'>three.js</a> for 3D rendering and geometry</td></tr>
<tr><td>Uses <a href="https://github.com/schteppe/cannon.js/blob/master/README.markdown" target='_blank'>cannon.js</a> for the physics engine</td></tr>
<tr><td>Uses <a href='http://requirejs.org/' target="_blank">RequireJS</a> for managing Javascript dependencies</td></tr>
<tr><td>Uses <a href="https://github.com/tweenjs/tween.js/" target="_blank">tween.js</a> for tweening positions automatically</td></tr>
<tr><td>Uses <a href='https://nodejs.org/en/' target='_blank'>Node.js</a>, <a href='https://expressjs.com/' target='_blank'>Express</a>,
and <a href='https://socket.io/' target='_blank'>Socket.IO</a> for serving up network stuff</td></tr>
</table>
</td></tr>
</table>
</div>
<div id="race_results" onclick="myApp.endRace()">
<table>
<tr class="good_results">
<td>Racing Time:</td><td id="race_racing_time">00:00:00.0</td>
</tr>
<tr class="penalty">
<td>Penalty Time:</td><td id="race_penalty_time">00:00:00.0</td>
</tr>
<tr class="final_results">
<td>Final Time:</td><td id="race_total_time">00:00:00.0</td>
</tr>
</table>
</div>
<script>
// For now, hide these, they're made visible when appropriate.
document.getElementById('throttle_slider').hidden = true;
document.getElementById('jib_slider').hidden = true;
</script>
<script src="js/require-js-config.js"></script>
<script src="js/lib/require.js" data-main="main-ThreeJS"></script>
</body>
</html>