-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewer2.html
96 lines (86 loc) · 2 KB
/
viewer2.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
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Panorama Viewer</title>
<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: 16px;
font-weight: bold;
text-align: center;
background-color: rgba(0, 0, 0, 0.3);
}
#download {
position: absolute;
top: 5px;
right: 15px;
}
#mycanvas {
position: relative;
left: -50%;
}
#flash {
position: absolute;
z-index: 100;
height: 100%;
width: 100%;
}
#loading {
position: absolute;
width: 100%;
height: 100%;
background: url('./image/spinner-loader.gif') no-repeat center center;
}
a {
color: rgba(0, 0, 0, 0);
}
/*#snapshot:hover {
content: url('./image/snapshot_hover.png');
height: 50px;
width: 50px;
}*/
</style>
<script src="./js/jquery-1.11.2.min.js"></script>
<script src="./js/panofunc2.js"></script>
<script src="./js/three.min.js"></script>
<script src="./js/detect.min.js"></script>
<script src="./js/CanvasRenderer.js"></script>
<script src="./js/Projector.js"></script>
<script src="./js/stats.js"></script>
<script type="text/javascript" src="./json/fly.json"></script>
</head>
<body>
<div id="loading"></div>
<div style="position: absolute; left: 50%; top:10%">
<canvas id="mycanvas" width="800" height="600"></canvas>
</div>
<div id="flash">
<img src="./image/white.png">
</div>
<div id="container"></div>
<div id="info">
<p id="fov">Calculating...</p>
</div>
<div id="download">
<a href="#" id="snapshot">
<img src="./image/snapshot.png" height="50px" width="50px">
</a>
<a href="#" download="1.jpg" target="_blank" id="downLink">
<img src="./image/download.png" height="50px" width="50px">
</a>
</div>
<div id="Stats-output"></div>
</body>
</html>