forked from jbuck/CDOT-Dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (37 loc) · 1.05 KB
/
index.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
<html>
<head>
<link rel="stylesheet" href="default.css">
<script src="dashBoard.js"></script>
<script src="sequencer.js"></script>
<script>
(function() {
dashBoard.widget( "text", function( id, options ){
document.getElementById( id ).innerHTML = options.text;
});
document.addEventListener( "DOMContentLoaded", function() {
dashBoard.text( "first", {
text: "first"
})
.text( "second", {
text: "second"
})
.sequence( "sequence1", {
duration: 5 // seconds
});
dashBoard.text("helloworld", {
text: "Hello world"
});
}, false );
})();
</script>
</head>
<body>
<div id="board">
<div id="sequence1" class="widget graygradient">
<div id="first" class="sequence1"></div>
<div id="second" class="sequence1"></div>
</div>
<div id="helloworld" class= "widget bluegradient"></div>
</div>
</body>
</html>