-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (62 loc) · 3.04 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>NWM Plot</title>
<meta name="description" content="Plot National Water Model forecasted streamflow">
<meta name="keywords" content="National Water Model, plot, chart">
<script src="moment-with-locales.min.js"></script>
<script src="chart.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js"
integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa"
crossorigin="anonymous"></script>
<link rel="stylesheet" type="text/css" href="app.css">
</head>
<body>
<form id="inputForm" name="inputForm">
<div class="mb-3">
<label for="featureid" class="form-label">Feature ID: </label>
<input autofocus class="form-control noscroll" id="featureid" name="featureid" placeholder="e.g., 1620851" type="number"
aria-label="Enter feature ID" value="1620851">
</div>
<div class="mb-3">
<label for="src" class="form-label">Source: </label>
<select name="src" id="src" class="form-select">
<option value="nwps_aa">NWPS Analysis and Assimilation</option>
<option value="nwps_sr">NWPS Short Range</option>
<option value="nwps_mr">NWPS Medium Range</option>
<option value="nwps_lr">NWPS Long Range</option>
<option value="esri_mr">Esri Medium Range</option>
<option value="ecmwf">ECMWF</option>
</select>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="showEnsembles" name="showEnsembles" value="true">
<label for="showEnsembles" class="form-check-label"> Show Ensemble Members If Available</label><br>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="showTotal" name="showTotal" value="true">
<label for="showTotal" class="form-check-label"> Show Cumulative Volume</label><br>
</div>
<div class="mb-3 form-check">
<input type="checkbox" class="form-check-input" id="hideForm" name="hideForm" value="true">
<label for="hideForm" class="form-check-label"> Hide Input Form</label><br>
</div>
<button class="btn btn-primary" type="submit" aria-label="Plot">Plot</button>
</form>
<div>
<div id="spinner" class="spinner" style="margin: auto; display: none"></div>
<canvas id="chart"></canvas>
</div>
<span id="downloads" style="display: none">
<button class="btn btn-primary" onclick="downloadCSV()">Download CSV</button>
<button class="btn btn-primary" onclick="downloadImage()">Download Image</button>
</span>
<div id="about" style="float: right">
<a href="about.html">About</a>
</div>
<script src="plot.js"></script>
</body>
</html>