-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1437 lines (1350 loc) · 86.4 KB
/
Copy pathindex.html
File metadata and controls
1437 lines (1350 loc) · 86.4 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>Polarplot – Ham Radio Contact Mapper</title>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-854FFWBKK3"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-854FFWBKK3');
</script>
<link rel="icon" type="image/png" href="./logo.png">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=DM+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- CSS Dependencies -->
<link rel="stylesheet" href="/style.css">
<!-- Splash Screen Styles -->
<style>
.splash {
position: fixed; inset: 0; z-index: 9999;
background: color-mix(in srgb, var(--bg), transparent 20%);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
display: flex; align-items: center; justify-content: center;
font-family: 'DM Sans', sans-serif;
}
.splash-card {
background: color-mix(in srgb, var(--surf), transparent 8%);
border: 1px solid color-mix(in srgb, var(--acc), transparent 75%);
border-radius: 16px;
box-shadow: 0 0 60px var(--acc-glow), 0 0 0 1px color-mix(in srgb, var(--acc), transparent 94%);
width: min(680px, 96vw);
max-height: 90vh;
display: flex; flex-direction: column;
overflow: hidden;
}
/* Keep splash readable in light theme */
[data-theme=light] .splash { background: rgba(180,200,220,0.5); }
[data-theme=light] .splash-card { background: #1a2535; border-color: rgba(0,119,182,0.4); }
[data-theme=light] .splash-tab { color: rgba(255,255,255,0.5); }
[data-theme=light] .splash-tab.active { color: #38bdf8; border-bottom-color: #38bdf8; }
[data-theme=light] .splash-body h3 { color: #e2e8f0; }
[data-theme=light] .splash-body p { color: rgba(255,255,255,0.6); }
[data-theme=light] .splash-card .splash-sub { color: rgba(255,255,255,0.5); }
[data-theme=light] .splash-footer { border-top-color: rgba(255,255,255,0.08); }
[data-theme=light] .splash-footer-note { color: rgba(255,255,255,0.3); }
[data-theme=light] .splash-card .htitle { color: #ffffff; }
[data-theme=light] .splash-card .splash-software-title { color: #ffffff !important; }
.splash-hero {
display: flex; align-items: center; gap: 16px;
padding: 28px 28px 0;
}
.splash-logo {
width: 52px; height: 52px; object-fit: contain;
filter: drop-shadow(0 0 8px var(--acc-glow));
}
.splash-logo-fallback {
font-size: 2.4rem; line-height: 1;
filter: drop-shadow(0 0 8px rgba(56,189,248,0.5));
}
.splash-title {
font-family: 'JetBrains Mono', monospace;
font-size: 1.6rem; font-weight: 700; letter-spacing: 2px;
color: #f0f4ff;
}
.splash-title span { color: #38bdf8; }
.splash-sub {
font-size: 0.75rem; color: rgba(255,255,255,0.4);
letter-spacing: 1px; text-transform: uppercase; margin-top: 2px;
}
/* Dismissable warning banner */
.splash-warning {
margin: 16px 28px 0;
background: rgba(56,189,248,0.06);
border: 1px solid rgba(56,189,248,0.3);
border-radius: 8px;
padding: 10px 14px;
display: flex; align-items: center; gap: 10px;
font-size: 0.78rem; color: rgba(255,255,255,0.65);
line-height: 1.5;
}
.splash-warning-icon { color: #38bdf8; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.splash-warning-close {
margin-left: auto; flex-shrink: 0;
background: none; border: none; cursor: pointer;
color: rgba(255,255,255,0.35); font-size: 1rem; line-height: 1;
padding: 0; transition: color 0.2s;
}
.splash-warning-close:hover { color: rgba(255,255,255,0.8); }
.splash-tabs {
display: flex; gap: 4px;
padding: 16px 28px 0;
border-bottom: 1px solid rgba(56,189,248,0.12);
}
.splash-tab {
background: none; border: none; cursor: pointer;
font-family: 'JetBrains Mono', monospace;
font-size: 0.7rem; font-weight: 600;
letter-spacing: 1px; text-transform: uppercase;
color: rgba(255,255,255,0.35);
padding: 8px 14px; border-radius: 6px 6px 0 0;
border-bottom: 2px solid transparent;
transition: color 0.2s, border-color 0.2s;
}
.splash-tab:hover { color: rgba(255,255,255,0.7); }
.splash-tab.active { color: #38bdf8; border-bottom-color: #38bdf8; }
.splash-body {
flex: 1; overflow-y: auto; padding: 24px 28px;
scrollbar-width: thin; scrollbar-color: rgba(56,189,248,0.2) transparent;
}
.splash-pane { display: none; }
.splash-pane.active { display: block; }
.splash-body h3 {
font-family: 'JetBrains Mono', monospace;
font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px;
color: #38bdf8; margin: 0 0 10px;
}
.splash-body p {
font-size: 0.85rem; color: rgba(255,255,255,0.6);
line-height: 1.7; margin: 0 0 16px;
}
.splash-feature-grid {
display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.splash-feature {
background: rgba(56,189,248,0.04);
border: 1px solid rgba(56,189,248,0.12);
border-radius: 8px; padding: 12px 14px;
}
.splash-feature strong {
display: block; font-size: 0.8rem; color: #f0f4ff; margin-bottom: 4px;
}
.splash-feature span { font-size: 0.72rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
.splash-ctrl-row {
display: flex; align-items: center; gap: 14px;
padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
font-size: 0.8rem;
}
.splash-ctrl-row:last-child { border-bottom: none; }
.splash-key {
font-family: 'JetBrains Mono', monospace;
font-size: 0.7rem; color: #38bdf8;
background: rgba(56,189,248,0.08);
border: 1px solid rgba(56,189,248,0.25);
border-radius: 4px; padding: 3px 8px;
white-space: nowrap; flex-shrink: 0; min-width: 110px; text-align: center;
}
.splash-ctrl-row span { color: rgba(255,255,255,0.55); }
.splash-links { display: flex; flex-direction: column; gap: 10px; }
.splash-link-row {
display: flex; align-items: center; gap: 12px;
background: rgba(56,189,248,0.04);
border: 1px solid rgba(56,189,248,0.1);
border-radius: 8px; padding: 12px 16px;
text-decoration: none; color: inherit;
transition: border-color 0.2s, background 0.2s;
}
.splash-link-row:hover {
border-color: rgba(56,189,248,0.4);
background: rgba(56,189,248,0.08);
}
.splash-link-icon { font-size: 1.2rem; width: 28px; text-align: center; flex-shrink: 0; }
.splash-link-label { font-size: 0.8rem; color: #f0f4ff; }
.splash-link-desc { font-size: 0.7rem; color: rgba(255,255,255,0.4); margin-top: 2px; }
.splash-changelog-entry { margin-bottom: 18px; }
.splash-changelog-ver {
font-family: 'JetBrains Mono', monospace;
font-size: 0.7rem; color: #38bdf8; letter-spacing: 1px;
background: rgba(56,189,248,0.08);
border: 1px solid rgba(56,189,248,0.2);
border-radius: 4px; padding: 2px 8px;
display: inline-block; margin-bottom: 8px;
}
.splash-changelog-entry ul {
margin: 0; padding-left: 18px;
font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.8;
}
.splash-footer {
padding: 16px 28px 24px;
display: flex; align-items: center; justify-content: space-between;
border-top: 1px solid rgba(56,189,248,0.1);
gap: 12px;
}
.splash-footer-note {
font-size: 0.7rem; color: rgba(255,255,255,0.25);
font-family: 'JetBrains Mono', monospace;
}
.splash-enter {
background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(56,189,248,0.08));
border: 1px solid #38bdf8;
color: #38bdf8;
font-family: 'JetBrains Mono', monospace;
font-size: 0.8rem; font-weight: 700;
letter-spacing: 2px; text-transform: uppercase;
padding: 10px 28px; border-radius: 8px;
cursor: pointer;
box-shadow: 0 0 20px rgba(56,189,248,0.1);
transition: background 0.2s, box-shadow 0.2s;
}
.splash-enter:hover {
background: linear-gradient(135deg, rgba(56,189,248,0.25), rgba(56,189,248,0.12));
box-shadow: 0 0 30px rgba(56,189,248,0.2);
}
/* Globe station popup */
#globe-popup {
display: none; position: fixed; z-index: 10000;
width: 240px;
background: color-mix(in srgb, var(--surf), transparent 5%);
backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
border: 1px solid color-mix(in srgb, var(--acc), transparent 70%);
border-radius: 10px; overflow: hidden;
box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 1px color-mix(in srgb, var(--acc), transparent 94%);
font-family: 'DM Sans', sans-serif;
pointer-events: auto;
transition: opacity 0.25s ease;
}
.globe-popup-header {
display: flex; align-items: center; gap: 10px;
padding: 12px 14px 10px;
border-bottom: 1px solid var(--brd);
}
.globe-popup-flag {
width: 30px; height: 22px; border-radius: 3px; overflow: hidden;
background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
display: flex; align-items: center; justify-content: center;
flex-shrink: 0; font-size: 0.85rem;
}
.globe-popup-call { font-size: 1.05rem; font-weight: 700; color: var(--acc); }
.globe-popup-country { font-size: 0.68rem; color: var(--muted); margin-top: 1px; }
.globe-popup-body { padding: 10px 14px; }
.globe-popup-row {
display: flex; justify-content: space-between; align-items: center;
font-size: 0.75rem; margin-bottom: 5px; color: var(--muted);
}
.globe-popup-row:last-child { margin-bottom: 0; }
.globe-popup-val {
font-family: 'JetBrains Mono', monospace;
font-size: 0.72rem; color: var(--text);
}
.globe-popup-val.accent { color: var(--acc); font-weight: 700; }
.globe-popup-close {
position: absolute; top: 8px; right: 10px;
background: none; border: none; color: var(--muted);
cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px;
transition: color 0.15s;
}
.globe-popup-close:hover { color: var(--text); }
.globe-popup-cluster { padding: 12px 14px; font-size: 0.78rem; color: var(--muted); }
.globe-popup-cluster strong { color: var(--acc); font-size: 1.1rem; }
/* FPV hint bar */
#globe-fpv-hint {
display: none; position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
z-index: 10001; pointer-events: none;
background: rgba(10,12,22,0.9); backdrop-filter: blur(12px);
border: 1px solid rgba(56,189,248,0.3); border-radius: 8px;
padding: 8px 20px; font-family: 'JetBrains Mono', monospace;
font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase;
color: rgba(255,255,255,0.5);
}
#globe-fpv-hint span { color: #38bdf8; }
/* Globe QTH home beacon — no transform, preserves Globe.gl positioning */
@keyframes globeQthPulse {
0%, 100% { opacity: 1; box-shadow: 0 0 6px var(--acc), 0 0 12px var(--acc-glow); }
50% { opacity: 0.6; box-shadow: 0 0 16px var(--acc), 0 0 32px var(--acc-glow), 0 0 48px var(--acc-glow); }
}
.globe-qth-dot {
width: 14px; height: 14px; border-radius: 50%;
background: var(--acc);
animation: globeQthPulse 1.8s ease-in-out infinite;
pointer-events: none;
/* GPU ENCODING: Force hardware acceleration */
will-change: transform;
transform: translateZ(0);
}
/* Globe contact dots */
.globe-contact-dot {
border-radius: 50%;
border: 1px solid rgba(255,255,255,0.65);
opacity: 0.9;
cursor: pointer; pointer-events: auto;
display: flex; align-items: center; justify-content: center;
will-change: transform;
transform: translateZ(0);
backface-visibility: hidden;
}
.globe-dot-count {
font-family: 'JetBrains Mono', monospace;
font-size: 8px; font-weight: 700; line-height: 1;
color: rgba(255,255,255,0.95);
text-shadow: 0 1px 3px rgba(0,0,0,0.9);
pointer-events: none; user-select: none;
}
/* FAQ accordion */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
width: 100%; background: none; border: none; cursor: pointer;
display: flex; align-items: center; justify-content: space-between; gap: 12px;
padding: 12px 0; text-align: left;
font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 600;
color: #f0f4ff; transition: color 0.2s;
}
.faq-q:hover { color: #38bdf8; }
.faq-arrow {
flex-shrink: 0; font-size: 0.65rem; color: #38bdf8;
transition: transform 0.2s; display: inline-block;
}
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-a {
display: none; padding: 0 0 14px;
font-size: 0.78rem; color: rgba(255,255,255,0.55); line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }
/* Tactical Toast / Advisory */
.tactical-toast {
position: fixed; bottom: 28px; left: calc(var(--l-sb) + (100vw - var(--l-sb) - var(--r-sb)) / 2); transform: translateX(-50%) translateY(20px);
z-index: 100000; padding: 13px 22px;
background: color-mix(in srgb, var(--surf), transparent 15%);
backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
border: 1px solid color-mix(in srgb, var(--acc), transparent 70%);
border-radius: 12px;
color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 500;
box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
opacity: 0; pointer-events: none;
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
display: flex; align-items: center; gap: 10px;
}
.tactical-toast.active { transform: translateX(-50%) translateY(0); opacity: 1; }
.tactical-toast-icon { color: var(--acc); font-size: 1rem; }
.tactical-toast b { color: var(--acc); font-weight: 700; }
/* Password info tooltip */
.pwd-info-icon {
display: inline-flex; align-items: center; justify-content: center;
width: 14px; height: 14px; border-radius: 50%;
font-size: 0.6rem; font-style: normal; font-weight: 700;
background: rgba(56,189,248,0.15); border: 1px solid rgba(56,189,248,0.4);
color: #38bdf8; cursor: default; line-height: 1; flex-shrink: 0;
transition: background 0.2s;
}
.pwd-info-icon:hover { background: rgba(56,189,248,0.3); }
#pwd-tooltip {
display: none; position: fixed;
width: 240px;
background: rgba(10,12,22,0.97);
backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(56,189,248,0.3);
border-radius: 10px; padding: 12px 14px;
font-size: 0.72rem; font-weight: 400; font-family: 'DM Sans', sans-serif;
color: rgba(255,255,255,0.6); line-height: 1.65;
box-shadow: 0 12px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(56,189,248,0.06);
z-index: 99999; pointer-events: none;
white-space: normal; text-transform: none; letter-spacing: 0;
transition: opacity 0.15s;
}
#pwd-tooltip strong { color: #f0f4ff; font-weight: 600; }
#pwd-tooltip a { color: #38bdf8; text-decoration: none; }
#pwd-tooltip a:hover { text-decoration: underline; }
#pwd-tooltip::after {
content: ''; position: absolute; top: 100%; left: 20px;
border: 5px solid transparent; border-top-color: rgba(56,189,248,0.3);
}
</style>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin=""/>
<!-- JS Dependencies (Priority Loading) -->
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script src="https://unpkg.com/globe.gl/dist/globe.gl.min.js" defer></script>
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.4.1/dist/html2canvas.min.js" defer></script>
</head>
<body>
<!-- Splash Screen -->
<div class="splash" id="splashScreen">
<div class="splash-card">
<div class="splash-hero">
<img src="loading.png" alt="Polarlog" class="splash-logo">
<div>
<div class="htitle">POLAR<span>PLOT</span></div>
<div class="splash-sub">HAM RADIO CONTACT MAPPER</div>
</div>
<button onclick="document.getElementById('license-modal').style.display='flex'" style="margin-left:auto;background:none;border:none;cursor:pointer;font-size:0.7rem;color:rgba(255,255,255,0.25);font-family:'JetBrains Mono',monospace;letter-spacing:0.05em;padding:4px 8px;transition:color 0.2s;align-self:flex-start;" onmouseover="this.style.color='rgba(255,255,255,0.6)'" onmouseout="this.style.color='rgba(255,255,255,0.25)'">⚖ GPL v3</button>
</div>
<div class="splash-warning" id="splashWarning">
<span class="splash-warning-icon">ℹ</span>
<span>This software prioritizes QRZ ADIFs, but other logs will also work. You are not required to have an API key; it is optional.</span>
<button class="splash-warning-close" onclick="document.getElementById('splashWarning').style.display='none'" title="Dismiss">✕</button>
</div>
<div class="splash-tabs">
<button class="splash-tab active" onclick="showSplashTab('about', this)">About</button>
<button class="splash-tab" onclick="showSplashTab('features', this)">Features</button>
<button class="splash-tab" onclick="showSplashTab('controls', this)">Controls</button>
<button class="splash-tab" onclick="showSplashTab('links', this)">Links</button>
<button class="splash-tab" onclick="showSplashTab('changelog', this)">Changelog</button>
<button class="splash-tab" onclick="showSplashTab('faq', this)">FAQ</button>
<button class="splash-tab" onclick="showSplashTab('software', this)">Other Software</button>
</div>
<div class="splash-body">
<!-- About -->
<div class="splash-pane active" id="splash-about">
<h3>Welcome to Polarplot</h3>
<p>Polarplot is a HAM Radio Contact QSO Mapper. Drop in your ADIF log file and watch your contacts light up on an interactive world map with geodesic great-circle paths, country flags, clustering, and full station bio lookups.</p>
<p>Set your home station callsign and grid square, then import any ADIF file — from QRZ, WSJT-X, N1MM, or any other logging software. Polarplot decodes callsign prefixes, Maidenhead grids, and embedded coordinates. For logs without location data, use QRZ Resolve to pull full station details from QRZ. This is not magic and it cannot pull data that does not exist.</p>
<h3 style="margin-top:8px;">How to Get Started</h3>
<p style="margin-bottom:6px;">1. Enter your callsign and grid square (or GPS coordinates) in the sidebar.</p>
<p style="margin-bottom:6px;">2. Drag and drop your <strong style="color:#f0f4ff;">.adi</strong> or <strong style="color:#f0f4ff;">.adif</strong> file onto the drop zone.</p>
<p style="margin-bottom:6px;">3. Optionally add your QRZ credentials to resolve missing station data.</p>
<p>4. Click the stat cards at the bottom to drill into contacts, countries, bands, and modes.</p>
</div>
<!-- Features -->
<div class="splash-pane" id="splash-features">
<h3>Core Features</h3>
<div class="splash-feature-grid">
<div class="splash-feature">
<strong>🗺 Interactive Map</strong>
<span>Dark Matter tile layer with great-circle geodesic paths to every contact.</span>
</div>
<div class="splash-feature">
<strong>🌐 3D Globe View</strong>
<span>Toggle a WebGL globe for a stunning planetary QSO overview.</span>
</div>
<div class="splash-feature">
<strong>📡 ADIF Support</strong>
<span>Works with QRZ, WSJT-X, N1MM, Log4OM and any standard ADIF export.</span>
</div>
<div class="splash-feature">
<strong>🏳 Country Flags</strong>
<span>Auto-resolved from callsign prefix, DXCC field, or grid coordinates.</span>
</div>
<div class="splash-feature">
<strong>🔍 QRZ Lookup</strong>
<span>Bulk-resolve missing station data via QRZ XML API (key optional).</span>
</div>
<div class="splash-feature">
<strong>📊 Stats Panels</strong>
<span>Drill into total contacts, DXCC entities, bands, and modes worked.</span>
</div>
<div class="splash-feature">
<strong>🎨 5 Themes</strong>
<span>Dark, Light, Terminal, Space, and Amber — switch with one click.</span>
</div>
<div class="splash-feature">
<strong>⚡ Fast Parsing</strong>
<span>Web Worker streams large ADIF files without blocking the UI.</span>
</div>
<div class="splash-feature">
<strong>📸 Screenshot</strong>
<span>Export a high-resolution image of your current map or globe view.</span>
</div>
<div class="splash-feature">
<strong>🛰 Satellite Imagery</strong>
<span>Switch to extremely high quality satellite tile overlay for a real-world map view.</span>
</div>
<div class="splash-feature">
<strong>〰 Contact Paths</strong>
<span>Toggle geodesic great-circle lines from your QTH to every logged contact.</span>
</div>
<div class="splash-feature">
<strong>🔎 Callsign & Country Search</strong>
<span>Filter the map live by callsign prefix or DXCC country to zero in on specific contacts.</span>
</div>
</div>
</div>
<!-- Controls -->
<div class="splash-pane" id="splash-controls">
<h3>Map Controls</h3>
<div class="splash-ctrl-row"><span class="splash-key">Drag</span><span>Pan the map</span></div>
<div class="splash-ctrl-row"><span class="splash-key">Scroll / Pinch</span><span>Zoom in and out</span></div>
<div class="splash-ctrl-row"><span class="splash-key">Click Marker</span><span>Open station card popup</span></div>
<div class="splash-ctrl-row"><span class="splash-key">📜 Show All QSOs</span><span>Open the Biography Vault for that callsign</span></div>
<div class="splash-ctrl-row"><span class="splash-key">Home Beacon</span><span>Click to fit map around all contacts</span></div>
<div class="splash-ctrl-row"><span class="splash-key">🌐 Globe Button</span><span>Toggle between 2D map and 3D globe</span></div>
<div class="splash-ctrl-row"><span class="splash-key">Layers Button</span><span>Switch map tile overlays</span></div>
<h3 style="margin-top:16px;">Sidebar Controls</h3>
<div class="splash-ctrl-row"><span class="splash-key">Contact Paths</span><span>Toggle geodesic great-circle lines</span></div>
<div class="splash-ctrl-row"><span class="splash-key">Map Clustering</span><span>Group nearby markers into clusters</span></div>
<div class="splash-ctrl-row"><span class="splash-key">KM / MI</span><span>Switch distance unit display</span></div>
<div class="splash-ctrl-row"><span class="splash-key">Callsign Search</span><span>Filter map by callsign prefix</span></div>
<div class="splash-ctrl-row"><span class="splash-key">Country Filter</span><span>Show only a specific DXCC entity</span></div>
<div class="splash-ctrl-row"><span class="splash-key">Band Chips</span><span>Toggle individual band visibility</span></div>
<div class="splash-ctrl-row"><span class="splash-key">Date Range Filter</span><span>Filter contacts shown on map between two dates</span></div>
<div class="splash-ctrl-row"><span class="splash-key">‹ Collapse Tab</span><span>Collapse or expand the sidebar for a full map view</span></div>
</div>
<!-- Links -->
<div class="splash-pane" id="splash-links">
<h3>Resources & Community</h3>
<div class="splash-links">
<a class="splash-link-row" href="https://www.youtube.com/@M7PXZ" target="_blank" rel="noopener">
<span class="splash-link-icon">▶</span>
<div>
<div class="splash-link-label">YouTube — M7PXZ</div>
<div class="splash-link-desc">Tutorials, demos, and amateur radio content</div>
</div>
</a>
<a class="splash-link-row" href="https://www.qrz.com" target="_blank" rel="noopener">
<span class="splash-link-icon">📡</span>
<div>
<div class="splash-link-label">QRZ.com</div>
<div class="splash-link-desc">Download your ADIF log and manage your callsign page</div>
</div>
</a>
<a class="splash-link-row" href="https://paypal.me/mitchkmn" target="_blank" rel="noopener">
<span class="splash-link-icon">☕</span>
<div>
<div class="splash-link-label">Support Development</div>
<div class="splash-link-desc">Buy me a coffee — keep Polarplot free and improving</div>
</div>
</a>
<a class="splash-link-row" href="https://discord.com/invite/EswKNbn5yp" target="_blank" rel="noopener">
<span class="splash-link-icon">💬</span>
<div>
<div class="splash-link-label">Discord Community</div>
<div class="splash-link-desc">Chat, feedback, and amateur radio discussion</div>
</div>
</a>
<a href="https://github.com/polarscope-studio/polarplot" target="_blank" rel="noopener" class="splash-link-row">
<span class="splash-link-icon">🐙</span>
<div>
<div class="splash-link-label">GitHub</div>
<div class="splash-link-desc">Source code, issues, and contributions</div>
</div>
</a>
</div>
</div>
<!-- Changelog -->
<div class="splash-pane" id="splash-changelog">
<h3>Version History</h3>
<div class="splash-changelog-entry">
<div class="splash-changelog-ver">v1.8.0 — Latest</div>
<ul>
<li><strong>POTA Tactical Mode</strong> — Immersive asymmetric layout with shifted station framing for optimal planning visibility</li>
<li><strong>Dynamic HUD Centering</strong> — Tactical Focus HUD now calculates true center between active sidebars in real-time</li>
<li><strong>Contextual UI Safety</strong> — Dynamic hiding of the 3D globe control during POTA, and POTA controls during 3D sessions</li>
<li><strong>Clean Map Export</strong> — New screenshot toggle to disable all stat panels for a pure, distraction-free map visualization</li>
<li><strong>Session Intelligence</strong> — Automatic state reset (paths, HUD, and map offsets) when exiting tactical mode</li>
</ul>
</div>
<div class="splash-changelog-entry">
<div class="splash-changelog-ver">v1.7.0</div>
<ul>
<li><strong>Signal Heatmap Visualization</strong> — Added a high-performance heat layer to the 2D map to visualize signal quality distribution across the globe</li>
<li><strong>Precision Mapping</strong> — Accurate conversion for FT8/FT4 SNR (-30 to +20dB) and Voice/CW RS (11-59) to a standardized 0.05-1.0 heat intensity scale</li>
<li><strong>Heat Calibration</strong> — Implemented location-based deduplication to prevent "heat inflation" in high-density areas; heat now reflects peak signal quality, not just station count</li>
<li><strong>Sent / Received Toggle</strong> — Real-time segmented control to switch the heatmap between your reported signal (Sent) and the signal you received (RCVD)</li>
<li><strong>Enhanced Popups</strong> — Station popups now explicitly show both Sent and Received reports (e.g., S: 59 / R: 59) for every contact</li>
<li><strong>Smart Recency Logic</strong> — Heatmap points are derived from the most recent contact at each location to reflect current band conditions</li>
</ul>
</div>
<div class="splash-changelog-entry">
<div class="splash-changelog-ver">v1.6.0</div>
<p style="font-size:0.78rem;color:var(--muted);margin:6px 0 10px;font-style:italic;">Big thanks to DJ0MA for being the first beta tester of Polarplot, and helping me fix many bugs!</p>
<ul>
<li>Dedicated Cloudflare Worker proxy — QRZ resolve now works out of the box for all users, no activation required</li>
<li>QRZ resolve now deduplicates callsigns before lookup — each unique station is only queried once, applied to all matching QSOs</li>
<li>Grid-derived contacts now included in QRZ resolve — Log4OM and similar logs with zeroed coordinates are correctly enriched</li>
<li>Adaptive rate limiting with automatic backoff and retry on resolve errors</li>
<li>Portable callsign support — suffixes like /QRP, /P, /MM are stripped before QRZ lookup so all variants resolve correctly</li>
<li>Screenshot title — type a custom label (e.g. POTA, SOTA, Contest) in the export modal and it appears on the saved image</li>
</ul>
</div>
<div class="splash-changelog-entry">
<div class="splash-changelog-ver">v1.5.0</div>
<ul>
<li>Collapsible sidebar — collapse the left panel for a full map view with smooth animated tab, works in both 2D and 3D</li>
<li>Date range filter — filter all map contacts by QSO date from/to, works alongside band, callsign, and country filters</li>
<li>Callsign hyperlinks — every callsign in contact cards, popups, and the All Contacts panel links directly to QRZ</li>
<li>Home QTH beacon now appears on the 3D globe by default</li>
<li>Grid-square derived contacts now scatter within their cell instead of stacking on the exact centre point</li>
<li>QSL confirmation feature removed</li>
</ul>
</div>
<div class="splash-changelog-entry">
<div class="splash-changelog-ver">v1.4.0</div>
<ul>
<li>Contact line hover tooltip — hover any 2D geodesic path or 3D arc to see great-circle distance (km & mi)</li>
<li>Clicking a contact line opens the same contact card as clicking the dot, in both 2D and 3D</li>
<li>3D globe contact card now locks to the contact point and tracks it as you orbit; fades when it rotates behind the globe</li>
<li>Screenshot modal redesigned — view toggle (Full Map / Camera View) + single Save button</li>
<li>Screenshot countries panel now shows flag thumbnails alongside 3-letter abbreviations</li>
<li>Screenshot watermark moved to bottom-left of the map area and updated to polarplot.net</li>
<li>Screenshot 3D globe panel now renders at full HiDPI resolution, matching the 2D legend quality</li>
<li>Globe screenshot no longer visually jumps — camera repositions behind a veil and dots are properly aligned</li>
<li>Visual Options toggles are blocked with a toast when no log is loaded</li>
<li>Line Distance Hover is disabled until Contact Paths is enabled; warns if toggled while paths are off</li>
<li>Map Clustering auto-enables when entering 3D globe with a log loaded, or when a log is imported while in globe mode</li>
<li>Contact Paths, Line Distance Hover, and Map Clustering all reset correctly when switching between 2D and 3D</li>
<li>Overlay layer picker now closes automatically when switching between 2D and 3D views</li>
<li>Globe arcs turn off instantly without requiring a camera orbit</li>
<li>Browser password autofill enabled for QRZ credentials</li>
</ul>
</div>
<div class="splash-changelog-entry">
<div class="splash-changelog-ver">v1.3.0</div>
<ul>
<li>PNG screenshot export with selectable stat panels (2D & 3D)</li>
<li>Tactical Search Hub now filters live in 3D globe, switches to individual dots while searching</li>
<li>Contact card popup locks to dot while orbiting in 3D, fades out when contact rotates behind globe</li>
<li>Distance units (KM/MI) moved to map overlay button group</li>
<li>QRZ Logbook cross-reference — drop your QRZ ADIF export to enrich missing locations without a proxy</li>
<li>Resolve Missing now pre-matches against QRZ logbook before falling back to per-callsign XML lookup</li>
<li>Data Proxy activation link and info tooltip added</li>
<li>Show All QSOs range now correctly uses home location set via Maidenhead grid</li>
<li>GitHub Pages deploy fixed — Node setup action corrected, loading.png and logo.png now bundled correctly</li>
<li>Custom domain support: polarplot.net</li>
<li>Band chips glow on hover</li>
<li>Globe screenshot captures live WebGL frame and HTML dots composited together</li>
</ul>
</div>
<div class="splash-changelog-entry">
<div class="splash-changelog-ver">v1.2.0</div>
<ul>
<li>Added 3D Globe view via Globe.gl WebGL renderer</li>
<li>Expanded PREFIX_MAP to cover all ITU amateur prefixes</li>
<li>Coordinate bounding-box fallback for unknown callsigns</li>
<li>Streaming ADIF Web Worker for large log files</li>
<li>Bulk QRZ resolve with live progress counter</li>
</ul>
</div>
<div class="splash-changelog-entry">
<div class="splash-changelog-ver">v1.1.0</div>
<ul>
<li>5 theme system: Dark, Light, Terminal, Space, Amber</li>
<li>Biography Vault — full QSO history per callsign</li>
<li>Band spectrum filter chips</li>
<li>Stats panels for DXCC, bands, and modes</li>
<li>Geodesic great-circle path rendering</li>
</ul>
</div>
<div class="splash-changelog-entry">
<div class="splash-changelog-ver">v1.0.0</div>
<ul>
<li>Initial release — ADIF import, Leaflet map, marker clustering</li>
<li>QRZ XML API integration</li>
<li>Maidenhead grid and callsign prefix resolution</li>
</ul>
</div>
</div>
<!-- FAQ -->
<div class="splash-pane" id="splash-faq">
<h3>Frequently Asked Questions</h3>
<div class="faq-item">
<button class="faq-q" onclick="toggleFaq(this)">
Why are some of my QSOs in the middle of the ocean or in completely the wrong place?
<span class="faq-arrow">▶</span>
</button>
<div class="faq-a">
Polarplot plots stations using the coordinates or Maidenhead grid square stored inside your ADIF file. If a contact was logged without a grid square, and no GPS coordinates were saved, Polarplot falls back to callsign prefix lookup to estimate a country — but it can only place the pin at a rough country-level centroid, not the real station location. Contacts may land in the ocean if the ADIF data contains a malformed grid, a zeroed-out coordinate (0.0, 0.0), or a prefix that maps to an island or coastal nation. The fix is usually to re-export your log from your logging software with grid squares enabled, or use the <strong style="color:#f0f4ff;">RESOLVE MISSING</strong> button with QRZ credentials to pull accurate locations.
</div>
</div>
<div class="faq-item">
<button class="faq-q" onclick="toggleFaq(this)">
Why does QRZ work better than other logging software exports?
<span class="faq-arrow">▶</span>
</button>
<div class="faq-a">
QRZ exports a well-structured ADIF that includes full GPS coordinates, accurate country names, and DXCC entity data for every contact. Most other logging tools (WSJT-X, N1MM, Log4OM, etc.) export a leaner ADIF that may only contain the grid square or nothing at all — Polarplot then has to infer locations from callsign prefixes alone, which is less precise. QRZ's XML API also lets Polarplot resolve missing station data in bulk and pull live flag and location updates. Other sources are fully supported, but you may see more unknowns and the odd misplaced pin.
</div>
</div>
<div class="faq-item">
<button class="faq-q" onclick="toggleFaq(this)">
Why are some stations showing as "Unknown Station" with no flag?
<span class="faq-arrow">▶</span>
</button>
<div class="faq-a">
Polarplot resolves country and flag through four methods in order: the COUNTRY field in the ADIF, the callsign prefix, the DXCC numeric code, and finally the contact's coordinates. If all four fail — for example a special event callsign, a maritime mobile station, or an unusual prefix not in the ITU allocation table — the station will display as Unknown. Hitting <strong style="color:#f0f4ff;">RESOLVE MISSING</strong> with QRZ credentials will fix the majority of these automatically.
</div>
</div>
<div class="faq-item">
<button class="faq-q" onclick="toggleFaq(this)">
Do I need a QRZ account or API key to use Polarplot?
<span class="faq-arrow">▶</span>
</button>
<div class="faq-a">
No. Polarplot works fully offline from your ADIF file with no account required. The QRZ credentials are only needed if you want to use <strong style="color:#f0f4ff;">RESOLVE HOME</strong> (to auto-fill your location) or <strong style="color:#f0f4ff;">RESOLVE MISSING</strong> (to bulk-enrich contacts with real data). A free QRZ account with the XML subscription is enough — the API key field is optional if you log in with username and password instead.
</div>
</div>
<div class="faq-item">
<button class="faq-q" onclick="toggleFaq(this)">
The map loaded but I can't see any contacts — what's wrong?
<span class="faq-arrow">▶</span>
</button>
<div class="faq-a">
A few things to check: make sure your ADIF file has a valid <strong style="color:#f0f4ff;"><EOH></strong> header and that contacts end with <strong style="color:#f0f4ff;"><EOR></strong>. If contacts appear in the stats counter but not on the map, they likely have no grid square or coordinate data — enable <strong style="color:#f0f4ff;">RESOLVE MISSING</strong> to populate them. Also check that the band filter chips are all active (none greyed out) and that no callsign search or country filter is set.
</div>
</div>
<div class="faq-item">
<button class="faq-q" onclick="toggleFaq(this)">
The 3D globe is laggy — how do I improve performance?
<span class="faq-arrow">▶</span>
</button>
<div class="faq-a">
The globe renders in WebGL and works best with a dedicated GPU. A few things help: make sure <strong style="color:#f0f4ff;">Contact Paths</strong> is turned off in the sidebar before switching to globe view — arc rendering is the heaviest operation. On the globe, arcs are off by default and can be toggled with the arc button in the globe toolbar. If you have thousands of contacts, enabling <strong style="color:#f0f4ff;">Map Clustering</strong> reduces the number of rendered points significantly.
</div>
</div>
<div class="faq-item">
<button class="faq-q" onclick="toggleFaq(this)">
Is my data sent anywhere or stored online?
<span class="faq-arrow">▶</span>
</button>
<div class="faq-a">
No. Your ADIF file is parsed entirely in your browser using a local Web Worker — nothing is uploaded. Your QRZ password is never saved and only used to fetch a temporary session token directly from QRZ.com. The only optional persistent storage is your API key (if you tick Remember) and your home location, both saved in your browser's localStorage and never transmitted.
</div>
</div>
</div>
<div class="splash-pane" id="splash-software">
<h3>Other Software</h3>
<div style="margin-top:16px;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.08);border-radius:12px;padding:20px 22px;">
<div style="display:flex;align-items:center;gap:12px;margin-bottom:12px;">
<img src="src/assets/polarscope-logo.png" alt="Polarscope" style="width:36px;height:36px;object-fit:contain;border-radius:6px;">
<div>
<div style="font-family:var(--font-mono);font-size:1rem;font-weight:700;letter-spacing:2px;color:var(--text);" class="splash-software-title">POLAR<span style="color:var(--acc);">SCOPE</span></div>
<div style="font-size:0.72rem;color:var(--muted);letter-spacing:0.06em;text-transform:uppercase;">Antenna Radiation Pattern Simulator</div>
</div>
</div>
<p style="font-size:0.82rem;color:rgba(255,255,255,0.6);line-height:1.6;margin-bottom:14px;">
A real-time 3D antenna radiation pattern simulator built entirely in the browser as a single HTML file. Visualise far-field patterns, compare antennas side-by-side, and explore wave propagation — all powered by physics-based electromagnetic models using Plotly.js for 3D rendering.
</p>
<p style="font-size:0.78rem;color:var(--muted);margin-bottom:16px;">No installation required. No data leaves your device. No server needed — just open the HTML file in any modern browser.</p>
<div style="display:flex;gap:10px;flex-wrap:wrap;">
<a href="https://polarscope.tiiny.site/" target="_blank" rel="noopener" style="flex:1;min-width:120px;padding:9px 14px;background:color-mix(in srgb,var(--acc),transparent 85%);border:1px solid var(--acc);color:var(--acc);border-radius:6px;font-family:var(--font-mono);font-size:0.72rem;font-weight:600;letter-spacing:0.06em;text-decoration:none;text-align:center;cursor:pointer;">OPEN APP ›</a>
<a href="https://github.com/polarscope-studio/polarscope" target="_blank" rel="noopener" style="flex:1;min-width:120px;padding:9px 14px;background:transparent;border:1px solid var(--brd);color:var(--muted);border-radius:6px;font-family:var(--font-mono);font-size:0.72rem;font-weight:600;letter-spacing:0.06em;text-decoration:none;text-align:center;">GITHUB ›</a>
</div>
</div>
</div>
</div>
<div class="splash-footer">
<span class="splash-footer-note">POLARPLOT // CREATED & DESIGNED <a href="https://www.qrz.com/db/M7PXZ" target="_blank" rel="noopener" style="color:#38bdf8;text-decoration:none;opacity:0.7;transition:opacity 0.2s;" onmouseover="this.style.opacity='1'" onmouseout="this.style.opacity='0.7'">M7PXZ</a></span>
<button class="splash-enter" onclick="closeSplash()">ENTER ›</button>
</div>
</div>
<!-- License Modal -->
<div id="license-modal" style="display:none;position:fixed;inset:0;z-index:9999;align-items:center;justify-content:center;background:rgba(0,0,0,0.7);backdrop-filter:blur(6px);" onclick="if(event.target===this)this.style.display='none'">
<div style="background:rgba(13,18,32,0.97);border:1px solid rgba(56,189,248,0.2);border-radius:12px;padding:28px 32px;max-width:640px;width:90%;max-height:75vh;display:flex;flex-direction:column;gap:16px;box-shadow:0 8px 48px rgba(0,0,0,0.6);">
<div style="display:flex;align-items:center;justify-content:space-between;">
<span style="font-family:'JetBrains Mono',monospace;font-size:0.85rem;font-weight:700;letter-spacing:2px;color:#38bdf8;">⚖ LICENSE</span>
<button onclick="document.getElementById('license-modal').style.display='none'" style="background:none;border:none;cursor:pointer;color:rgba(255,255,255,0.4);font-size:1.1rem;line-height:1;padding:0;transition:color 0.2s;" onmouseover="this.style.color='#fff'" onmouseout="this.style.color='rgba(255,255,255,0.4)'">✕</button>
</div>
<div style="overflow-y:auto;font-family:'JetBrains Mono',monospace;font-size:0.72rem;color:rgba(255,255,255,0.6);line-height:1.8;white-space:pre-wrap;">Polarplot — Ham Radio QSO Visualizer
Copyright (C) 2026 Polarscope Studio
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You are free to:
• Use — run the program for any purpose
• Study — access and read the source code
• Share — copy and redistribute the software
• Modify — change the code and distribute your modifications
Under these conditions:
• Any modified version must also be released under GPL v3
• You must include the original copyright notice
• You must make the source code available
Full license text: https://www.gnu.org/licenses/gpl-3.0.html
Contact: m7pxzqrz@gmail.com
Website: https://polarplot.net</div>
</div>
</div>
</div>
</div>
<div id="loading-overlay">
<div class="loader-content">
<div class="loader-logo"><img src="loading.png" alt="Loading" style="width:3.5rem;height:3.5rem;object-fit:contain;"></div>
<div class="progress-container">
<div id="loading-progress-bar"></div>
</div>
<p id="loading-status">Initializing System...</p>
</div>
</div>
<button id="sidebar-expand-tab" class="sidebar-expand-tab" title="Expand sidebar" aria-label="Expand sidebar">›</button>
<div id="app">
<aside id="sidebar" class="sidebar">
<button id="sidebar-collapse-btn" title="Collapse sidebar" aria-label="Collapse sidebar">‹</button>
<div class="sidebar-scroll">
<header>
<div class="hheader">
<div class="hicon">
<img src="loading.png" alt="Logo" class="main-logo">
</div>
<div class="hmeta">
<div class="htitle">POLAR<span>PLOT</span></div>
<div class="hsub">HAM RADIO CONTACT MAPPER</div>
</div>
<div class="tchips">
<div class="tchip active" data-t="dark" title="Dark Mode"></div>
<div class="tchip" data-t="light" title="Light Mode"></div>
<div class="tchip" data-t="terminal" title="Terminal Mode"></div>
<div class="tchip" data-t="space" title="Space Mode"></div>
<div class="tchip" data-t="amber" title="Amber Mode"></div>
</div>
</div>
</header>
<section class="controls-section">
<h2 class="section-title">Polar Home Node</h2>
<div class="field-group">
<label for="my-call">Station Callsign</label>
<input type="text" id="my-call" class="field-input" placeholder="Your Callsign (e.g. M7PXZ)" style="text-transform: uppercase;">
</div>
<div class="mode-tabs">
<button id="mode-grid" class="scard-btn active">Grid</button>
<button id="mode-coords" class="scard-btn">GPS</button>
</div>
<div class="mode-content-stack">
<div id="grid-container" class="mode-pane active">
<div class="field-group">
<label for="my-grid">Maidenhead Grid</label>
<input type="text" id="my-grid" class="field-input" placeholder="e.g. IO91vi" maxlength="6">
</div>
</div>
<div id="coords-container" class="mode-pane">
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 8px;">
<div class="field-group">
<label for="my-lat">Latitude</label>
<input type="number" id="my-lat" class="field-input" step="0.000001" placeholder="51.5074">
</div>
<div class="field-group">
<label for="my-lon">Longitude</label>
<input type="number" id="my-lon" class="field-input" step="0.000001" placeholder="-0.1278">
</div>
</div>
</div>
</div>
</section>
<section class="controls-section" id="visual-options-section">
<h2 class="section-title">Visual Options</h2>
<div class="field-group" style="flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 0.5rem;">
<label for="chk-paths" style="margin-bottom: 0; cursor: pointer; color: var(--text);">Contact Paths</label>
<label class="studio-slider">
<input type="checkbox" id="chk-paths">
<span class="slider"></span>
</label>
</div>
<div id="path-hover-row" class="field-group" style="flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 0.5rem;">
<label for="chk-path-hover" style="margin-bottom: 0; cursor: pointer; color: var(--muted); font-size: 0.62rem; padding-left: 12px;">↳ Line Distance Hover</label>
<label class="studio-slider">
<input type="checkbox" id="chk-path-hover">
<span class="slider"></span>
</label>
</div>
<div class="field-group" style="flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 0.5rem;">
<label for="chk-clusters" style="margin-bottom: 0; cursor: pointer; color: var(--text);">Map Clustering</label>
<label class="studio-slider">
<input type="checkbox" id="chk-clusters" checked>
<span class="slider"></span>
</label>
</div>
<div id="heatmap-control-row" class="field-group" style="flex-direction:row;align-items:center;justify-content:space-between;gap:10px;margin-bottom:0.4rem;margin-top:10px;">
<label for="chk-heatmap" style="margin-bottom:0;cursor:pointer;color:var(--text);display:flex;align-items:center;gap:6px;">
Signal Heatmap
<span class="pwd-info-icon" id="hm-info-icon">ℹ</span>
</label>
<label class="studio-slider"><input type="checkbox" id="chk-heatmap"><span class="slider"></span></label>
</div>
<div id="heatmap-toggle-container" class="mode-tabs" style="display: none; margin-top: 0; margin-bottom: 0.8rem; height: 26px; padding: 2px;">
<button id="hm-mode-rcvd" class="scard-btn active" style="padding: 2px; font-size: 0.6rem; letter-spacing: 0.05em;">RECEIVED</button>
<button id="hm-mode-sent" class="scard-btn" style="padding: 2px; font-size: 0.6rem; letter-spacing: 0.05em;">SENT</button>
</div>
<div id="pota-toggle-row" class="field-group" style="flex-direction:row;align-items:center;justify-content:space-between;gap:10px;margin-bottom:0.4rem;margin-top:10px;padding-top:10px;border-top:1px solid var(--brd);">
<label for="chk-pota" style="margin-bottom:0;cursor:pointer;color:var(--acc);font-weight:700;display:flex;align-items:center;gap:6px;">
POTA Tactical Mode
</label>
<label class="studio-slider"><input type="checkbox" id="chk-pota"><span class="slider"></span></label>
</div>
<div style="margin-top:14px;">
<label style="font-size:0.72rem;font-family:var(--font-mono);color:var(--muted);letter-spacing:0.08em;text-transform:uppercase;">Date Range Filter</label>
<div style="display:flex;gap:8px;margin-top:6px;align-items:center;">
<input type="date" id="date-from" class="field-input" style="flex:1;font-size:0.75rem;padding:5px 8px;">
<span style="color:var(--muted);font-size:0.8rem;">→</span>
<input type="date" id="date-to" class="field-input" style="flex:1;font-size:0.75rem;padding:5px 8px;">
</div>
<button id="date-filter-clear" style="margin-top:6px;width:100%;padding:5px;background:transparent;border:1px solid var(--brd);color:var(--muted);border-radius:4px;font-family:var(--font-mono);font-size:0.68rem;letter-spacing:0.06em;cursor:pointer;">CLEAR DATE FILTER</button>
</div>
</section>
<section class="controls-section search-hub">
<h2 class="section-title">Tactical Search Hub</h2>
<div class="field-group">
<label for="search-call">Callsign Research</label>
<input type="text" id="search-call" class="field-input" placeholder="Search Callsign (e.g. M7, G4...)">
</div>
<div class="field-group">
<label for="filter-dxcc">Country Specialist</label>
<select id="filter-dxcc" class="field-input">
<option value="">All Countries</option>
</select>
</div>
</section>
<section class="controls-section" style="padding-left: 15px;">
<h2 class="section-title">Spectrum Filter</h2>
<div id="band-filter" class="band-chips">
<button class="band-chip active" data-band="2200M" style="--chip-color: #4B0082;">2200m</button>
<button class="band-chip active" data-band="630M" style="--chip-color: #483D8B;">630m</button>
<button class="band-chip active" data-band="160M" style="--chip-color: #A020F0;">160m</button>
<button class="band-chip active" data-band="80M" style="--chip-color: #0000FF;">80m</button>
<button class="band-chip active" data-band="60M" style="--chip-color: #00FFFF;">60m</button>
<button class="band-chip active" data-band="40M" style="--chip-color: #008000;">40m</button>
<button class="band-chip active" data-band="30M" style="--chip-color: #008080;">30m</button>
<button class="band-chip active" data-band="20M" style="--chip-color: #FFFF00;">20m</button>
<button class="band-chip active" data-band="17M" style="--chip-color: #FFA500;">17m</button>
<button class="band-chip active" data-band="15M" style="--chip-color: #FF0000;">15m</button>
<button class="band-chip active" data-band="12M" style="--chip-color: #FF1493;">12m</button>
<button class="band-chip active" data-band="10M" style="--chip-color: #8B5CF6;">10m</button>
<button class="band-chip active" data-band="6M" style="--chip-color: #B500D0;">6m</button>
<button class="band-chip active" data-band="4M" style="--chip-color: #8B008B;">4m</button>
<button class="band-chip active" data-band="2M" style="--chip-color: #E20084;">2m</button>
<button class="band-chip active" data-band="1.25M" style="--chip-color: #FF1493;">1.25m</button>
<button class="band-chip active" data-band="70CM" style="--chip-color: #E2001E;">70cm</button>
<button class="band-chip active" data-band="33CM" style="--chip-color: #FF4500;">33cm</button>
<button class="band-chip active" data-band="23CM" style="--chip-color: #FF6347;">23cm</button>
<button class="band-chip active" data-band="13CM" style="--chip-color: #FF7F50;">13cm</button>
<button class="band-chip active" data-band="9CM" style="--chip-color: #FFA07A;">9cm</button>
<button class="band-chip active" data-band="6CM" style="--chip-color: #F08080;">6cm</button>
<button class="band-chip active" data-band="3CM" style="--chip-color: #CD5C5C;">3cm</button>
<button class="band-chip active" data-band="1.25CM" style="--chip-color: #A52A2A;">1.25cm</button>
<button class="band-chip active" data-band="6MM" style="--chip-color: #800000;">6mm</button>
<button class="band-chip active" data-band="4MM" style="--chip-color: #556B2F;">4mm</button>
</div>
</section>
<section class="controls-section" style="padding-left: 15px;">
<h2 class="section-title">Import Contacts</h2>
<div id="dropzone" class="dropzone">
<i class="icon-upload">📁</i>
<p>Drag & Drop ADIF file</p>
<span style="font-size: 0.7rem; color: var(--muted);">or click to browse</span>
</div>
<input type="file" id="adif-input" style="display: none;" accept=".adif,.adi">
</section>
<div class="stats-grid">
<div class="stat-card stat-card-btn" id="card-total" role="button" tabindex="0" title="View all contacts">
<div class="stat-label">TOTAL</div>
<div id="stat-total" class="stat-value">0</div>
</div>
<div class="stat-card stat-card-btn" id="card-dxcc" role="button" tabindex="0" title="View countries worked">
<div class="stat-label">DXCC</div>
<div id="stat-dxcc" class="stat-value">0</div>
</div>
<div class="stat-card stat-card-btn" id="card-bands" role="button" tabindex="0" title="View bands used">
<div class="stat-label">BANDS</div>
<div id="stat-bands" class="stat-value">0</div>
</div>
<div class="stat-card stat-card-btn" id="card-modes" role="button" tabindex="0" title="View modes used">
<div class="stat-label">MODES</div>
<div id="stat-modes" class="stat-value">0</div>
</div>
</div>
<section class="controls-section station-search" style="margin-top: 1rem; padding-left: 15px;">