-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathserved.html
More file actions
3545 lines (3076 loc) · 157 KB
/
served.html
File metadata and controls
3545 lines (3076 loc) · 157 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
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>VE1ATM HF Propagation</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<script src="https://cdn.plot.ly/plotly-2.27.0.min.js"></script>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #0a0e1a;
color: #e0e0e0;
line-height: 1.4;
font-size: 13px;
}
.header {
background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
padding: 0.75rem 1rem;
border-bottom: 3px solid #4a90e2;
}
.header h1 {
font-size: 1.3rem;
color: #fff;
margin-bottom: 0.3rem;
}
.station-info {
display: flex;
gap: 1.5rem;
font-size: 0.75rem;
color: #b0c4de;
}
.solar-bar {
background: #162236;
padding: 0.5rem 1rem;
display: flex;
gap: 2rem;
justify-content: center;
border-bottom: 1px solid #2a3f5f;
}
.solar-metric {
text-align: center;
}
.solar-metric .label {
font-size: 0.65rem;
color: #8a9bb5;
text-transform: uppercase;
}
.solar-metric .value {
font-size: 1.2rem;
font-weight: bold;
color: #4a90e2;
}
.solar-metric .sublabel {
font-size: 0.6rem;
color: #6a7f9f;
}
.container {
max-width: 1600px;
margin: 0 auto;
padding: 1rem;
}
/* Tab Navigation */
.tab-nav {
display: flex;
gap: 0.5rem;
margin-bottom: 1rem;
border-bottom: 2px solid #2a3f5f;
}
.tab-button {
background: #162236;
border: none;
color: #8a9bb5;
padding: 0.6rem 1.2rem;
cursor: pointer;
font-size: 0.9rem;
font-weight: 600;
border-radius: 6px 6px 0 0;
transition: all 0.3s ease;
border: 2px solid transparent;
border-bottom: none;
}
.tab-button:hover {
background: #1a2738;
color: #4a90e2;
}
.tab-button.active {
background: #0a0e1a;
color: #4a90e2;
border-color: #2a3f5f;
border-bottom-color: #0a0e1a;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.alert-bar {
background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
padding: 0.5rem 1rem;
margin-bottom: 1rem;
border-radius: 6px;
border: 2px solid #fca5a5;
display: none;
}
.alert-bar.active {
display: block;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.85; }
}
.grid-2col {
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 1rem;
}
.card {
background: #162236;
border-radius: 6px;
padding: 1rem;
border: 1px solid #2a3f5f;
}
.card h2 {
color: #4a90e2;
margin-bottom: 0.75rem;
font-size: 1rem;
border-bottom: 2px solid #2a3f5f;
padding-bottom: 0.4rem;
}
#map {
height: 450px;
border-radius: 6px;
border: 2px solid #2a3f5f;
}
.band-grid {
display: grid;
grid-template-columns: repeat(9, 1fr);
gap: 0.6rem;
}
.band-card {
background: #0d1520;
padding: 0.6rem;
border-radius: 6px;
text-align: center;
border: 2px solid #2a3f5f;
}
.band-card:hover {
border-color: #4a90e2;
}
.band-name {
font-size: 1.2rem;
font-weight: bold;
color: #4a90e2;
margin-bottom: 0.3rem;
}
.band-freq {
font-size: 0.7rem;
color: #6a7f9f;
margin-bottom: 0.5rem;
}
.band-detail {
font-size: 0.7rem;
color: #8a9bb5;
margin: 0.2rem 0;
}
.region-list {
font-size: 0.75rem;
text-align: left;
margin-top: 0.5rem;
max-height: 150px;
overflow-y: auto;
}
.region-item {
padding: 0.25rem 0;
display: flex;
justify-content: space-between;
border-bottom: 1px solid #1a2738;
}
.status-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
margin-right: 0.4rem;
}
.status-good { background: #4ade80; }
.status-fair { background: #fbbf24; }
.status-poor { background: #f87171; }
.quality-good { color: #4ade80; }
.quality-fair { color: #fbbf24; }
.quality-poor { color: #f87171; }
.timeline {
max-height: 500px;
overflow-y: auto;
}
.timeline-day {
margin-bottom: 1rem;
}
.day-header {
background: #0d1520;
padding: 0.5rem;
font-weight: bold;
color: #4a90e2;
margin-bottom: 0.5rem;
border-radius: 4px;
}
.timeline-hour {
display: grid;
grid-template-columns: 60px 1fr;
gap: 0.75rem;
padding: 0.4rem;
border-bottom: 1px solid #1a2738;
font-size: 0.8rem;
}
.timeline-hour:hover {
background: #0d1520;
}
.timeline-hour.current {
background: rgba(74, 144, 226, 0.2);
border-left: 3px solid #4a90e2;
font-weight: bold;
}
.hour-label {
color: #4a90e2;
font-weight: 600;
}
.hour-bands {
display: flex;
gap: 0.4rem;
flex-wrap: wrap;
}
.hour-band {
padding: 0.2rem 0.5rem;
border-radius: 3px;
font-size: 0.75rem;
}
.hour-band.open {
background: #065f46;
color: #4ade80;
}
.hour-band.marginal {
background: #713f12;
color: #fbbf24;
}
.dxcc-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0.75rem;
margin-bottom: 1rem;
}
.dxcc-stat {
background: #0d1520;
padding: 0.75rem;
border-radius: 6px;
text-align: center;
}
.dxcc-stat .number {
font-size: 2rem;
font-weight: bold;
color: #4a90e2;
}
.dxcc-stat .label {
font-size: 0.75rem;
color: #8a9bb5;
margin-top: 0.3rem;
}
.most-wanted {
font-size: 0.8rem;
}
.wanted-item {
padding: 0.5rem;
border-bottom: 1px solid #1a2738;
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.5rem;
}
.wanted-item.hot {
background: rgba(74, 222, 128, 0.15);
border-left: 3px solid #4ade80;
animation: pulse 3s infinite;
}
.legend {
display: flex;
gap: 1rem;
justify-content: center;
margin-top: 0.75rem;
font-size: 0.75rem;
color: #8a9bb5;
}
.legend-item {
display: flex;
align-items: center;
gap: 0.3rem;
}
.update-info {
text-align: center;
color: #6a7f9f;
font-size: 0.75rem;
margin-top: 1rem;
padding: 0.6rem;
background: #162236;
border-radius: 6px;
}
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: #0d1520;
}
::-webkit-scrollbar-thumb {
background: #2a3f5f;
border-radius: 3px;
}
/* Refresh Button */
.refresh-btn {
position: fixed;
top: 1rem;
right: 1rem;
background: linear-gradient(135deg, #2d5a4f 0%, #3a8c6d 100%);
color: white;
border: 2px solid #4ade80;
padding: 0.6rem 1.2rem;
border-radius: 6px;
cursor: pointer;
font-weight: bold;
font-size: 0.9rem;
transition: all 0.3s ease;
z-index: 1000;
box-shadow: 0 2px 8px rgba(74, 222, 128, 0.3);
}
.refresh-btn:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(74, 222, 128, 0.5);
}
.refresh-btn:disabled {
background: #2a3f5f;
border-color: #4a5f7f;
cursor: not-allowed;
opacity: 0.6;
}
/* Notification Modal */
.notification-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #162236;
border: 2px solid #4a90e2;
border-radius: 8px;
padding: 2rem;
min-width: 400px;
max-width: 90vw;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
z-index: 2000;
display: none;
}
.notification-modal.show {
display: block;
}
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.7);
z-index: 1999;
display: none;
}
.modal-overlay.show {
display: block;
}
.modal-header {
font-size: 1.2rem;
font-weight: bold;
color: #4a90e2;
margin-bottom: 1rem;
text-align: center;
}
.modal-body {
text-align: center;
color: #e0e0e0;
}
.progress-bar {
width: 100%;
height: 8px;
background: #0a0e1a;
border-radius: 4px;
overflow: hidden;
margin: 1rem 0;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #4a90e2, #4ade80);
width: 0%;
transition: width 0.3s ease;
}
.modal-message {
margin: 1rem 0;
font-size: 0.9rem;
color: #8a9bb5;
}
.modal-close-btn {
background: #2a3f5f;
color: white;
border: none;
padding: 0.5rem 1.5rem;
border-radius: 4px;
cursor: pointer;
margin-top: 1rem;
}
.modal-close-btn:hover {
background: #3a5f8f;
}
.spinner {
display: inline-block;
width: 20px;
height: 20px;
border: 3px solid rgba(74, 144, 226, 0.3);
border-top-color: #4a90e2;
border-radius: 50%;
animation: spin 1s linear infinite;
margin-right: 0.5rem;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@media (max-width: 1400px) {
.grid-2col {
grid-template-columns: 1fr;
}
.band-grid {
grid-template-columns: repeat(4, 1fr);
}
.notification-modal {
min-width: 300px;
padding: 1.5rem;
}
}
/* Help System Styles */
.help-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border-radius: 50%;
background: #2a3f5f;
color: #4a90e2;
font-size: 12px;
font-weight: bold;
cursor: pointer;
margin-left: 0.5rem;
transition: all 0.3s ease;
vertical-align: middle;
border: 1px solid #4a90e2;
}
.help-icon:hover {
background: #4a90e2;
color: #fff;
transform: scale(1.1);
box-shadow: 0 2px 8px rgba(74, 144, 226, 0.5);
}
.help-modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: #162236;
border: 2px solid #4a90e2;
border-radius: 8px;
padding: 2rem;
min-width: 500px;
max-width: 800px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
z-index: 2000;
display: none;
}
.help-modal.show {
display: block;
}
.help-modal h3 {
color: #4a90e2;
margin-top: 1.5rem;
margin-bottom: 0.5rem;
font-size: 1.1rem;
border-bottom: 1px solid #2a3f5f;
padding-bottom: 0.5rem;
}
.help-modal h3:first-of-type {
margin-top: 0;
}
.help-modal p {
color: #e0e0e0;
line-height: 1.6;
margin-bottom: 1rem;
}
.help-modal ul {
color: #8a9bb5;
margin-left: 1.5rem;
margin-bottom: 1rem;
}
.help-modal li {
margin-bottom: 0.5rem;
line-height: 1.5;
}
.help-modal code {
background: #0a0e1a;
padding: 0.2rem 0.5rem;
border-radius: 3px;
color: #4ade80;
font-family: monospace;
}
.help-modal .warning {
background: rgba(251, 191, 36, 0.1);
border-left: 3px solid #fbbf24;
padding: 0.75rem;
margin: 1rem 0;
border-radius: 4px;
color: #fbbf24;
}
.help-modal .info {
background: rgba(74, 144, 226, 0.1);
border-left: 3px solid #4a90e2;
padding: 0.75rem;
margin: 1rem 0;
border-radius: 4px;
color: #8a9bb5;
}
.help-close-btn {
position: absolute;
top: 1rem;
right: 1rem;
background: #2a3f5f;
color: white;
border: none;
padding: 0.5rem 1rem;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
}
.help-close-btn:hover {
background: #3a5f8f;
}
/* Heatmap Legend */
.heatmap-legend {
position: absolute;
bottom: 40px;
right: 20px;
background: rgba(22, 34, 54, 0.95);
padding: 12px 16px;
border-radius: 8px;
border: 2px solid #2a3f5f;
z-index: 1000;
font-size: 11px;
box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.heatmap-legend h4 {
margin-bottom: 8px;
color: #4a90e2;
font-size: 13px;
border-bottom: 1px solid #2a3f5f;
padding-bottom: 5px;
}
.legend-item {
display: flex;
align-items: center;
margin: 6px 0;
}
.legend-color {
width: 30px;
height: 18px;
margin-right: 10px;
border-radius: 3px;
border: 1px solid #2a3f5f;
}
.legend-label {
flex: 1;
display: flex;
justify-content: space-between;
font-size: 11px;
}
</style>
</head>
<body>
<!-- Refresh Button -->
<button class="refresh-btn" id="refreshBtn" onclick="triggerRefresh()">
⚡ Refresh Predictions
</button>
<!-- Prediction Settings Button -->
<button class="refresh-btn" id="settingsBtn" onclick="showSettings()" style="top: 1rem; right: 13rem; background: linear-gradient(135deg, #2d5a8c 0%, #4a90e2 100%); border-color: #7cb8f7;">
⚙️ Prediction Settings
</button>
<!-- Modal Overlay -->
<div class="modal-overlay" id="modalOverlay"></div>
<!-- Notification Modal -->
<div class="notification-modal" id="notificationModal">
<div class="modal-header" id="modalHeader">Generating Predictions</div>
<div class="modal-body">
<div class="progress-bar">
<div class="progress-fill" id="progressFill"></div>
</div>
<div class="modal-message" id="modalMessage">
<span class="spinner"></span>
<span id="statusText">Initializing...</span>
</div>
<button class="modal-close-btn" id="closeBtn" style="display: none;" onclick="closeModal()">
Close
</button>
</div>
</div>
<!-- Settings Modal -->
<div class="notification-modal" id="settingsModal" style="min-width: 600px; max-width: 800px;">
<div class="modal-header">⚙️ Prediction Settings</div>
<div class="modal-body" style="text-align: left;">
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;">
<!-- Left Column -->
<div>
<div style="margin-bottom: 1.5rem;">
<label style="display: block; font-weight: bold; margin-bottom: 0.5rem; color: #4a90e2;">Solar Activity (SSN)</label>
<div style="display: flex; gap: 0.5rem; align-items: center;">
<input type="radio" id="ssnAuto" name="ssnMode" value="auto" checked onchange="toggleSSNMode()">
<label for="ssnAuto" style="margin-right: 1rem;">Auto (Current)</label>
<input type="radio" id="ssnManual" name="ssnMode" value="manual" onchange="toggleSSNMode()">
<label for="ssnManual">Manual</label>
</div>
<input type="range" id="ssnSlider" min="10" max="200" value="140" disabled style="width: 100%; margin-top: 0.5rem;">
<div style="text-align: center; margin-top: 0.3rem; color: #8a9bb5;" id="ssnValue">SSN: 140</div>
</div>
<div style="margin-bottom: 1.5rem;">
<label style="display: block; font-weight: bold; margin-bottom: 0.5rem; color: #4a90e2;">Noise Environment</label>
<select id="noiseLevel" style="width: 100%; padding: 0.5rem; background: #1a2332; border: 1px solid #2a3f5f; color: #e0e0e0; border-radius: 4px;">
<option value="remote">Remote (Lowest Noise)</option>
<option value="quiet" selected>Quiet Rural</option>
<option value="rural">Rural</option>
<option value="residential">Residential</option>
<option value="urban">Urban</option>
<option value="noisy">Very Noisy</option>
</select>
</div>
<div style="margin-bottom: 1.5rem;">
<label style="display: block; font-weight: bold; margin-bottom: 0.5rem; color: #4a90e2;">Propagation Method</label>
<select id="propMethod" style="width: 100%; padding: 0.5rem; background: #1a2332; border: 1px solid #2a3f5f; color: #e0e0e0; border-radius: 4px;">
<option value="auto" selected>Auto (Recommended)</option>
<option value="ray-hop">Ray-Hop Only</option>
<option value="ducted">Ducted Mode</option>
</select>
</div>
<div style="margin-bottom: 1.5rem;">
<label style="display: block; font-weight: bold; margin-bottom: 0.5rem; color: #4a90e2;">Path Mode</label>
<div style="display: flex; gap: 0.5rem; align-items: center;">
<input type="radio" id="pathShort" name="pathMode" value="short" checked>
<label for="pathShort" style="margin-right: 1rem;">Short Path (SP)</label>
<input type="radio" id="pathLong" name="pathMode" value="long">
<label for="pathLong">Long Path (LP)</label>
</div>
<div style="font-size: 0.7rem; color: #6a7f9f; margin-top: 0.3rem;">Short path is the direct route; long path goes the opposite direction around Earth</div>
</div>
</div>
<!-- Right Column -->
<div>
<div style="margin-bottom: 1.5rem;">
<label style="display: block; font-weight: bold; margin-bottom: 0.5rem; color: #4a90e2;">Minimum Take-Off Angle</label>
<input type="range" id="minToaSlider" min="0.1" max="10" step="0.1" value="3.0" oninput="document.getElementById('minToaValue').textContent = this.value + '°'" style="width: 100%;">
<div style="text-align: center; margin-top: 0.3rem; color: #8a9bb5;" id="minToaValue">3.0°</div>
<div style="font-size: 0.7rem; color: #6a7f9f; margin-top: 0.3rem;">Lower angles favor DX, higher angles favor NVIS</div>
</div>
<div style="margin-bottom: 1.5rem;">
<label style="display: block; font-weight: bold; margin-bottom: 0.5rem; color: #4a90e2;">Communication Mode (SNR Threshold)</label>
<div style="display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem;">
<label style="display: flex; align-items: center; padding: 0.6rem; background: #1a2332; border: 1px solid #2a3f5f; border-radius: 4px; cursor: pointer; transition: all 0.2s;" onmouseover="this.style.background='#1f2937'" onmouseout="if(!this.querySelector('input').checked) this.style.background='#1a2332'">
<input type="radio" name="snrMode" value="3" id="snrModeFT8" onchange="updateSnrThreshold()" style="margin-right: 0.7rem; cursor: pointer;">
<span style="color: #e0e0e0; font-weight: 500;">FT8 / Digital Modes</span>
<span style="margin-left: auto; color: #fbbf24; font-weight: bold;">3 dB</span>
</label>
<label style="display: flex; align-items: center; padding: 0.6rem; background: #1a2332; border: 1px solid #2a3f5f; border-radius: 4px; cursor: pointer; transition: all 0.2s;" onmouseover="this.style.background='#1f2937'" onmouseout="if(!this.querySelector('input').checked) this.style.background='#1a2332'">
<input type="radio" name="snrMode" value="6" id="snrModeCW" onchange="updateSnrThreshold()" style="margin-right: 0.7rem; cursor: pointer;">
<span style="color: #e0e0e0; font-weight: 500;">CW / Morse Code</span>
<span style="margin-left: auto; color: #fbbf24; font-weight: bold;">6 dB</span>
</label>
<label style="display: flex; align-items: center; padding: 0.6rem; background: #1a2332; border: 1px solid #2a3f5f; border-radius: 4px; cursor: pointer; transition: all 0.2s;" onmouseover="this.style.background='#1f2937'" onmouseout="if(!this.querySelector('input').checked) this.style.background='#1a2332'">
<input type="radio" name="snrMode" value="10" id="snrModeSSB" checked onchange="updateSnrThreshold()" style="margin-right: 0.7rem; cursor: pointer;">
<span style="color: #e0e0e0; font-weight: 500;">SSB / Voice</span>
<span style="margin-left: auto; color: #fbbf24; font-weight: bold;">10 dB</span>
</label>
</div>
<div style="text-align: center; margin-top: 0.5rem; color: #8a9bb5; font-size: 0.8rem;" id="reqSnrValue">Current: 10 dB</div>
<div style="font-size: 0.7rem; color: #6a7f9f; margin-top: 0.3rem; text-align: center;">Select mode for typical SNR requirements</div>
</div>
<div style="margin-bottom: 1.5rem;">
<label style="display: block; font-weight: bold; margin-bottom: 0.5rem; color: #4a90e2;">Transmit Power (W)</label>
<input type="number" id="txPower" min="1" max="1500" value="100" style="width: 100%; padding: 0.5rem; background: #1a2332; border: 1px solid #2a3f5f; color: #e0e0e0; border-radius: 4px;">
</div>
</div>
</div>
<!-- Action Buttons -->
<div style="display: flex; gap: 1rem; margin-top: 1.5rem; justify-content: center;">
<button onclick="resetSettings()" style="background: #6a7f9f; color: white; border: none; padding: 0.7rem 1.5rem; border-radius: 4px; font-weight: bold; cursor: pointer;">
🔄 Reset to Defaults
</button>
<button onclick="saveSettings()" style="background: #4a90e2; color: white; border: none; padding: 0.7rem 1.5rem; border-radius: 4px; font-weight: bold; cursor: pointer;">
💾 Save & Apply
</button>
<button onclick="closeSettings()" style="background: #2a3f5f; color: white; border: none; padding: 0.7rem 1.5rem; border-radius: 4px; font-weight: bold; cursor: pointer;">
Cancel
</button>
</div>
<div style="margin-top: 1rem; padding: 0.7rem; background: #1a2738; border-radius: 6px; font-size: 0.75rem; color: #8a9bb5; text-align: center;">
<strong>Note:</strong> Settings are saved to localStorage. Click "Refresh Predictions" to generate new forecasts with these settings.
</div>
</div>
</div>
<!-- Help Modals -->
<div class="help-modal" id="helpModal">
<button class="help-close-btn" onclick="closeHelp()">✕ Close</button>
<div id="helpContent"></div>
</div>
<div class="header">
<h1>📡 VE1ATM HF Propagation Monitor</h1>
<div class="station-info">
<span><strong>QTH:</strong> FN74ui (Lunenburg, NS)</span>
<span><strong>Antenna:</strong> DX Commander 7m Vertical</span>
<span><strong>Bands:</strong> 40m-10m</span>
</div>
</div>
<div class="solar-bar" id="solarBar"></div>
<div class="container">
<div class="alert-bar" id="dxccAlerts">
<strong>🎯 NEEDED DXCC - WORKABLE NOW:</strong>
<div id="alertList" style="margin-top: 0.3rem;"></div>
</div>
<div class="tab-nav">
<button class="tab-button active" onclick="showTab('overview')">📊 Overview</button>
<button class="tab-button" onclick="showTab('bands')">📻 Band Details</button>
<button class="tab-button" onclick="showTab('propcharts')">📈 Propagation Charts</button>
<button class="tab-button" onclick="showTab('planner')">🗺️ Mini Planner</button>
<button class="tab-button" onclick="showTab('timeline')">⏰ 72-Hour Forecast</button>
<button class="tab-button" onclick="showTab('dxcc')">🎯 DXCC Tracking</button>
<button class="tab-button" onclick="showTab('config')">⚙️ Station Config</button>
</div>
<!-- OVERVIEW TAB -->
<div id="tab-overview" class="tab-content active">
<div class="grid-2col">
<div class="card">
<h2>🌍 Current Band Openings
<span class="help-icon" onclick="showHelp('bandopenings')" title="Click for explanation">?</span>
<span id="grayLineTime" style="float: right; font-size: 0.75rem; font-weight: normal;"></span>
</h2>
<!-- Map Controls -->
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding: 0.5rem; background: #1a2332; border-radius: 4px;">
<!-- Path Mode Toggle -->
<div style="display: flex; align-items: center; gap: 1rem;">
<label style="font-weight: bold; color: #9aa5b1;">Path Mode:</label>
<label style="cursor: pointer;">
<input type="radio" name="pathMode" value="sp" checked onchange="updatePathMode()"> Short Path
</label>
<label style="cursor: pointer;">
<input type="radio" name="pathMode" value="lp" onchange="updatePathMode()"> Long Path
</label>
</div>
<!-- Gray Line Time Control -->
<div style="display: flex; align-items: center; gap: 0.5rem;">
<label for="grayLineTimeSlider" style="font-weight: bold; color: #9aa5b1;">
Time (UTC):
<span class="help-icon" onclick="showHelp('grayline')" title="Click for grayline explanation">?</span>
</label>
<input type="range" id="grayLineTimeSlider" min="0" max="23" step="1"
style="width: 200px;" onchange="updateGrayLineTime(this.value)" oninput="updateGrayLineTimeDisplay(this.value)">
<span id="grayLineTimeValue" style="font-weight: bold; min-width: 50px;">--:--</span>
<button onclick="resetGrayLineTime()"
style="background: #2d5a8c; color: white; border: none; padding: 0.3rem 0.7rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem;">
Now
</button>
</div>
<!-- Heatmap Opacity Control -->
<div style="display: flex; align-items: center; gap: 0.5rem;">
<label for="heatmapOpacitySlider" style="font-weight: bold; color: #9aa5b1;">Heatmap:</label>
<input type="range" id="heatmapOpacitySlider" min="0" max="100" step="10" value="60"
style="width: 150px;" onchange="updateHeatmapOpacity(this.value)" oninput="updateHeatmapOpacityDisplay(this.value)">
<span id="heatmapOpacityValue" style="font-weight: bold; min-width: 40px;">60%</span>
</div>
</div>
<div style="position: relative;">
<div id="map"></div>
<!-- Heatmap Legend -->
<div class="heatmap-legend">
<h4>Propagation Likelihood</h4>
<div class="legend-item">
<div class="legend-color" style="background-color: rgba(74, 222, 128, 0.7);"></div>
<div class="legend-label">
<span>Good</span>
<span>70-100%</span>
</div>
</div>
<div class="legend-item">
<div class="legend-color" style="background-color: rgba(251, 191, 36, 0.7);"></div>
<div class="legend-label">
<span>Fair</span>
<span>45-70%</span>
</div>
</div>
<div class="legend-item">
<div class="legend-color" style="background-color: rgba(248, 113, 113, 0.7);"></div>
<div class="legend-label">
<span>Poor</span>
<span>30-45%</span>
</div>
</div>
</div>
</div>
<div style="margin-top: 1rem; padding: 0.5rem; background: #1a2738; border-radius: 6px;">
<div style="display: flex; align-items: center; gap: 1rem;">
<label style="color: #4a90e2; font-weight: bold; white-space: nowrap;">Greyline Time:</label>
<input type="range" id="grayLineSlider" min="0" max="23.99" step="0.25" value="0"
oninput="updateGrayLineSlider(this.value)"
style="flex: 1;">
<button onclick="resetGrayLineSlider()"
style="background: #2d5a8c; color: white; border: none; padding: 0.4rem 0.8rem; border-radius: 4px; cursor: pointer; white-space: nowrap;">
🔄 Current Time
</button>
</div>
<div style="text-align: center; font-size: 0.75rem; color: #8a9bb5; margin-top: 0.3rem;">
Drag slider to preview greyline at different times
</div>
</div>
<div class="legend">
<div class="legend-item"><span class="status-dot status-good"></span> Good (>60%)</div>
<div class="legend-item"><span class="status-dot status-fair"></span> Fair (30-60%)</div>
<div class="legend-item"><span class="status-dot status-poor"></span> Poor (<30%)</div>
<div class="legend-item">🌅 Gray Line Zone</div>
</div>
</div>
<div class="card">
<h2>📋 Quick Summary</h2>
<div id="quickSummary"></div>
</div>
</div>
<div class="grid-2col" style="margin-top: 1rem;">
<div class="card">
<h2>⏰ 24-Hour Propagation Wheel
<span class="help-icon" onclick="showHelp('propwheel')" title="Click for explanation">?</span>
</h2>
<div style="margin-bottom: 0.5rem; font-size: 0.8rem; color: #8a9bb5;">
<label>Select Region: </label>
<select id="wheelRegionSelect" onchange="renderPropWheel()" style="background: #162236; color: #e0e0e0; border: 1px solid #2a3f5f; padding: 0.3rem; border-radius: 4px; font-size: 0.8rem;">
<!-- Populated dynamically -->
</select>
</div>
<div id="propWheel" style="height: 500px;"></div>
<div style="text-align: center; font-size: 0.75rem; color: #8a9bb5; margin-top: 0.5rem;">
Hover over bands to see reliability percentage. Outer ring = higher bands.
</div>
</div>
<div class="card">
<h2>🎯 Best Bands Right Now</h2>
<div id="bestBands"></div>
</div>
</div>
</div>
<!-- BANDS TAB -->
<div id="tab-bands" class="tab-content">
<div class="card">
<h2>📊 Detailed Band Conditions (with S-Meter Estimates)</h2>
<div class="band-grid" id="bandGrid"></div>
</div>
</div>