forked from vtereshko/boundary-client-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
65 lines (54 loc) · 1.64 KB
/
Copy pathindex.html
File metadata and controls
65 lines (54 loc) · 1.64 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Boundary Data-source Example</title>
<!-- required third-party libraries -->
<script src="lib/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="lib/org/cometd.js" type="text/javascript"></script>
<script src="lib/org/cometd/TimeSyncExtension.js" type="text/javascript"></script>
<script src="lib/jquery.cometd.js" type="text/javascript"></script>
<script src="lib/jquery.cometd-timesync.js" type="text/javascript"></script>
<!-- Boundary JavaScript API files -->
<!-- Don't forget to update the auth.js file with your account info! -->
<script src="bndry/auth.js" type="text/javascript"></script>
<script src="bndry/data-source.js" type="text/javascript"></script>
<!-- example code -->
<script src="example_connected_meters.js" type="text/javascript"></script>
<style type="text/css">
#container {
margin: 20px auto;
position: relative;
width: 960px;
}
#container h1 {
margin: 0 0 1em;
}
#container p {
margin: 0 0 1.5em;
}
#controls {
margin: 1.5em 0;
}
#graph {
background: #eee;
margin: 0 0 1.5em;
}
#graph canvas {
display: block;
}
</style>
</head>
<body>
<div id="container">
<div id="example">
<h1>Meter Status in Real-Time</h1>
<div id="controls">
<button id="subscribe" disabled>Subscribe to data-source</button>
<button id="unsubscribe" disabled>Unsubscribe from data-source</button>
</div>
</div>
<ul id="myList"></ul>
</div>
</body>
</html>