-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathearth-view.html
More file actions
268 lines (253 loc) · 6.36 KB
/
earth-view.html
File metadata and controls
268 lines (253 loc) · 6.36 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({
"gtm.start": new Date().getTime(),
event: "gtm.js",
});
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : "";
j.async = true;
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-T5HP93BM");
</script>
<!-- End Google Tag Manager -->
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Earth View - NASA EONET Real-time Events</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript
><iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-T5HP93BM"
height="0"
width="0"
style="display: none; visibility: hidden"
></iframe
></noscript>
<!-- End Google Tag Manager (noscript) -->
<div id="app"></div>
<!-- Navigation -->
<nav id="earth-nav">
<a href="index.html" class="nav-btn">🌌 Solar System</a>
<h1>🌍 Earth View - NASA EONET Events</h1>
<button id="auto-rotate-btn" class="nav-btn">🔄 Auto Rotate</button>
</nav>
<!-- Enhanced EONET Data Controls -->
<div id="earth-eonet-controls">
<div class="controls-header">
<h3>🛰️ Earth Controls</h3>
<button id="close-controls" class="close-btn">×</button>
</div>
<div class="control-section">
<h3>🛰️ Live Events</h3>
<div id="event-counter">Loading events...</div>
<label>
<input
type="range"
id="event-limit"
min="10"
max="10000"
step="10"
value="50"
/>
Event Limit: <span id="event-limit-value">50</span>
</label>
<div class="event-control-row">
<button id="refresh-data" class="refresh-btn">
🔄 Refresh Data
</button>
</div>
</div>
<div class="control-section">
<h4>📊 Filter Events</h4>
<div class="filter-buttons">
<button id="filter-all" class="filter-btn active">
All Events
</button>
<button id="filter-wildfires" class="filter-btn">
🔥 Wildfires
</button>
<button id="filter-volcanoes" class="filter-btn">
🌋 Volcanoes
</button>
<button id="filter-earthquakes" class="filter-btn">
🌍 Earthquakes
</button>
<button id="filter-storms" class="filter-btn">
🌪️ Storms
</button>
<button id="filter-floods" class="filter-btn">
🌊 Floods
</button>
</div>
</div>
<div class="control-section">
<h4>☀️ Sunlight Simulation</h4>
<div class="sunlight-controls">
<div class="time-display">
<label>Current Time:</label>
<span id="current-time">
<div class="time-main">12:00</div>
<div class="time-details">Loading... • Local</div>
</span>
</div>
<div class="timezone-controls">
<label>
<input
type="radio"
name="time-mode"
id="local-time"
checked
/>
🌍 Local Time
</label>
<label>
<input
type="radio"
name="time-mode"
id="utc-time"
/>
🌐 UTC Time
</label>
<div id="timezone-info" class="timezone-info">
Detecting timezone...
</div>
</div>
<div class="time-control-buttons">
<button id="pause-play-btn" class="time-control-btn">
⏸️ Pause
</button>
</div>
<label>
<input type="checkbox" id="real-time" checked />
Real-time Simulation
</label>
<label>
<input
type="range"
id="manual-time"
min="0"
max="24"
step="0.1"
value="12"
disabled
/>
Manual Time (Hours)
</label>
<label>
<input
type="range"
id="time-speed"
min="0.1"
max="100"
step="0.1"
value="1"
disabled
/>
Time Speed (x)
</label>
<div class="time-presets">
<button class="time-preset-btn" data-time="6">
🌅 Dawn
</button>
<button class="time-preset-btn" data-time="12">
☀️ Noon
</button>
<button class="time-preset-btn" data-time="18">
🌇 Dusk
</button>
<button class="time-preset-btn" data-time="0">
🌙 Midnight
</button>
</div>
</div>
</div>
<div class="control-section">
<h4>🎨 Visual Settings</h4>
<div class="visual-controls">
<label>
<input
type="range"
id="marker-size"
min="0.1"
max="1"
step="0.1"
value="0.5"
/>
Marker Size
</label>
<label>
<input
type="range"
id="animation-speed"
min="0.1"
max="3"
step="0.1"
value="1"
/>
Animation Speed
</label>
<label>
<input type="checkbox" id="show-labels" checked />
Show Event Labels
</label>
<button
id="toggle-user-marker"
class="user-location-btn active"
>
👤 Hide My Location
</button>
</div>
</div>
<div class="control-section legend">
<h4>🏷️ Event Types</h4>
<div class="legend-item">
<span class="marker wildfire"></span>Wildfire
</div>
<div class="legend-item">
<span class="marker volcano"></span>Volcano
</div>
<div class="legend-item">
<span class="marker earthquake"></span>Earthquake
</div>
<div class="legend-item">
<span class="marker storm"></span>Storm
</div>
<div class="legend-item">
<span class="marker flood"></span>Flood
</div>
<div class="legend-item">
<span class="marker drought"></span>Drought
</div>
</div>
</div>
<!-- Event Details Panel -->
<div id="event-details" class="hidden">
<div class="details-header">
<h3>Event Details</h3>
<button id="close-details">×</button>
</div>
<div class="details-content">
<div id="event-info"></div>
</div>
</div>
<!-- Loading Overlay -->
<div id="loading-overlay">
<div class="loading-content">
<div class="loading-spinner"></div>
<p>Loading Earth and NASA EONET data...</p>
</div>
</div>
<script type="module" src="earth-view.js"></script>
</body>
</html>