-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
122 lines (109 loc) · 4.77 KB
/
Copy pathindex.html
File metadata and controls
122 lines (109 loc) · 4.77 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Eclipse Explorer</title>
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin=""
/>
<link rel="stylesheet" href="./src/style.css" />
<script type="importmap">
{
"imports": {
"astronomy-engine": "https://esm.run/astronomy-engine@2.1.19",
"three": "https://esm.run/three@0.160.0",
"leaflet": "https://esm.run/leaflet@1.9.4"
}
}
</script>
</head>
<body>
<aside id="sidebar">
<h1>Eclipse Explorer</h1>
<section class="control date-control">
<label for="year-input">Eclipse near year</label>
<div class="row">
<button id="prev-eclipse" aria-label="Previous eclipse">←</button>
<span id="day-display" class="date-part"></span>
<span id="month-display" class="date-part"></span>
<input type="number" id="year-input" value="2026" min="-3000" max="9999" step="1" inputmode="numeric" />
<button id="next-eclipse" aria-label="Next eclipse">→</button>
<span class="mobile-buttons">
<button class="view-toggle icon-btn active" data-view="map" aria-label="Toggle map view" title="Map">🗺︎</button>
<button class="view-toggle icon-btn active" data-view="scene" aria-label="Toggle 3D view" title="3D">🌐︎</button>
<button class="view-toggle icon-btn active" data-view="local" aria-label="Toggle local view" title="Local">☀︎</button>
<button id="more-toggle" class="icon-btn" type="button" aria-label="Details" title="Details">ⓘ</button>
</span>
</div>
</section>
<div id="more-controls">
<div class="more-header">
<span>Details</span>
<button id="more-close" type="button" aria-label="Close details">×</button>
</div>
<p class="hint" id="date-hint">Type a year and the nearest eclipse is shown. Use ← / → to step. Range: roughly −3000 to +7000; uncertainty grows quickly outside ±500 y of today.</p>
<section class="control">
<label>Observer</label>
<div class="row">
<input type="number" id="obs-lat" value="59.32" step="0.01" />
<input type="number" id="obs-lon" value="18.07" step="0.01" />
</div>
<p class="hint">latitude, longitude (deg). Click on the map to set.</p>
</section>
<section class="control">
<label class="checkbox-label">
<input type="checkbox" id="show-footprint" checked />
Show penumbra footprint
</label>
<p class="hint">Yellow region shows where any partial eclipse is visible from the ground at some point during the event.</p>
</section>
<section id="info" class="control"></section>
<section class="control">
<label>ΔT uncertainty (1σ)</label>
<div id="dt-info" class="hint"></div>
</section>
<footer>
<p class="hint">
Geometry from <a href="https://github.com/cosinekitty/astronomy" target="_blank" rel="noopener">astronomy-engine</a>.
Long-term ΔT from Morrison & Stephenson (2004) parabola; 1σ uncertainty per
Stephenson, Morrison & Hohenkerk (2016).
</p>
</footer>
</div>
</aside>
<div id="more-backdrop"></div>
<main>
<div id="time-control">
<span id="time-display">peak</span>
<input type="range" id="time-slider" min="-120" max="120" value="0" step="0.05" />
<label class="header-toggle" id="live-label" title="Follow the current clock time">
<input type="checkbox" id="live-time" />
Live
</label>
</div>
<section id="map-panel" class="panel">
<header id="map-header">Global path — umbral centerline with ΔT uncertainty band</header>
<div id="map"></div>
</section>
<section id="scene-panel" class="panel">
<header>
<span>3D Sun · Moon · Earth (not to scale)</span>
<label class="header-toggle">
<input type="checkbox" id="surface-shadow" />
Shadow on surface
</label>
</header>
<div id="scene"></div>
</section>
<section id="local-panel" class="panel">
<header>Local view — Sun disk with Moon transit</header>
<div id="local"></div>
</section>
</main>
<script type="module" src="./src/main.js"></script>
</body>
</html>