-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
465 lines (412 loc) · 27.5 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
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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>EMPD</title>
<script src="node_modules/jquery/dist/jquery.min.js"></script>
<link rel="stylesheet" href="lib/jquery-ui-1.12.1.custom/jquery-ui.min.css">
<script src="lib/jquery-ui-1.12.1.custom/external/jquery/jquery.js"></script>
<script src="lib/jquery-ui-1.12.1.custom/jquery-ui.js"></script>
<script src="node_modules/d3/dist/d3.min.js"></script>
<script src="node_modules/d3-tip/dist/index.js"></script>
<script type="text/javascript" src="node_modules/crossfilter2/crossfilter.min.js"></script>
<script type="text/javascript" src="node_modules/dc/dc.min.js"></script>
<link rel="stylesheet" href="node_modules/dc/dc.min.css" />
<script type="text/javascript" src="node_modules/leaflet/dist/leaflet-src.js"></script>
<link rel="stylesheet" href="node_modules/leaflet/dist/leaflet.css" />
<script src="node_modules/leaflet.markercluster/dist/leaflet.markercluster.js"></script>
<link rel="stylesheet" href="node_modules/leaflet.markercluster/dist/MarkerCluster.css" />
<link rel="stylesheet" href="node_modules/leaflet.markercluster/dist/MarkerCluster.Default.css" />
<script src="node_modules/dc.leaflet/dc.leaflet.min.js"></script>
<link rel="stylesheet" href="node_modules/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="node_modules/leaflet-easybutton/src/easy-button.css">
<script src="node_modules/leaflet-easybutton/src/easy-button.js"></script>
<link rel="stylesheet" href="node_modules/leaflet-minimap/dist/Control.MiniMap.min.css">
<script src="node_modules/leaflet-minimap/dist/Control.MiniMap.min.js"></script>
<link rel="stylesheet" href="node_modules/leaflet-mouse-position/src/L.Control.MousePosition.css">
<script src="node_modules/leaflet-mouse-position/src/L.Control.MousePosition.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.min.js"></script>
<link href="node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="sticky-footer-navbar.css" rel="stylesheet">
<script src="node_modules/json-editor/dist/jsoneditor.min.js"></script>
<script src="https://www.google.com/recaptcha/api.js?render=6LflGpsUAAAAAKhm3e-A5q30qh1099ZZeF884Vld"></script>
<script src="js/utils.js"></script>
<script src="js/plotting.js"></script>
<script src="js/setup.js"></script>
<link href="style.css" rel="stylesheet" type="text/css">
<link href="non-responsive.css" rel="stylesheet" type="text/css">
<style>
@media (min-width: 970px) {
.mobile-alert {
display: none !important;
}
}
</style>
</head>
<body>
<div id="wrap">
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Eurasian Modern Pollen Database</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="help.html" target="_blank">Help</a></li>
<li><a href="data.html" target="_blank">Data</a></li>
<li><a href="contact.html" target="_blank">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
<!-- Begin page content -->
<div class="container">
<div class="row">
<noscript>
<div class="alert alert-danger" role="alert">
This webpage is based on Javascript. To view any of it's content, please enable it! <a href="https://security.stackexchange.com/q/198780">More info...</a>
</div>
</noscript>
</br>
<div class="alert alert-danger mobile-alert alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
This webpage is not mobile friendly, sorry. You should open it on a larger screen...
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="alert alert-info alert-dismissible col-xs-12" role="alert" id="version-info">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<div class="alert alert-danger alert-dismissible col-xs-12" role="alert" id="development-info">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
You are viewing a page under construction. We apologize for the lack of documentation in multiple parts of it.
</div>
<div class='dc-data-count col-xs-12' id='chart-count'></div>
</div>
<div class="row" id="map-row">
<div class="dc-chart col-xs-12">
<div id="chart-map" style="width:95%; height: 400px;"></div>
</div>
</div>
<br>
<div class="row">
<label for="versions">EMPD version:</label>
<div class="btn-group" align="left" role="group" aria-label="versions">
<a href="" role="button" id="btn-stable" class="btn btn-default">stable</a>
<a href="?branch=master" role="button" id="btn-latest" class="btn btn-default">latest</a>
<a href="#" role="button" id="btn-custom" class="btn btn-default disabled">custom</a>
<!-- <button type="button" id="btn-latest" class="btn btn-default">latest</button>
<button type="button" id="btn-custom" class="btn btn-default disabled">custom</button> -->
</div>
<input class="btn pull-right" type="image" id="button_shipping" src="img/shipping.png" title="Deliver cart as tab-separated file" style="height:40px;">
<select class="pull-right" id="download-type">
<option value="data">Pollen Counts</option>
<option value="metadata">Metadata</option>
</select>
<input class="btn pull-right" type="image" id="button_cartdelete" src="img/cartdelete.png" title="Empty download cart" style="height:40px;">
<input class="btn pull-right" type="image" id="button_cartadd" src="img/cartadd.png" title="Add selection on the map to download cart" style="height:40px;">
</div>
<br>
<div class='row' id='editor-row'>
<ul class="nav nav-tabs" role="tablist" id="meta-tabs">
<li role="presentation" aria-controls="formatted-meta-table" class="active"><a href="#formatted-meta-table" role="tab" data-toggle="tab">Metadata</a></li>
<li role="presentation" aria-controls="meta-table"><a href="#meta-table" role="tab" data-toggle="tab">Full metadata</a></li>
<li role="presentation"><a href="#filters-tab" aria-controls="filters-tab" role="tab" data-toggle="tab">Filters</a></li>
<li role="presentation"><a href="#pollen-plot" aria-controls="pollen-plot" role="tab" data-toggle="tab">Pollen diagram</a></li>
<li role="presentation"><a href="#climate-plot" aria-controls="climate-plot" role="tab" data-toggle="tab">Climate diagram</a></li>
<li role="presentation"><a href="#meta-editor" aria-controls="meta-editor" role="tab" data-toggle="tab">Edit Meta data</a></li>
<li role="presentation"><a href="#meta-submit" aria-controls="meta-submit" role="tab" data-toggle="tab">Submit changes to Github</a></li>
<li role="presentation"><a href="#report-issue" aria-controls="report-issue" role="tab" data-toggle="tab">Report issues</a></li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="formatted-meta-table">
<a id="resetFormattedTableLink" class="reset" href="javascript:resetTable();" style="visibility: hidden;">reset</a>
<br>
<div class='scroll'>
<table class='span12 table table-hover meta-table' id='formatted-chart-table'>
<thead><tr class='header' id='formatted-meta-table-head'>
<th class="th_Sel">Download</th>
<th class="th_Id">Id</th>
<th class="th_SampleName">Sample name</th>
<th class="th_SiteName">Site name</th>
<th class="th_Country">Country</th>
<th class="th_Elevation">Elevation</th>
<th class="th_Worker">Analysts</th>
<th class="th_Publication">Reference</th>
<th class="th_DOI">DOI</th>
</tr></thead>
</table>
</div>
<div id="formatted-paging" style='text-align: center; padding-bottom: 3em;'>
Showing <span id="begin-formatted"></span>-<span id="end-formatted"></span> of <span id="size-formatted"></span> <span id="totalsize-formatted"></span>
<input id="prev-formatted-table-page" class="btn" type="Button" value="Previous" onclick="javascript:prev_table_page()" />
<input id="next-formatted-table-page" class="btn" type="button" value="Next" onclick="javascript:next_table_page()"/>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="meta-table">
<a id="resetTableLink" class="reset" href="javascript:resetTable();" style="visibility: hidden;">reset</a>
<br>
<div class='scroll'>
<table class='span12 table table-hover meta-table' id='chart-table'>
<thead><tr class='header' id='meta-table-head'>
<th class="th_Sel">Download</th>
<th class="th_Id">Id</th>
<!-- More columns are added by Javascript from meta.tsv -->
</tr></thead>
</table>
</div>
<div id="paging" style='text-align: center; padding-bottom: 3em;'>
Showing <span id="begin"></span>-<span id="end"></span> of <span id="size"></span> <span id="totalsize"></span>
<input id="prev-table-page" class="btn" type="Button" value="Previous" onclick="javascript:prev_table_page()" />
<input id="next-table-page" class="btn" type="button" value="Next" onclick="javascript:next_table_page()"/>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="filters-tab">
<div class="row">
<div class="col-xs-2" id="country-filter">
<div>
Country: <a class='reset'
href='javascript:countryMenu.filterAll();dc.redrawAll();'
style='visibility: hidden;'>reset</a>
</div>
</div>
<div class="col-xs-2" id="samplecontext-filter">
<div>
Sample context: <a class='reset'
href='javascript:sampleContextMenu.filterAll();dc.redrawAll();'
style='visibility: hidden;'>reset</a>
</div>
</div>
<div class="col-xs-2" id="sampletype-filter">
<div>
Sample type: <a class='reset'
href='javascript:sampleTypeMenu.filterAll();dc.redrawAll();'
style='visibility: hidden;'>reset</a>
</div>
</div>
<div class="col-xs-2" id="samplemethod-filter">
<div>
Sample method: <a class='reset'
href='javascript:sampleMethodMenu.filterAll();dc.redrawAll();'
style='visibility: hidden;'>reset</a>
</div>
</div>
<div class="col-xs-2" id="contributor-filter">
<div>
Data contributor: <a class='reset'
href='javascript:contributorMenu.filterAll();dc.redrawAll();'
style='visibility: hidden;'>reset</a>
</div>
</div>
<div class="col-xs-2" id="worker-filter">
<div>
Responsible person/analyst (worker): <a class='reset'
href='javascript:workerMenu.filterAll();dc.redrawAll();'
style='visibility: hidden;'>reset</a>
</div>
</div>
</div>
<div class="row">
<div class="dc-chart col-xs-2" id="age-chart">
<div class="dc-chart-title">
Age uncertainty:
<a class="reset" href="javascript:ageChart.filterAll();dc.redrawAll();" style="display: none;">reset</a>
</div>
</div>
<div class="dc-chart col-xs-2" id="location-chart">
<div class="dc-chart-title">
Location uncertainty:
<a class="reset" href="javascript:locationChart.filterAll();dc.redrawAll();" style="display: none;">reset</a>
</div>
</div>
<div class="dc-chart col-xs-3" id="chart-temperature">
<div class="dc-chart-title" id="temperature-title">Mean Annual Temperature</div>
<a class="reset" href="javascript:temperatureChart.filterAll();dc.redrawAll();" style="display: none;">reset</a>
<br>
<a class="preset" href="javascript:changeTemperatureChart(0);" title="Winter">DJF</a>
<a class="preset" href="javascript:changeTemperatureChart(1);" title="Spring">MAM</a>
<a class="preset" href="javascript:changeTemperatureChart(2);" title="Summer">JJA</a>
<a class="preset" href="javascript:changeTemperatureChart(3);" title="Automn">SON</a>
<a class="preset" href="javascript:changeTemperatureChart(4);" title="Annual">Annual</a>
<span class="reset" style="display: none;"><span class="filter"></span></span>
</div>
<div class="dc-chart col-xs-3" id="chart-precip">
<div class="dc-chart-title" id="precip-title">Mean Annual Precipitation</div>
<a class="reset" href="javascript:precipChart.filterAll();dc.redrawAll();" style="display: none;">reset</a>
<br>
<a class="preset" href="javascript:changePrecipChart(0);" title="Winter">DJF</a>
<a class="preset" href="javascript:changePrecipChart(1);" title="Spring">MAM</a>
<a class="preset" href="javascript:changePrecipChart(2);" title="Summer">JJA</a>
<a class="preset" href="javascript:changePrecipChart(3);" title="Automn">SON</a>
<a class="preset" href="javascript:changePrecipChart(4);" title="Annual">Annual</a>
<span class="reset" style="display: none;"><span class="filter"></span></span>
</div>
<div class="dc-chart col-xs-2" id="version-chart">
<div class="dc-chart-title">
EMPD version
<a class="reset" href="javascript:versionChart.filterAll();dc.redrawAll();" style="display: none;">reset</a>
</div>
</div>
</div>
<div class="row">
<div class="dc-chart col-xs-3" id="okexcept-filter">
<div class="dc-chart-title">
Accepted failures:
</div>
</div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="pollen-plot">
<div class="dc-chart col-xs-10">
<div id="pollen-diagram" style="width:95%;">
Select a site from the map to show the data.
</div>
</div>
<div class="dc-chart col-xs-2">
<div id="pollen-diagram-legend"></div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="climate-plot">
<div class="dc-chart col-xs-10">
<div id="climate-diagram" style="width:95%;"></div>
</div>
<div class="dc-chart col-xs-2">
<div id="climate-diagram-legend"></div>
</div>
</div>
<div role="tabpanel" class="tab-pane" id="meta-editor">
<button type="submit" class="btn btn-default" id='btn-save'>Save changes</button><br>
<div id="editor_holder"></div>
</div>
<div role="tabpanel" class="tab-pane" id="meta-submit">
<p id="submit-instructions">Thank you for contributing your data!</p>
<p><button type="button" class="btn btn-link" id='download-edits'>Download edited data</button></p>
<form id='submit-form' action="https://empd-admin.herokuapp.com" method="post" target='_blank'>
<div class="row form-group">
<div class="col-md-4 mb-3">
<label for="submitter_firstname">First name*</label>
<input type="text" class="form-control" id="submitter_firstname" name="submitter_firstname" placeholder="Jane" required>
</div>
<div class="col-md-4 mb-3">
<label for="submitter_lastname">Last name*</label>
<input type="text" class="form-control" id="submitter_lastname" name="submitter_lastname" placeholder="Doe" required>
</div>
</div>
<br>
<div class="row form-group">
<div class="col-md-4 mb-3">
<label for="submitter_mail">Email* (will not be made public)</label>
<input type="email" class="form-control" id="submitter_mail" name="submitter_mail" placeholder="[email protected]" required>
</div>
<div class="col-md-4 mb-3">
<label for="submitter_username">Github Username</label>
<div class="input-group">
<div class="input-group-addon">@</div>
<input type="text" class="form-control" id="submitter_username" name="submitter_username" placeholder="JaneDoe">
</div>
</div>
</div>
<br>
<div class="row form-group">
<div class="col-md-8 mb-3">
<label for="commit_msg">Commit message*</label>
<textarea class="form-control" id="commit_msg" name="commit_msg" rows="3" placeholder="Provide a short description about what you did..." required></textarea>
</div>
</div>
<br>
<div class="checkbox">
<label>
<input type="checkbox" required> By submitting your data, you agree to make it publicly available under the Creative Commons Attribution 4.0 International license (CC-BY 4.0) in the <a href="https://github.com/EMPD2/EMPD-data" title="Github repository for the EMPD">EMPD-data repository on Github</a>. Please review the <a href="https://github.com/EMPD2/EMPD-data/blob/master/LICENSE" title="CC BY 4.0 LICENSE of the EMPD-data repository">license file</a> for further information. Furthermore you agree that your first and last name, as well as the Github username (if provided) are made public in the corresponding pull request.*
</label>
</div>
</br>
<button class="btn btn-primary" type="submit" id="btn-submit">Submit</button>
</form>
<div class="alert alert-info" role="alert" id="submit-info">Please be patient, we are just dealing with your data. This may take one or two minutes and you should receive an email.</div>
<div class="alert alert-danger" role="alert" id="submit-failed"></div>
<div class="alert alert-success" role="alert" id="submit-successed"></div>
</div>
<div role="tabpanel" class="tab-pane" id="report-issue">
<p id="report-instructions">Thank you for reporting issues! Please fill out this form and click the <i>Submit</i> button. We will then handle your request.</p>
<form id='report-form' action="https://empd-admin.herokuapp.com" method="post" target='_blank'>
<div class="row form-group">
<div class="col-md-4 mb-3">
<label for="error-source">What is causing the error?</label>
<select name="error-source" form="report-form" id="error-source">
<option value="viewer">the Webviewer</option>
<option value="data">the pollen data</option>
</select>
</div>
</div>
<div class="row form-group">
<div class="col-md-4 mb-3">
<label for="report_firstname">First name*</label>
<input type="text" class="form-control" id="report_firstname" name="submitter_firstname" placeholder="Jane" required>
</div>
<div class="col-md-4 mb-3">
<label for="submitter_lastname">Last name*</label>
<input type="text" class="form-control" id="submitter_lastname" name="submitter_lastname" placeholder="Doe" required>
</div>
</div>
<br>
<div class="row form-group">
<div class="col-md-4 mb-3">
<label for="report_mail">Email* (will not be made public)</label>
<input type="email" class="form-control" id="report_mail" name="submitter_mail" placeholder="[email protected]" required>
</div>
<div class="col-md-4 mb-3">
<label for="report_username">Github Username</label>
<div class="input-group">
<div class="input-group-addon">@</div>
<input type="text" class="form-control" id="report_username" name="submitter_username" placeholder="JaneDoe">
</div>
</div>
</div>
<br>
<div class="row form-group">
<div class="col-md-8 mb-3">
<label for="issue_title">Issue title*</label>
<input type="text" class="form-control" id="issue_title" name="issue_title" placeholder="Title of the ticket" required>
</div>
</div>
<br>
<div class="row form-group">
<div class="col-md-8 mb-3">
<label for="issue_msg">Issue message*</label>
<textarea class="form-control" id="issue_msg" name="issue_msg" rows="3" placeholder="Provide a short description the issue you found..." required></textarea>
</div>
</div>
<br>
<div class="checkbox">
<label>
<input type="checkbox" required> By submitting this issue, you agree to make it publicly available under the Creative Commons Attribution 4.0 International license (CC-BY 4.0) in the <a href="https://github.com/EMPD2/EMPD-data" title="Github repository for the EMPD">EMPD-data repository on Github</a>. Please review the <a href="https://github.com/EMPD2/EMPD-data/blob/master/LICENSE" title="CC BY 4.0 LICENSE of the EMPD-data repository">license file</a> for further information. Furthermore you agree that your first and last name, as well as the Github username (if provided) are made public in the corresponding pull request.*
</label>
</div>
</br>
<button class="btn btn-primary" type="submit" id="btn-report">Submit</button>
</form>
<div class="alert alert-info" role="alert" id="report-info">Please be patient, we are just dealing with your data. This may take one or two minutes and you should receive an email.</div>
<div class="alert alert-danger" role="alert" id="report-failed"></div>
<div class="alert alert-success" role="alert" id="report-successed"></div>
</div>
</div>
</div>
</div>
</div><!-- /.container -->
</div>
<div id="footer">
<div class="container">
<font color="red">Unofficial and unstable and not yet finalized version! Please do not use or distribute.</font>
</div><!-- /.container -->
</div>
</body>
</html>