forked from nathansearles/slidesjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
434 lines (385 loc) · 18.2 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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>SlidesJS, a responsive, CSS3 and touch based slideshow plugin for jQuery.</title>
<meta name="description" content="SlidesJS is a simple slideshow plugin for jQuery. Packed with a useful set of features to help novice and advanced developers alike create elegant and user-friendly slideshows.">
<meta name="author" content="Nathan Searles">
<!-- SlidesJS Required (if responsive): Sets the page width to the device width. -->
<meta name="viewport" content="width=device-width">
<!-- End SlidesJS Required -->
<meta property="og:title" content="SlidesJS, a simple slideshow plugin for jQuery">
<meta property="og:type" content="website">
<meta property="og:url" content="http://www.slidesjs.com">
<meta property="og:image" content="http://slidesjs.com/img/slidesjs-black.png">
<meta property="og:site_name" content="SlidesJS, a simple slideshow plugin for jQuery">
<!-- CSS -->
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- End CSS -->
<!-- Google Analytics Asynchronous Tracking -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2772036-11']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- End Google Analytics -->
<!-- BuySellAds Ad Code -->
<script type="text/javascript">
(function(){
var bsa = document.createElement('script');
bsa.type = 'text/javascript';
bsa.async = true;
bsa.src = 'http://s3.buysellads.com/ac/bsa.js';
(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(bsa);
})();
</script>
<!-- End BuySellAds Ad Code -->
</head>
<body data-spy="scroll" data-target=".navbar">
<!-- Start site navbar -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<img src="img/slidesjs.png" width="130" height="26" alt="SlidesJS" class="brand">
<div class="nav-collapse collapse">
<ul class="nav pull-right">
<li><a href="#slides-section" class="scrollto"><i class="icon-check icon-large"></i> Overview</a></li>
<li><a href="#examples" class="scrollto"><i class="icon-picture icon-large"></i> Examples</a></li>
<li><a href="#docs" class="scrollto"><i class="icon-file icon-large"></i> Docs</a></li>
<li><a href="#faq" class="scrollto"><i class="icon-question-sign icon-large"></i> Faq</a></li>
<li><a href="https://github.com/nathansearles/Slides/archive/SlidesJS-3.zip" class="track_download"><i class="icon-download icon-large"></i> Download</a></li>
<li><a href="https://spacebox.io/s/BbDhQ7iWGP" target="_blank" class="sbe-button btn btn-success btn-large donate track_donate"><i class="icon-thumbs-up icon-large"></i> Donate</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- End site navbar -->
<div class="alert alert-fixed-top">
<div class="container">
<strong>Welcome to the SlidesJS v3.0.x beta site!</strong> To check out the current production version of SlidesJS goto <a href="http://slidesjs.com/">http://slidesjs.com/</a>.
</div>
</div>
<!-- Start SlidesJS -->
<div class="container">
<div class="row">
<div class="span12">
<div id="slides-section" class="section">
<div id="slides">
<img src="img/example-slide-350-1.jpg" alt="Photo by: Missy S Link: http://www.flickr.com/photos/listenmissy/5087404401/">
<img src="img/example-slide-350-2.jpg" alt="Photo by: Daniel Parks Link: http://www.flickr.com/photos/parksdh/5227623068/">
<img src="img/example-slide-350-3.jpg" alt="Photo by: Mike Ranweiler Link: http://www.flickr.com/photos/27874907@N04/4833059991/">
<img src="img/example-slide-350-4.jpg" alt="Photo by: Stuart SeegerLink: http://www.flickr.com/photos/stuseeger/97577796/">
<a href="#" class="slidesjs-previous slidesjs-navigation"><i class="icon-chevron-left icon-large"></i></a>
<a href="#" class="slidesjs-next slidesjs-navigation"><i class="icon-chevron-right icon-large"></i></a>
</div>
</div>
</div>
</div>
</div>
<!-- End SlidesJS -->
<!-- Start main content -->
<div class="container">
<div class="row">
<div class="span8">
<!-- Overview -->
<div id="overview" class="section">
<h1 class="page_header"><i class="icon-check"></i> Overview</h1>
<p>SlidesJS is a responsive, CSS3 and touch supported slideshow plugin for jQuery. Packed with a useful set of features to help novice and advanced developers alike create elegant and user-friendly slideshows.</p>
<h2 class="page_header">Features</h2>
<div class="row">
<div class="span4">
<ul class="features">
<li><i class="icon-resize-horizontal icon-large"></i> Responsive</li>
<li><i class="icon-bolt icon-large"></i>CSS3 animations</li>
</ul>
</div>
<div class="span4">
<ul class="features">
<li> <i class="icon-mobile-phone icon-large"></i> Touch support</li>
<li> <i class="icon-wrench icon-large"></i> Easy setup</li>
</ul>
</div>
</div>
<hr>
<div class="btns">
<a href="https://github.com/nathansearles/Slides/archive/SlidesJS-3.zip" class="btn btn-inverse btn-large push-right track_download"><i class="icon-download icon-large"></i> Download</a>
<a href="https://spacebox.io/s/BbDhQ7iWGP" target="_blank" class="sbe-button btn btn-success btn-large track_donate"><i class="icon-thumbs-up icon-large"></i> Donate</a>
</div>
<hr>
<p>If you're looking for support please visit the <a href="http://groups.google.com/group/slidesjs">SlidesJS forum</a>. SlidesJS is distributed with limited support and on an "as is" basis.</p>
<p>If you're interested in contributing to the SlidesJS code base you can check it out on <a href="https://github.com/nathansearles/Slides/tree/SlidesJS-3">GitHub</a>.</p>
<p>SlidesJS is compatible with all modern web browsers and jQuery 1.7.1+.</p>
</div>
<!-- Examples -->
<div id="examples" class="section">
<h1 class="page_header"><i class="icon-picture"></i> Examples</h1>
<small>These examples are also included in the <a href="https://github.com/nathansearles/Slides/archive/SlidesJS-3.zip" class="track_download">download</a>.</small>
<ul class="examples">
<li><a href="/examples/standard/">Standard</a></li>
<li><a href="/examples/playing/">Playing</a></li>
<li><a href="/examples/multiple/">Multiple slideshows</a></li>
<li><a href="/examples/basic/">Basic (unstyled)</a></li>
<li>More examples coming soon!</li>
</ul>
</div>
<!-- Docs -->
<div id="docs" class="section">
<h1 class="page_header"><i class="icon-file"></i> Docs</h1>
<h2 id="html" class="page_header">Basic markup</h2>
<pre><code><!doctype html>
<head>
<style>
#slides {
display:none;
}
</style>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="jquery.slides.min.js"></script>
<script>
$(function(){
$("#slides").slidesjs();
});
</script>
</head>
<body>
<div id="slides">
<img src="http://placehold.it/940x528">
<img src="http://placehold.it/940x528">
<img src="http://placehold.it/940x528">
<img src="http://placehold.it/940x528">
<img src="http://placehold.it/940x528">
</div>
</body></code></pre>
</div>
<h2 id="options" class="page_header">Options</h2>
<div id="widthandheight" class="expand">
<h3>width (number) & height (number)</h3>
<p>Set width and height of the slideshow. <a href="#" class="show"><i class="icon-plus-sign"></i> Show example</a></p>
<div class="content">
<div class="innner">
<pre><code>$(function(){
$("#slides").slidesjs({
width: 700,
height: 393
});
});</code></pre>
</div>
</div>
<small><i class="icon-warning-sign"></i> This must be defined.</small>
</div>
<div id="start" class="expand">
<h3>start (number)</h3>
<p>Set the first slide in the slideshow. <a href="#" class="show"><i class="icon-plus-sign"></i> Show example</a></p>
<div class="content">
<div class="innner">
<pre><code>$(function(){
$("#slides").slidesjs({
start: 3
});
});</code></pre>
</div>
</div>
<small><i class="icon-ok"></i> Default value is 1.</small>
</div>
<div id="navigation" class="expand">
<h3>navigation (object)</h3>
<p>Next and previous button settings. <a href="#" class="show"><i class="icon-plus-sign"></i> Show example</a></p>
<div class="content">
<div class="innner">
<pre><code>$(function(){
$("#slides").slidesjs({
navigation: {
active: true,
# [boolean] Create next and previous buttons.
# You can set to false and use your own next/prev buttons.
# User defined next/prev buttons must have the following:
# previous: class="slidesjs-previous slidesjs-navigation"
# next: class="slidesjs-next slidesjs-navigation"
effect: "slide"
# [string] Can be either "slide" or "fade".
}
});
});</code></pre>
</div>
</div>
</div>
<div id="pagination" class="expand">
<h3>pagination (object)</h3>
<p>Pagination settings <a href="#" class="show"><i class="icon-plus-sign"></i> Show example</a></p>
<div class="content">
<div class="innner">
<pre><code>$(function(){
$("#slides").slidesjs({
pagination: {
active: true,
# [boolean] Create pagination items.
# You cannot use your own pagination.
effect: "slide"
# [string] Can be either "slide" or "fade".
}
});
});</code></pre>
</div>
</div>
</div>
<div id="play" class="expand">
<h3>play (object)</h3>
<p>Play and stop button setting. <a href="#" class="show"><i class="icon-plus-sign"></i> Show example</a></p>
<div class="content">
<div class="innner">
<pre><code>$(function(){
$("#slides").slidesjs({
play: {
active: true,
# [boolean] Create the play and stop buttons.
# You cannot use your own pagination.
effect: "slide",
# [string] Can be either "slide" or "fade".
interval: 5000,
# [number] Time spent on each slide in milliseconds.
auto: false,
# [boolean] Start playing the slideshow on load.
swap: true
# [boolean] show/hide stop and play buttons
}
});
});</code></pre>
</div>
</div>
</div>
<div id="effect" class="expand">
<h3>effect (object)</h3>
<p>Effect setting. <a href="#" class="show"><i class="icon-plus-sign"></i> Show example</a></p>
<div class="content">
<div class="innner">
<pre><code>$(function(){
$("#slides").slidesjs({
effect: {
slide: {
# Slide effect settings.
speed: 200,
# [number] Speed in milliseconds of the slide animation.
easing: ""
# easing plug-in required: http://gsgd.co.uk/sandbox/jquery/easing/
},
fade: {
speed: 300,
# [number] Speed in milliseconds of the fade animation.
easing: "",
# easing plug-in required: http://gsgd.co.uk/sandbox/jquery/easing/
crossfade: true
# [boolean] Cross-fade the transition.
}
}
});
});</code></pre>
</div>
</div>
</div>
<div id="controls" class="expand">
<h3>callback (function)</h3>
<p>SlidesJS callbacks. <a href="#" class="show"><i class="icon-plus-sign"></i> Show example</a></p>
<div class="content">
<div class="innner">
<pre><code>$(function(){
$("#slides").slidesjs({
callback: {
loaded: function() {
# Do something awesome!
},
start: function() {
# Do something awesome!
},
complete: function() {
# Do something awesome!
}
}
});
});</code></pre>
</div>
</div>
</div>
<!-- faq -->
<div id="faq" class="section">
<h1 class="page_header"><i class="icon-question-sign icon-large"></i> Faq</h1>
<h3>Are there any other effects besides slide or fade?</h3>
<p>To keep SlidesJS as simple as possible it only includes a slide or fade effect. Adding other effects would over complicate and bloat the plugin.</p>
<h3>Can I use SlidesJS on a commercial site or include it in a template that I'm selling?</h3>
<p>Yes you can, but you must keep the copyright and licensing information with the plugin. And if you've found SlidesJS useful it'd awesome if you'd show your support by giving a <a href="https://spacebox.io/s/BbDhQ7iWGP" class="sbe-button track_donate" target="_blank">donation</a>. If you have additional questions about licensing check out the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache license</a> which SlidesJS is licensed under.</p>
<h3>I can't figure out how to add SlidesJS to my site. Can you help me?</h3>
<p>SlidesJS requires some basic understanding of HTML, CSS and jQuery. If you need help with adding SlidesJS to your site please post a question at the <a href="http://groups.google.com/group/slidesjs">SlidesJS forum</a>. Most issues can be resolved by using your browsers built-in developer tools.</p>
</div>
<hr>
</div> <!-- end main .span8 -->
<div class="span4">
<div id="ad_packs">
<!-- BuySellAds Zone Code -->
<div id="bsap_1274362" class="bsarocks bsap_e1c36c6d71b660012e27f395930d4761"></div>
<!-- End BuySellAds Zone Code -->
</div>
<div class="social-buttons clearfix">
<ul>
<li class="ctwitter"><a href="http://twitter.com/share" class="socialite twitter-share" data-text="SlidesJS, a simple slideshow plugin for jQuery." data-url="http://slidesjs.com" data-count="vertical" data-via="slidesjs" rel="nofollow" target="_blank"><span class="vhidden">Share on Twitter</span></a></li>
<li class="cgoogle"><a href="https://plus.google.com/share?url=http://slidesjs.com" class="socialite googleplus-one" data-size="tall" data-href="http://slidesjs.com" rel="nofollow" target="_blank"><span class="vhidden">Share on Google+</span></a></li>
<li class="cfacebook"><a href="http://www.facebook.com/sharer.php?u=http://slidesjs.com&t=SlidesJS, a simple slideshow plugin for jQuery." class="socialite facebook-like" data-href="http://slidesjs.com" data-send="false" data-layout="box_count" data-width="60" data-show-faces="false" rel="nofollow" target="_blank"><span class="vhidden">Share on Facebook</span></a></li>
<li class="cpinterest"><a href="http://pinterest.com/pin/create/button/?url=http://slidesjs.com/&media=http://slidesjs.com/img/slidesjs-black.png&description=SlidesJS, a simple slideshow plugin for jQuery" class="socialite pinterest-pinit" data-count-layout="vertical"><span class="vhidden">Pin It!</span></a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="footer" class="section">
<div class="container">
<div class="row">
<div class="span12">
<p>This site has been built using <a href="http://fortawesome.github.com/Font-Awesome/" target="_blank">Font Awesome</a>, <a href="http://twitter.github.com/bootstrap/" target="_blank">Twitter Bootstrap</a>, <a href="http://softwaremaniacs.org/soft/highlight/en/" target="_blank">Highlight.js</a>, <a href="http://placehold.it/" target="_blank">Placehold.it</a> and <a href="http://subtlepatterns.com/" target="_blank">Subtle Patterns</a>.</p>
<p>Want to advertise on this site? Check out ads via <a href="http://bsa.ly/jec">BuySellAds</a>.</p>
<p>SlidesJS is licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">Apache license</a>. © 2013 <a href="http://nathansearles.com" target="_blank">Nathan Searles</a>. All rights reserved.</p>
</div>
</div>
</div>
</div>
<!-- SlidesJS Required: Link to jQuery -->
<script src="http://code.jquery.com/jquery-1.9.0.min.js"></script>
<!-- End SlidesJS Required -->
<!-- JavaScript -->
<script src="js/plugins.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/script.js"></script>
<script src="https://spacebox.io/embed/js/embed-v1.js"></script>
<!-- End JavaScript -->
<!-- Highlight.js -->
<script>
hljs.tabReplace = ' ';
hljs.initHighlightingOnLoad();
</script>
<!-- End Highlight.js -->
<!-- SlidesJS Required: Link to jquery.slides.js -->
<script src="js/jquery.slides.min.js"></script>
<!-- End SlidesJS Required -->
<!-- SlidesJS Required: Initialize SlidesJS with a jQuery doc ready -->
<script>
$(function() {
$('#slides').slidesjs({
width: 940,
height: 350,
navigation: false
});
});
</script>
<!-- End SlidesJS Required -->
</body>
</html>