forked from aike/thview.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
thview.html
38 lines (32 loc) · 1.06 KB
/
thview.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
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>ThView.js - JavaScript Spherical Image Viewer</title>
<script type="text/javascript" src="three.min.js"></script>
<script type="text/javascript" src="thview.js"></script>
</head>
<body>
<script type="text/javascript">
if (location.href.match(/^file:/))
document.write('<span style="color:#ff2222;">NOTE: ThView.js cannot work from local file. Use web server.</span>');
</script>
<h2>ThView.js - JavaScript Spherical Image Viewer</h2>
<div id="image1"></div>
<script type="text/javascript" >
var img1 = new ThView({id:'image1', file:'images/thview.jpg'});
</script>
<p>
click: toggle rotation / drag: move around / wheel: zoom
</p>
<div id="image2"></div>
<script type="text/javascript" >
var img2 = new ThView({
id:'image2', file:'images/thview2.jpg',
firstview:180,
zoom:100,
width:300, height:200,
rotation:true, speed:-30});
</script>
</body>
</html>