-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathindex.html
More file actions
255 lines (225 loc) · 11 KB
/
Copy pathindex.html
File metadata and controls
255 lines (225 loc) · 11 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>INGV ShakeMap Portal</title>
<!-- Shared Components - loads common stylesheets and elements -->
<script src="js/shared-components.js"></script>
<!-- Page-specific CSS -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
</head>
<body>
<!-- Banner injected by shared-components.js -->
<div class="banner"></div>
<!-- Header injected by shared-components.js -->
<header></header>
<main class="container">
<!-- Home View -->
<div id="view-home">
<div class="section-header">
<h2>Latest events</h2>
</div>
<div id="latest-events-cards" class="events-grid">
<!-- Populated by JS -->
</div>
</div>
<!-- Archive View -->
<div id="view-archive" class="hidden">
<div class="section-header">
<h2>Events list</h2>
</div>
<div class="filters">
<div class="filter-group">
<label>Event Classification</label>
<select id="period-filter">
<option value="instrumental" selected>Instrumental Events</option>
<option value="historical">Pre-instrumental Events</option>
</select>
</div>
<div class="filter-group">
<label>Select year</label>
<select id="year-filter">
<option value="">All</option>
<!-- Populated by JS -->
</select>
</div>
<div class="filter-group">
<label>Min Magnitude</label>
<select id="mag-filter">
<option value="">All</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
</select>
</div>
</div>
<div id="archive-events-cards" class="events-grid">
<!-- Populated by JS -->
</div>
</div>
<!-- Event Details View -->
<div id="view-details" class="hidden">
<div class="event-header">
<button class="back-btn" onclick="window.history.back()"><i class="fas fa-arrow-left"></i> Back</button>
<h2 id="event-title">Event Details</h2>
</div>
<div class="event-meta" id="event-meta">
<!-- Metadata populated by JS -->
</div>
<div class="data-source-toggle" id="data-source-toggle" style="display: none;">
<button class="toggle-btn active" id="toggle-instrumental"
onclick="setDataSource('instrumental')">Instrumental only</button>
<button class="toggle-btn" id="toggle-reported-intensity" onclick="setDataSource('reported-intensity')"
disabled>Instrumental + Reported Intensity</button>
</div>
<div class="action-bar tabs">
<button id="tab-map" class="btn tab-btn active" onclick="switchTab('map')">Map</button>
<button id="tab-analysis" class="btn tab-btn" onclick="switchTab('analysis')">Analysis View</button>
<button id="tab-stations" class="btn tab-btn" onclick="switchTab('stations')">Station List</button>
<button id="tab-static" class="btn tab-btn" onclick="switchTab('static')">Static View</button>
<button id="tab-metadata" class="btn tab-btn" onclick="switchTab('metadata')">Metadata</button>
<button id="tab-products" class="btn tab-btn" onclick="switchTab('products')">Download Products</button>
</div>
<div id="content-map" class="tab-content">
<div id="map-container">
<div id="shakemap"></div>
<div id="map-controls">
<h3>Layers</h3>
<div id="layer-list">
<!-- Layers checkboxes -->
</div>
</div>
</div>
</div>
<div id="content-metadata" class="tab-content hidden">
<div id="metadata-content">
<!-- Populated by JS -->
</div>
</div>
<div id="content-products" class="tab-content hidden">
<div id="products-list">
<!-- Product list populated by JS -->
</div>
</div>
<div id="content-analysis" class="tab-content hidden">
<!-- Analysis header with radio buttons and controls -->
<div class="analysis-header">
<div class="analysis-radio-group">
<label class="analysis-radio-label">
<input type="radio" name="analysis-type" value="intensity" checked>
<span>INTENSITY</span>
</label>
<label class="analysis-radio-label">
<input type="radio" name="analysis-type" value="pga">
<span>PGA</span>
</label>
<label class="analysis-radio-label">
<input type="radio" name="analysis-type" value="pgv">
<span>PGV</span>
</label>
</div>
<!-- Controls moved to same row. "Show Reported Intensity"
comes first so that "Select Site Class" keeps a stable
right-aligned position when the checkbox is hidden on the
PGA/PGV tabs. -->
<div class="analysis-controls-inline">
<div class="control-group" id="dyfiControlGroup">
<label for="dyfiCheck">
<input type="checkbox" id="dyfiCheck">
Show Reported Intensity
</label>
</div>
<div class="control-group">
<label for="selectRegrType">Select Site Class</label>
<select id="selectRegrType" class="custom-select">
<option value="rock">Rock</option>
<option value="soil">Soil</option>
</select>
</div>
</div>
</div>
<!-- Plot containers -->
<div class="plot-container">
<div id="intensity" class="plot-area active"></div>
<div id="pga" class="plot-area"></div>
<div id="pgv" class="plot-area"></div>
</div>
</div>
<div id="content-stations" class="tab-content hidden">
<div class="station-list-container">
<div id="seismicStationSection" class="station-section">
<h3 class="station-section-title">Seismic Stations</h3>
<div id="seismicStationTable" class="station-table"></div>
</div>
<div id="macroseismicStationSection" class="station-section">
<h3 class="station-section-title">Reported Intensity</h3>
<div id="macroseismicStationTable" class="station-table"></div>
</div>
</div>
</div>
<div id="content-static" class="tab-content hidden">
<!-- Static View header with image selector -->
<div class="static-view-header">
<div class="static-view-selector">
<button class="static-view-btn active" data-image="intensity">INTENSITY</button>
<button class="static-view-btn" data-image="pga">PGA</button>
<button class="static-view-btn" data-image="pgv">PGV</button>
<div class="static-view-dropdown">
<button class="static-view-btn dropdown-toggle" id="sa-dropdown">SA <i
class="fas fa-chevron-down"></i></button>
<div class="dropdown-menu" id="sa-menu">
<button class="dropdown-item" data-image="psa0p3">SA 0.3s</button>
<button class="dropdown-item" data-image="psa1p0">SA 1s</button>
<button class="dropdown-item" data-image="psa3p0">SA 3s</button>
</div>
</div>
</div>
</div>
<!-- Image viewer -->
<div class="static-image-container">
<img id="static-view-image" src="" alt="ShakeMap Static View" />
</div>
</div>
</div>
<!-- Markdown Page View (Disclaimer, Contributors) -->
<div id="view-markdown" class="hidden">
<div class="markdown-content" id="markdown-content">
<!-- Populated by JS from .md files -->
</div>
</div>
</main>
<footer>
<div class="container"></div>
</footer>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<!-- D3.js v7 for Analysis View -->
<script src="https://cdn.jsdelivr.net/npm/d3@7.9.0/dist/d3.min.js"></script>
<!-- Marked.js for Markdown rendering -->
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<!-- Configuration and Utilities (load first) -->
<script src="js/config-base.js"></script>
<script src="js/config-env.js"></script>
<script src="js/colors.js"></script>
<script src="js/utils.js"></script>
<!-- Page Modules -->
<script src="js/home.js"></script>
<script src="js/archive.js"></script>
<script src="js/event-details.js"></script>
<!-- Event Detail Tab Modules -->
<script src="js/map.js"></script>
<script src="js/products.js"></script>
<script src="js/metadata.js"></script>
<script src="js/static-view.js"></script>
<script src="js/station-list.js"></script>
<script src="js/analysis.js"></script>
<!-- Core App (entry point - load last) -->
<script src="js/app.js"></script>
</body>
</html>