-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathdemo.html
69 lines (58 loc) · 1.32 KB
/
demo.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
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="css/relight.css">
<style>
html, body { width:100%; height:100%; padding:0px; margin:0px; }
.relight { width:100%; height:100%; }
</style>
</head>
<body>
<div class="relight">
</div>
</body>
<script src="js/hammer.min.js"></script>
<script src="js/relight-core.js"></script>
<script src="js/relight-shaders.js"></script>
<script src="js/relight-canvas.js"></script>
<script src="js/relight-interface.js"></script>
<!-- <script src="relight-viewer.min.js"></script> -->
<script>
var url1 = 'test/bilinear18';
//var url2 = 'test/12563_front';
var relight = new RelightViewer('.relight',
{
layers: [
{
position: [0, 0],
rotation: 0,
scale: 1,
url:url1,
layout:"deepzoom",
visible: true,
scale: 0,
}
/* ,{
position: [0, 3000],
rotation: 0,
url:url1,
layout:"deepzoom",
scale: 1,
opacity: 0.5,
visible: true
} */
],
fit: true,
pos: { x:0, y:0, z:0, a:0 },
rotation: 0,
pagemap: { /*thumb: 'thumb.jpg', */size:200, autohide:1000 },
scale: 1.0,
background: [0.7, 0.7, 0.7, 1]
});
//relight.removeAction('fullscreen');
//relight.addAction('info', 'ski/info.svg', function());
</script>
<script>
</script>
</html>