-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
53 lines (47 loc) · 1.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Demo of a panorama viewer with LeapMotion</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {
background-color: #000000;
margin: 0px;
overflow: hidden;
}
#info {
position: absolute;
top: 0px; width: 100%;
color: #ffffff;
padding: 5px;
font-family:Monospace;
font-size:13px;
font-weight: bold;
text-align:center;
}
a {
color: #ffffff;
}
</style>
</head>
<body>
<div id="container"></div>
<script src="lib/three.js"></script>
<script src="lib/leap.js"></script>
<script src="lib/deepmerge.js"></script>
<script src="lib/LeapPano.js"></script>
<script type="text/javascript">
window.onload = function() {
pano = new LeapPano({container: 'container', files: ['images/basque.jpg'] })
pano.init()
Leap.loop({enableGestures: true}, function(frame) {
pano.refresh(frame)
})
}
function changeFile(file) {
pano.setFilePath(file)
}
</script>
</body>
</html>