-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path143-McKenzieCreek.html
99 lines (83 loc) · 3.32 KB
/
143-McKenzieCreek.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
<!DOCTYPE html>
<meta charset='UTF-8'>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<title>Station: McKenzie Creek</title>
</head>
<body onload="init_page()">
<h1>McKenzie Creek</h1>
<form action="https://waterdata.grandriver.ca/KiWIS/KiWIS?service=kisters&type=queryServices&request=gettimeseriesvalues&datasource=0&format=html&header=true">
<input type="hidden" name="service" value="kisters">
<input type="hidden" name="type" value="queryServices">
<input type="hidden" name="request" value="getTimeSeriesValues">
<input type="hidden" name="datasource" value="0">
<input type="hidden" name="header" value="true">
<input type="hidden" name="format" value="html">
<div class="form-row">
<div class="col-sm-2">
<input type="date" class="form-control gestern" name="from" value="2018-01-01"><br />
</div>
<div class="col-sm-2">
<input type="date" class="form-control heute" name="to" value="2018-01-01"><br />
</div>
<div class="col-sm-2">
<input type="submit" class="form-control" value="Send">
</div>
</div>
<hr />
<div class="form-check">
<input class="for-check-input" type="radio" name="ts_id" id="id-9992042" value="9992042" checked>
<label class="form-check-label" for="id-9992042">
waterflow (07.NRT.PRODUCTION.HOURLY)
</label>
</div>
<div class="form-check">
<input class="for-check-input" type="radio" name="ts_id" id="id-10077042" value="10077042" >
<label class="form-check-label" for="id-10077042">
height, river stage (07.NRT.PRODUCTION.HOURLY)
</label>
</div>
<div class="form-check">
<input class="for-check-input" type="radio" name="ts_id" id="id-12505042" value="12505042" >
<label class="form-check-label" for="id-12505042">
waterflow (10.Day.Mean)
</label>
</div>
<div class="form-check">
<input class="for-check-input" type="radio" name="ts_id" id="id-15327042" value="15327042" >
<label class="form-check-label" for="id-15327042">
waterflow (10.Day.Mean.7day)
</label>
</div>
<div class="form-check">
<input class="for-check-input" type="radio" name="ts_id" id="id-20153042" value="20153042" >
<label class="form-check-label" for="id-20153042">
waterflow (08.WSC.PUBLISHED.QR.DAY)
</label>
</div>
</div>
</form>
</body>
<script>
function set_date_value(field_class, datum) {
var field = document.querySelector(field_class);
field.value = datum.toISOString().split('T')[0];
}
function init_page() {
var heute, heute_field, gestern, gestern_field;
heute = new Date();
set_date_value('.heute', heute);
// heute_field = document.querySelector('.heute');
// heute_field.value = heute.toISOString().split('T')[0];
gestern = new Date(heute - 86400000);
set_date_value('.gestern', gestern);
// gestern_field = document.querySelector('.gestern');
// gestern_field.value = gestern.toISOString().split('T')[0];
// console.log("heute : "+heute);
// console.log("heute feld: "+ heute_field);
// console.log("gestern: " + gestern);
// console.log("gestern feld: " + gestern_field);
}
</script>
</html>