-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (65 loc) · 1.6 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
60
61
62
63
64
65
66
67
68
<html>
<head>
<meta charset="UTF-8" />
<script src="http://js.leapmotion.com/leap-0.6.4.js"></script>
<script src="osc.js/dist/osc-browser.min.js"></script>
<style>
#bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
#content {
position: relative;
z-index: 1;
}
h1 {
text-align: center;
}
.circle {
border-radius: 50%;
width: 100px; height: 100px;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
#circle_box {
height: 300px;
width: 80%;
margin: auto;
}
.centered {
position: relative;
margin: auto;
top: 50%;
transform: translateY(-50%);
}
#palm_circle_left {
float: left;
background: radial-gradient(circle at 25% 25%, red, #000);
}
#palm_circle_right {
float: right;
background: radial-gradient(circle at 25% 25%, blue, #000);
}
</style>
</head>
<body>
<div id="bg"><img src="grid.jpg" width="100%" height="100%"/></div>
<div id="content">
<h1>#VRTEX</h1>
<div id="circle_box">
<div id="palm_circle_left" class="circle centered"></div>
<div id="palm_circle_right" class="circle centered"></div>
</div>
<div id="output"></div>
<script src="http://127.0.0.1:8081/socket.io/socket.io.js"></script>
<script src="osc_stuff.js"></script>
<script src="leap_stuff.js"></script>
<button onClick="startWebSocket()">Start WebSocket</button>
<button onClick='sendOSCData()'>Send OSC Data</button>
<button onClick="sendOSCDataWithOSCJS()">Try osc.js</button>
</div>
</body>
</html>