-
Notifications
You must be signed in to change notification settings - Fork 1
/
pressure.html
executable file
·43 lines (41 loc) · 1.13 KB
/
pressure.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>Pressure 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="pressure.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="pressure" class="history" >Loading data . . .</div>
</body>
</html>