-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
213 lines (162 loc) · 8.08 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
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
<!DOCTYPE html>
<html>
<head>
<title>Lower Mekong Basin Suspended Sediment Monitoring</title>
<!-- favicon -->
<link rel="icon"
type="image/png"
href="http://portal.mrcmekong.org/images/water.png">
<!-- CSS file. -->
<link href="/static/css/styles.css" rel="stylesheet" type="text/css">
<!-- Google Web Fonts. -->
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<!-- The Google JavaScript loader tool (for the Maps, Charts APIs). -->
<script src="https://www.google.com/jsapi"></script>
<!-- Google Web Fonts. -->
<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<!-- the google maps api -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDMaGA4J0U-Tc5TkT2lfw-xTXaYdDk2nmk&v=3.exp&libraries=drawing"></script>
<!-- Load JavaScript -->
<script src="/static/js/script.js"></script>
<!-- Load jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Load Google Charts API -->
<script src="http://www.google.com/jsapi"></script>
<script src="https://www.gstatic.com/charts/loader.js"></script>
<!-- load boostrap -->
<script src="static/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/css/datepicker.css" rel="stylesheet" type="text/css" />
<link href="/static/css/bootstrap-slider.css" rel="stylesheet">
<script src="/static/js/bootstrap-slider.js"> </script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.3.0/js/bootstrap-datepicker.js"></script>
<!-- custom library to download maps -->
<script src='/_ah/channel/jsapi'></script>
<!-- load libraries to download kml -->
<script src="/static/js/kml.js"></script>
<script src="/static/js/xmlwriter.js"></script>
<script src="/static/js/toGeoJSON.js"></script>
</head>
<body>
<!-- The page header. -->
<section id="pageheader">
<div class="logos">
<a href="https://www.usaid.gov/" target="_blank"><img id="usaid" src="static/img/usaid.png" alt="USAID">
<a href="https://www.nasa.gov/" target="_blank"><img id="nasa" src="static/img/nasa.png" alt="NASA"></a>
<a href="http://www.adpc.net" target="_blank"><img id="adpc" src="static/img/adpclogo.jpg" alt="ADPC"></a>
<a href="http://servir.adpc.net/" target="_blank"><img id="servir" src="static/img/servir.png" alt="SERVIR"></a>
</div>
</section>
<div class="loader"></div>
<!-- The page content -->
<section id="pagecontent">
<div class="container" onclick="toggleOptions(this)">
<div class="bar1"></div>
<div class="bar2"></div>
<div class="bar3"></div>
</div>
<!-- The DOM of the application. -->
<div id="ecodash">
<div id='chart-window'>
<button id="chart-clear-method" name="chart-clear-method" class="btn btn-custom" style="background-color:#c0392b;position:absolute;font-size:10px;text-align:left;width:30px;height:30px;right:0%;top:-5px;z-index:150">X</button>
<div id="chart-info"></div>
<a id="Export" class="btn btn-custom" href="#" style="position:absolute;bottom: 10px;">Export CSV</a>
</div>
<!-- The element into which Google Maps is rendered. -->
<div id="map"></div>
<!-- block with legend -->
<div id="legend">
<h2>Suspended Sediment Concentration</h2>
<div>
<img class="img" src="static/img/legend.svg" alt="legend">
<div class="top-right">800 mg/L</div>
<div class="center-right">400 mg/L</div>
<div class="bottom-right">0 mg/L</div>
</div>
<h2 style="position:relative;bottom:-130px;zorder:10">Opacity</h2>
<div class="opacSlider">
<input id="opacitySlider" type="text" data-slider-min="0" data-slider-max="1" data-slider-step="0.1" data-slider-value="1"/>
</div>
</div>
<!-- The element with all sliders and buttons. -->
<div id="ui" style="display: none;">
<header>
<h3>Suspended Sediment Monitoring Application</h3>
</header>
<br>
<div id="controls">
<table>
<colgroup>
<col style="width: 291px">
<col style="width: 21px">
</colgroup>
<tr>
<td><h4>Select a time period</h4></td>
</tr>
</table>
<label>Select Start Date: </label>
<div id="datepicker" class="input-group date" data-date-format="mm-dd-yyyy">
<input type='text' class="form-control" value="01-01-2000"/>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
<label>Select End Date: </label>
<div id="datepicker2" class="input-group date" data-date-format="mm-dd-yyyy">
<input type='text' class="form-control" value="31-12-2000"/>
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
<!-- Slider for climatology -->
<!-- <label> Filter by Month: </label><br> -->
<!-- <b>Jan.</b> -->
<!-- <input id="monthSlider" type="text" class="span2" value="" data-slider-min="1" data-slider-max="12" data-slider-step="1" data-slider-value="[1,12]"/> -->
<!-- <b>Dec.</b> <br> -->
<label> Select season to process: </label>
<div class="radio">
<label><input type="radio" name="season-selection" id="season-selection" value="dry" checked>Dry Season</label>
<label><input type="radio" name="season-selection" id="season-selection" value="wet">Wet Season</label>
<label><input type="radio" name="season-selection" id="season-selection" value="all">All</label>
</div>
<button id="updateMap" class="btn btn-custom">Update map</button>
<p><br></p>
<h4>Functions to display time series/download the map</h4>
<p>
<button id="polygon-selection-method" name="polygon-selection-method" class="btn btn-custom">Draw Polygon</button>
<button id="polygon-clear-method" name="polygon-clear-method" class="btn btn-custom" style="background-color:#c0392b">Clear Polygon</button>
</p>
<p>
<a id="link" class="btn btn-custom disabled" target="_blank">Download Data</a>
<button id="chartButton" class="btn btn-custom disabled" >Show Chart</button>
</p>
<br>
<br>
<br>
<br>
<p> </p>
</div> <!-- end of ui display block -->
</div> <!-- end of ecodash -->
</section>
<!-- the page footer -->
<section id="pagefooter">
<div class="logos">
<a href="http://sig-gis.com/" target="_blank"><img id="sig" src="/static/img/logosig.png" alt="SIG">
<a href="http://www.uah.edu/essc" target="_blank"><img id="essc" src="/static/img/essc_logo.png" alt="ESSC">
<a href="https://www.usfca.edu/arts-sciences/research/geospatial-analysis-lab" target="_blank"><img id="gsal" src="/static/img/gsal.png" alt="GSAL">
<a href='https://earthengine.google.com/' target='_blank'><img id="gee" src="/static/img/google_earthengine_powered_400px.png" alt="GEE">
</div>
</section>
<!-- Boot application once the body loads. -->
<script>
// Here we get the mapid and token for the map tiles that were generated by Earth Engine using the Python script server.py and injected using the Jinja2 templating engine.
boot(
'{{ eeMapId | safe }}',
'{{ eeToken | safe }}');
</script>
</body>
</html>