-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathexample.html
101 lines (79 loc) · 2.61 KB
/
example.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
97
98
99
100
101
<!DOCTYPE HTML>
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7"><![endif]-->
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8"><![endif]-->
<!--[if IE 8]><html class="no-js lt-ie9"><![endif]-->
<!--[if gt IE 8]><!--><html class="no-js"><!--<![endif]-->
<head>
<title>Tikslus 360 examples</title>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/tikslus360.js"></script>
<script type="text/javascript" src="js/rainbow.min.js"></script>
<link rel="stylesheet" href="css/normalize.css" />
<link rel="stylesheet" href="css/tikslus360.css" />
<link rel="stylesheet" href="css/github.css" />
<style>
body{
padding:20px;
}
</style>
</head>
<body>
<h1 class="main_heading">Tikslus 360</h1>
<h4 class="heading">Examples</h4>
<h2 class="medium_heading">Example 1 - auto rotate off </h2>
<p>HTML</P>
<PRE>
<code data-language="html">
<div id="view360">
<a href="#" class="autorotate">Auto rotate</a>
</div>
</code>
</PRE>
<p>Javascript</p>
<pre>
<code data-language="javascript">
$(document).ready(function(){
$("#view360").tikslus360({imageDir:'examples/car',imageCount:36,imageExt:'jpg',canvasID:'mycar',canvasWidth:640,canvasHeight:480});
});
</code>
</pre>
<div id="view360">
<a href="#" class="autorotate">Auto rotate</a>
</div>
<script type="text/javascript" src="js/tikslus360.js"></script>
<link rel="stylesheet" href="css/tikslus360.css" />
<script language="javascript">
$(window).load(function(){
$("#view360").tikslus360({imageDir:'images',imageCount:36,imageExt:'jpg',canvasID:'mycar',canvasWidth:640,canvasHeight:480,autoRotate:false});
});
</script>
<p class="note">
Click and drag to zoom the image.
</p>
<h2 class="medium_heading">Example 2 - auto rotate on </h2>
<p>HTML</P>
<PRE>
<code data-language="html">
<div id="view360_example1">
<a href="#" class="autorotate">Auto rotate</a>
</div>
</code>
</PRE>
<p>Javascript</p>
<pre>
<code data-language="javascript">
$(document).ready(function(){
$("#view360_example1").tikslus360({imageDir:'examples/car',imageCount:36,imageExt:'jpg',canvasID:'canvas1',canvasWidth:640,canvasHeight:480,autoRotate:true});
});
</code>
</pre>
<div id="view360_example">
<a href="#" class="autorotate">Auto rotate</a>
</div>
<script language="javascript">
$(window).load(function(){
$("#view360_example").tikslus360({imageDir:'images',imageCount:36,imageExt:'jpg',canvasID:'canvas1',canvasWidth:640,canvasHeight:480,autoRotate:true});
});
</script>
</body>
</html>