-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (54 loc) · 1.26 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>[vistex] Visual Cortex Demo</title>
<style>
body {
background-color:#ddd;
}
.video {
float:left;
position:relative;
width: 400px;
height: 300px;
background-color:#fff;
border: 1px solid #aaa;
}
.video .camera,
.video .overlay {
position:absolute;
top:0;
}
.clearboth {
clear: both;
}
</style>
</head>
<body>
<div>
<div id="camera" class="video"></div>
<div id="motion" class="video"></div>
<div id="light" class="video"></div>
<div class="clearboth"></div>
</div>
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/kernel.js"></script>
<script type="text/javascript" src="src/kernel-extension.js"></script>
<script type="text/javascript" src="src/main-hub.js"></script>
<script type="text/javascript" src="src/camera.js"></script>
<script type="text/javascript" src="src/motion.js"></script>
<script type="text/javascript" src="src/light.js"></script>
<script type="text/javascript">
Kernel.register([
{id: 'camera-1', type: 'Camera'},
{id: 'motion-1', type: 'Motion'},
{id: 'light-1', type: 'Light'}
]);
// Start the modules after the DOM is ready
$(document).ready(function() {
Kernel.startAll();
});
</script>
</body>
</html>