-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
89 lines (89 loc) · 3.32 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/leanorama.css" />
<link rel="stylesheet" type="text/css" href="css/leanorama.hotspots.css" />
</head>
<body>
<div id="pano"></div>
<script src="js/modernizr.min.js"></script>
<script src="js/leanorama.js"></script>
<script src="js/leanorama.hotspot.js"></script>
<script>
var pano = new Leanorama({
selector: '#pano',
scenes: {
elevators: {
sides: {
front: 'pano/0000.jpg',
right: 'pano/0001.jpg',
back: 'pano/0002.jpg',
left: 'pano/0003.jpg',
up: 'pano/0004.jpg',
down: 'pano/0005.jpg',
},
hotspots: [
{
pitch: 0,
yaw: 90,
type: 'gangnam'
}
,{
pitch: 0,
yaw: 0,
text: 'Whats behind door #1?',
target: 'storaleve'
},{
pitch: 25,
yaw: 35
},{
pitch: 35,
yaw: 55
},{
pitch: 45,
yaw: 25
},{
pitch: 55,
yaw: 35
},{
pitch: 65,
yaw: 95
},{
pitch: 75,
yaw: 85
},{
pitch: 85,
yaw: 85
}
],
default: true
},
storaleve: {
sides: {
front: 'pano/0005.jpg',
right: 'pano/0003.jpg',
back: 'pano/0004.jpg',
left: 'pano/0002.jpg',
up: 'pano/0001.jpg',
down: 'pano/0000.jpg',
},
hotspots: [
{
pitch: 45,
yaw: 34,
text: 'Go Back',
target: 'elevators'
}
]
}
}
});
var g = pano._leanorama.querySelector('.leanorama-hotspot-gangnam');
var i = document.createElement('img');
i.src = 'oppa.gif';
i.width = 360;
i.height = 640;
g.appendChild(i);
</script>
</body>
</html>