-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
130 lines (125 loc) · 6.83 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/syntaxHighlighting.css" type="text/css" />
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="src/css/jquery-snapmotion.css" type="text/css" />
<script src="js/html5.js"></script>
<script src="js/shCore.js"></script>
<script src="js/shBrushXml.js"></script>
<script src="js/shBrushCss.js"></script>
<script src="js/shBrushJScript.js"></script>
<script src="src/js/jquery-1.4.2.min.js"></script>
<script src="src/js/jquery-snapmotion.js"></script>
<!--[if IE 6]>
<script src="js/DD_belatedPNG_0.0.8a.js"></script>
<script>
DD_belatedPNG.fix('h1, span.jQueryLogo, div.snapmotion-controls ul li, ul.controls li a');
</script>
<![endif]-->
</head>
<body>
<section id="container">
<header>
<h1><a href="/">SnapMotion</a></h1>
<span class="jQueryLogo">jQuery plugin</span>
</header>
<section class="main">
<ul id="slideshow">
<li><img src="src/img/test_image_1.jpg" alt="Test Image 1" width="960" height="399" /><span><h3>Heading 1</h3><p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p></span></li>
<li><img src="src/img/test_image_2.jpg" alt="Test Image 2" width="960" height="399" /><span><h3>Heading 2</h3><p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p></span></li>
<li><img src="src/img/test_image_3.jpg" alt="Test Image 3" width="960" height="399" /><span><h3>Heading 3</h3><p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p></span></li>
<li><img src="src/img/test_image_4.jpg" alt="Test Image 4" width="960" height="399" /><span><h3>Heading 4</h3><p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p></span></li>
<li><img src="src/img/test_image_5.jpg" alt="Test Image 5" width="960" height="399" /><span><h3>Heading 5</h3><p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p></span></li>
<li><img src="src/img/test_image_6.jpg" alt="Test Image 5" width="960" height="399" /><span><h3>Heading 6</h3><p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p></span></li>
</ul>
<div class="content">
<h2><span>What is it?</span></h2>
<p>SnapMotion is a free, open source (<a href="http://www.opensource.org/licenses/mit-license.html">MIT License</a>) jQuery plugin. It is easily integrated into your website.</p>
<h2><span>Compatibility</span></h2>
<p>Firefox 3+, Chrome 5+, Safari 3+, Opera 9+, IE6+.</p>
<h2><span>Demo</span></h2>
<p>View our demonstrations:</p>
<ul>
<li><a href="src/example1.html">Example 1</a> <em>(slideX)</em></li>
<li><a href="src/example2.html">Example 2</a> <em>(slideY)</em></li>
<li><a href="src/example3.html">Example 3</a> <em>(fade)</em></li>
</ul>
<h2><span>Features</span></h2>
<p>This plugin was built to make creating a slideshow on your website extremely simple and painless. By including the few files provided in this package, you'll be up and running within minutes.</p>
<ul>
<li>Auto-sliding</li>
<li>Image titles & captions</li>
<li>Flexible configuration</li>
</ul>
<h2><span>Documentation</span></h2>
<p>Firstly, you'll need to reference the SnapMotion JavaScript and CSS files within your <head> tag.</p>
<pre class="brush: html">
<script src="js/jquery.snapmotion.js"></script>
<link rel="stylesheet" href="css/snapmotion.css" type="text/css" /></pre>
<p>Create your slides using a <ul> with a <li> for each slide. Each <li> should include the slide <img /> and a <span> tag containing any text you'd like to display on the slide.</p>
<p>For example:</p>
<pre class="brush: html">
<ul id="slideshow">
<li>
<img src="img/test_image_1.jpg" alt="Test Image 1" width="960" height="400" />
<span>
<h3>Heading 1</h3>
<p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p>
</span>
</li>
<li>
<img src="img/test_image_2.jpg" alt="Test Image 2" width="960" height="400" />
<span>
<h3>Heading 2</h3>
<p>Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet.</p>
</span>
</li>
</ul></pre>
<p>Finally, call the SnapMotion() method on your slideshow. For example:</p>
<pre class="brush: js">
$("ul#slideshow").SnapMotion();</pre>
<p>Optional parameters include:</p>
<ul>
<li><em>slideWidth</em> (int, the width of a slide)</li>
<li><em>slideHeight</em> (int, the height of a slide)</li>
<li><em>showCaption</em> (boolean, whether to show a caption)</li>
<li><em>captionWidth</em> (int, the width of the caption area)
<li><em>captionHeight</em> (int, the height of the caption area)
<li><em>showControls</em> (boolean, whether to show next/previous controls)</li>
<li><em>controlIndentX</em> (int, the indentation of the 'controls' for the slideshow, in pixels, from the left of each slide)</li>
<li><em>controlIndentY</em> (int, the indentation of the 'controls' for the slideshow, in pixels, from the top of each slide)</li>
<li><em>animationLength</em> (int, the length, in milliseconds, of each slide transition)</li>
<li><em>delay</em> (int, the length, in milliseconds, between each slide transition)</li>
<li><em>transition</em> (string, <em>slideX (default)</em>, <em>slideY</em>, <em>fade</em>)</li>
</ul>
<pre class="brush: js">
<script type="text/javascript">
$(document).ready(function(){
$("ul#slideshow").SnapMotion({
'slideWidth' : 960,
'controlIndent' : 640,
'animationLength' : 375,
'delay' : 7500,
'transition' : 'slideY'
});
});
</script></pre>
</div>
</section>
<footer>
<p><a href="http://snapshotmedia.co.uk/">Web Design York</a> - <a href="http://snapshotmedia.co.uk/">Snapshot Media</a> © 2010</p>
</footer>
<script type="text/javascript">
$(document).ready(function(){
SyntaxHighlighter.all();
$("ul#slideshow").SnapMotion();
setTimeout(function(){
$("div.toolbar").hide();
}, 1000);
});
</script>
</section>
</body>
</html>