-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
170 lines (159 loc) · 9.76 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>River Forecast System</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="GEOGLOWS Hydroviewer">
<meta name="author" content="Riley Hales PhD">
<meta name="keywords" content="RFS, River Forecast System, Hydrology, Streamflow, Global, GEOGLOWS, Hydroviewer, Streamflow, Forecast, Retrospective">
<meta name="robots" content="index, follow">
<!-- CSS Framework -->
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script>
<!-- Plotly -->
<script src="https://cdn.plot.ly/plotly-2.35.3.min.js" charset="utf-8"></script>
<!-- Load Calcite components from CDN -->
<link rel="stylesheet" href="https://js.arcgis.com/4.32/esri/themes/light/main.css"/>
<script src="https://js.arcgis.com/4.32/"></script>
<script type="module" src="https://js.arcgis.com/calcite-components/3.0.3/calcite.esm.js"></script>
<script type="module" src="https://js.arcgis.com/map-components/4.32/arcgis-map-components.esm.js"></script>
<!-- App -->
<link rel="stylesheet" href="/static/css/main.css"/>
<link rel="stylesheet" href="/static/css/materialize.overrides.css"/>
<script src="/static/js/localization.en-US.js" async></script>
<script type="module" src="/static/js/ui.js"></script>
<script type="module" src="/static/js/plots.js"></script>
<script type="module" src="/static/js/data.js"></script>
<script type="module" src="/static/js/main.js"></script>
</head>
<body>
<div id="charts-modal" class="modal">
<div class="modal-content" style="display: flex; flex-direction: column; align-items: center; height: 100%">
<div class="modal-header-bar">
<h4 id="selected-river-id" style="margin: 0; width: 180px"></h4>
<div class="load-status" style="flex: 0 1 0">
<button id="showForecastCharts" class="btn status-btn active" onclick="showChartView('forecast')">Forecast<span id="forecast-load-icon"></span></button>
<button id="showRetroCharts" class="btn status-btn" onclick="showChartView('retro')">Retro<span class="hide-on-small-only">spective</span><span id="retro-load-icon"></span></button>
<button class="btn btn-flat status-btn" onclick="toggleVisibleRiverInput()">Enter <span class="hide-on-small-only">River </span>ID</button>
</div>
<input type="date" id="forecast-date-calendar" name="forecast-date-calendar" min="2024-07-01" onkeydown="return false" style="width: 180px; margin:0;">
</div>
<div id="enter-river-id-container" class="hide" style="width: 350px; background-color: lightgoldenrodyellow; display: flex; align-items: center; justify-content: center;">
<input type="number" id="river-id" placeholder="Enter 9 Digit River ID" style="width: 200px; margin: 10px">
<button class="waves-effect waves-light btn" onclick="setRiverId()">Submit</button>
</div>
<div class="chart-spaces chart-category-container" style="position: relative; height: 100%">
<div id="forecastChartSpace" class="chart-category-container" style="position: absolute">
<div id="forecastPlot" class="chart"><h4>Enter a River ID or use the map to click on a stream to view data</h4></div>
</div>
<div id="retroChartSpace" class="chart-category-container dissolve-backwards" style="position: absolute">
<div id="retroPlot" class="chart"><h4>Enter a River ID or use the map to click on a stream to view data</h4></div>
<div id="yearlyVolPlot" class="chart"></div>
<div id="yearlyStatusPlot" class="chart"></div>
<div id="fdcPlot" class="chart"></div>
</div>
</div>
<div class="modal-footer" style="margin: 0; padding: 0">
<button class="btn btn-success" id="download-forecast-btn" disabled><a id="download-forecast-link" target="_blank">Save Forecast Data (CSV)</a></button>
<button class="btn btn-success" id="download-retrospective-btn" disabled><a id="download-retrospective-link" target="_blank">Save Retrospective Data (CSV)</a></button>
<a class="modal-close waves-effect waves-green btn-flat">Close</a>
</div>
</div>
</div>
<div id="filter-modal" class="modal bottom-sheet">
<div class="modal-content" style="display: flex; flex-direction: column; align-items: center">
<div style="display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%">
<h4>Filter Streams on Map</h4>
</div>
<div style="width: 100%">
<div>
<label for="outletCountry">River Outlet Country</label>
<select id="outletCountry" class="browser default" multiple></select>
</div>
<div>
<label for="riverCountry">River Country</label>
<select id="riverCountry" class="browser default" multiple></select>
</div>
<div>
<label for="vpuSelect">VPU Number</label>
<select id="vpuSelect" class="browser default" multiple></select>
</div>
<div>
<label for="definitionString">Enter Custom SQL Filters (<a href="https://livefeeds3.arcgis.com/arcgis/rest/services/GEOGLOWS/GlobalWaterModel_Medium/MapServer/0">Visit the Esri Living Atlas</a> for all attribute options)</label>
<input type="text" id="definitionString" placeholder=""/>
</div>
<div>
<label for="definition-expression">Definition Currently Displayed</label>
<input type="text" id="definition-expression" disabled/>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn" onclick="updateLayerDefinitions()">Apply Filters</button>
<button class="btn btn-secondary" onclick="resetDefinitionExpression()">Clear Filters</button>
<a class="modal-close waves-effect waves-green btn-flat">Close</a>
</div>
</div>
<div id="about-modal" class="modal bottom-sheet">
<div class="modal-content" style="display: flex; flex-direction: column; align-items: center">
<div style="display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%">
<h4>About</h4>
</div>
<div style="width: 100%; max-width: 800px">
<p>
To learn more about the GEOGLOWS project, visit <a href="https://www.geoglows.org" target="_blank">geoglows.org</a>.
For more information about the River Forecast System please visit <a href="https://training.geoglows.org" target="_blank">training.geoglows.org</a>.
For documentation and data download instructions, please consult <a href="https://data.geoglows.org" target="_blank">data.geoglows.org</a>.
</p>
<p>More information about the NOAA map layers can be found at:</p>
<ol>
<li>NOAA-20 VIIRS True Color: <a href="https://www.arcgis.com/home/item.html?id=c873f4c13aa54b25b01270df9358dc64" target="_blank">arcgis.com</a></li>
<li>NOAA-20 VIIRS Water States: <a href="https://www.arcgis.com/home/item.html?id=3695712d28354952923d2a26a176b767" target="_blank">arcgis.com</a></li>
<li>NOAA-20 VIIRS Thermal Anomalies: <a href="https://www.arcgis.com/home/item.html?id=dece90af1a0242dcbf0ca36d30276aa3" target="_blank">arcgis.com</a></li>
<li>NOAA GOES Colorized Infrared Weather Satellite (10 minute updates): <a href="https://www.arcgis.com/home/item.html?id=37a875ff3611496883b7ccca97f0f5f4" target="_blank">arcgis.com</a></li>
<li>NOAA-20 VIIRS Flood Composite: <a href="https://floods.ssec.wisc.edu/products/RIVER-FLDglobal-composite" target="_blank">University of Wisconsin Madison SSEC</a></li>
</ol>
</div>
</div>
<div class="modal-footer">
<a class="modal-close waves-effect waves-green btn-flat">Close</a>
</div>
</div>
<div class="body-wrapper">
<div class="nav-bar-wrapper" style="background-color: #81d4fa">
<h4 style="font-size: 2rem; font-weight: bolder">
<span class="hide-on-small-only">GEOGLOWS </span>R<span class="hide-on-small-only">iver </span>F<span class="hide-on-small-only">orecast </span>S<span class="hide-on-small-only">ystem</span>
</h4>
<div>
<a data-tooltip="View Charts" data-position="bottom" class="btn modal-trigger tooltipped" href="#charts-modal"><i class="material-icons">timeline</i></a>
<a data-tooltip="Learn More" data-position="bottom" class="btn modal-trigger tooltipped" href="#about-modal"><i class="material-icons">help</i></a>
<a data-tooltip="Language" data-position="bottom" class="btn dropdown-trigger tooltipped" href="#" data-target="language-select"><i class="material-icons">translate</i></a>
<ul id="language-select" class="dropdown-content">
<li><a href="#" data-lang="en-US">English</a></li>
<li><a href="./es/index.html" data-lang="es-ES">Español</a></li>
</ul>
</div>
</div>
<arcgis-map item-id="a69f14ea2e784e019f4a4b6835ffd376">
<arcgis-zoom position="top-left"></arcgis-zoom>
<arcgis-locate position="top-left" scale="5000"></arcgis-locate>
<arcgis-expand close-on-esc position="top-right" title="Layer List">
<arcgis-layer-list class="large-icon"></arcgis-layer-list>
</arcgis-expand>
<arcgis-expand close-on-esc position="top-right" title="Basemap Gallery">
<arcgis-basemap-gallery></arcgis-basemap-gallery>
</arcgis-expand>
<arcgis-expand close-on-esc position="bottom-left" mode="floating" data-tooltip="Legend">
<arcgis-legend legend-style="classic"></arcgis-legend>
</arcgis-expand>
<arcgis-scale-bar position="bottom-right" bar-style="line" unit="dual"></arcgis-scale-bar>
</arcgis-map>
<div id="timeSliderForecastWrapper" class="time-sliders">
<div class="time-slider-title">Stream Layer Forecast Time Steps</div>
<div id="timeSliderForecast"></div>
</div>
</div>
</body>
</html>