-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path188-SulphurCreekdsfishladder.html
67 lines (59 loc) · 2.39 KB
/
188-SulphurCreekdsfishladder.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
<!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: Sulphur Creek d/s fish ladder</title>
</head>
<body onload="init_page()">
<h1>Sulphur Creek d/s fish ladder</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-10101042" value="10101042" checked>
<label class="form-check-label" for="id-10101042">
height, river stage (07.NRT.PRODUCTION.HOURLY)
</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>