-
Notifications
You must be signed in to change notification settings - Fork 1
/
rainfall.html
executable file
·43 lines (41 loc) · 1.13 KB
/
rainfall.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
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="refresh" content="300">
<title>Rainfall Graph</title>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="//code.highcharts.com/stock/highstock.js"></script>
<script type="text/javascript">// Utility functions
function mytimeformat(d) {
var ds = d.toLocaleTimeString();
return ds.match(/[0-9]{1,2}:[0-9]{2}/)+' '+ds.match(/[AP]M/);
}
</script>
<script type="text/javascript" src="stations.js">//Stations</script>
<script type="text/javascript" src="rainfall.js"></script>
<style>
div#current {
max-width: 800px;
margin: auto;
}
table.outertable {
border-collapse: collapse;
}
table.outertable, table.innertable {
border-style: solid;
border-width: medium;
width: 100%;
}
div.history {
max-width: 800px;
height: 350px;
margin: 0 auto
}
</style>
</head>
<body>
<div id="stationdiv"></div>
<div id="rainhist" class="history" >Loading data . . .</div>
</body>
</html>