forked from bradvin/OwlCarousel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
482 lines (418 loc) · 17.7 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
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Owl Carousel</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="jQuery Responsive Carousel - Owl Carusel">
<meta name="author" content="Bartosz Wojciechowski">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400,300,600,700' rel='stylesheet' type='text/css'>
<link href="assets/css/bootstrapTheme.css" rel="stylesheet">
<link href="assets/css/custom.css" rel="stylesheet">
<!-- Owl Carousel Assets -->
<link href="owl-carousel/owl.carousel.css" rel="stylesheet">
<link href="owl-carousel/owl.theme.css" rel="stylesheet">
<!-- Prettify -->
<link href="assets/js/google-code-prettify/prettify.css" rel="stylesheet">
<!-- Le fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="assets/ico/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="assets/ico/favicon.png">
</head>
<body>
<div id="top-nav" class="navbar 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>
<div class="nav-collapse collapse">
<ul class="nav pull-right">
<li><a href="#demo">Demo</a></li>
<li><a href="#more-demos">More Demos</a></li>
<li><a href="#how-to">How To</a></li>
<li><a href="#customizing">Customizing</a></li>
<li><a href="owl.carousel.zip" class="download" data-spy="affix" data-offset-top="450">Download</a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="header">
<div class="container">
<div class="row">
<div class="span5">
<img class="logo" src="assets/img/owl-logo.png" alt="Owl Logo">
</div>
<div class="span7">
<h1>OWL Carousel </h1>
<h3>Touch enabled jQuery plugin that lets you create beautiful responsive carousel slider.</h3>
<a class="btn btn-success btn-large" href="owl.carousel.zip">Download for FREE</a>
<p class="muted"><a class="muted" href="https://github.com/OwlFonk/OwlCarousel">Github</a> / v1.18 </p>
</div>
</div>
</div>
</div>
<div id="demo">
<div class="container">
<div class="row">
<div class="span12">
<h1>Demo</h1>
</div>
</div>
<div class="row">
<div class="span12">
<div id="owl-example" class="owl-carousel">
<div class="item darkCyan">
<img src="assets/img/demo-slides/touch.png" alt="Touch">
<h3>Touch</h3>
<h4>Can touch this</h4>
</div>
<div class="item forestGreen">
<img src="assets/img/demo-slides/grab.png" alt="Grab">
<h3>Grab</h3>
<h4>Can grab this</h4>
</div>
<div class="item orange">
<img src="assets/img/demo-slides/responsive.png" alt="Responsive">
<h3>Responsive</h3>
<h4>Fully responsive!</h4>
</div>
<div class="item yellow">
<img src="assets/img/demo-slides/css3.png" alt="CSS3">
<h3>CSS3</h3>
<h4>3D Acceleration.</h4>
</div>
<div class="item dodgerBlue">
<img src="assets/img/demo-slides/multi.png" alt="Multi">
<h3>Multiply</h3>
<h4>Owls on page.</h4>
</div>
<div class="item skyBlue">
<img src="assets/img/demo-slides/modern.png" alt="Modern Browsers">
<h3>Modern</h3>
<h4>Browsers Compatibility</h4>
</div>
<div class="item zombieGreen">
<img src="assets/img/demo-slides/zombie.png" alt="Zombie Browsers - old ones">
<h3>Zombie</h3>
<h4>Browsers Compatibility</h4>
</div>
<div class="item violet">
<img src="assets/img/demo-slides/controls.png" alt="Take Control">
<h3>Take Control</h3>
<h4>The way you you like</h4>
</div>
<div class="item yellowLight">
<img src="assets/img/demo-slides/feather.png" alt="Light">
<h3>Light</h3>
<h4>As a feather</h4>
</div>
<div class="item steelGray">
<img src="assets/img/demo-slides/tons.png" alt="Tons of Opotions">
<h3>Tons</h3>
<h4>of options</h4>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="more-demos">
<div class="container">
<div class="row">
<div class="span12">
<h1>More Demos</h1>
<h2>Awesome!</h2>
<p>Check more demos here! See what Owl can do.</p>
</div>
</div>
<div class="row demos-row">
<div class="span3">
<a href="demos/images.html" class="demo-box">
<div class="demo-wrapper demo-images clearfix">
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
</div>
<h3>Images</h3>
</a>
</div>
<div class="span3">
<a href="demos/full.html" class="demo-box">
<div class="demo-wrapper demo-full clearfix">
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
</div>
<h3>Full Width</h3>
</a>
</div>
<div class="span3">
<a href="demos/custom.html" class="demo-box">
<div class="demo-wrapper demo-custom clearfix">
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
<div class="demo-slide"><div class="bg"></div></div>
</div>
<h3>Custom</h3>
</a>
</div>
<div class="span3">
<a href="demos/one.html" class="demo-box">
<div class="demo-wrapper demo-one clearfix">
<div class="demo-slide"><div class="bg"></div></div>
</div>
<h3>One Slide</h3>
</a>
</div>
</div>
</div>
</div>
<div id="how-to">
<div class="container">
<div class="row">
<div class="span12">
<h1>How To Use</h1>
<h2>1. Load jQuery and include Owl Carousel plugin files</h2>
<p>To use Owl Carousel, you’ll need to make sure both the Owl and jQuery 1.7 or higher scripts are included.</p>
<pre class="pre-show prettyprint linenums">
<!-- Basic stylesheet -->
<link rel="stylesheet" href="owl-carousel/owl.carousel.css">
<!-- Default Theme -->
<link rel="stylesheet" href="owl-carousel/owl.theme.css">
<!-- You can use latest version of jQuery -->
<script src="jquery-1.9.1.min.js"></script>
<!-- Include js plugin -->
<script src="assets/owl-carousel/owl.carousel.js"></script>
</pre>
<h2>2. Set up your HTML</h2>
<p>You don't need any special markup. All you need is to wrap your divs inside the container element <div class="owl-carousel">. Class "owl-carousel" is mandatory to apply proper styles that come from owl.carousel.css file.</p>
<pre class="pre-show prettyprint linenums">
<div id="owl-example" class="owl-carousel">
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
<div> Your Content </div>
...
</div>
</pre>
<h2>3. Call the plugin</h2>
<p>Now call the Owl initializer function and your carousel is ready.</p>
<pre class="pre-show prettyprint linenums">
$(document).ready(function() {
$("#owl-example").owlCarousel();
});
</pre>
</div>
</div>
</div>
</div>
<div id="customizing">
<div class="container">
<div class="row">
<div class="span12">
<h1>Customizing</h1>
<h2>1. Options</h2>
<p>All of the options below are available to customize Owl Carousel.</p>
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Variable</th>
<th>Default</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="text-emp">slideSpeed</span></td>
<td>200</td>
<td>Slide speed in milliseconds</td>
</tr>
<tr>
<td><span class="text-emp">paginationSpeed</span></td>
<td>false</td>
<td>Pagination speed in milliseconds</td>
</tr>
<tr>
<td><span class="text-emp">autoPlay</span></td>
<td>false</td>
<td>Auto play per slide. Change to any integrer for example "paginationSpeed : 8000" to play every 8 seconds</td>
</tr>
<tr>
<td><span class="text-emp">goToFirst</span></td>
<td>true</td>
<td>Slide to first item if autoPlay reach end</td>
</tr>
<tr>
<td><span class="text-emp">goToFirstSpeed</span></td>
<td>1000</td>
<td>Slide speed of goToFirst option in milliseconds</td>
</tr>
<tr>
<td><span class="text-emp">stopOnHover</span></td>
<td>false</td>
<td>Set true to stop slides on hover(if autoPlay is on). Works only on non-touch devices.</td>
</tr>
<tr>
<td><span class="text-emp">navigation</span></td>
<td>false</td>
<td>Display "next" and "prev" buttons. Fully customizable. Note that for better control over navigation the div with arrows and pagination is outside your carousel wrapper</td>
</tr>
<tr>
<td><span class="text-emp">navigationText</span></td>
<td>["prev","next"]</td>
<td>You can cusomize your own text for navigation. To get empty buttons use false : "navigationText : false"</td>
</tr>
<tr>
<td><span class="text-emp">pagination</span></td>
<td>true</td>
<td>Show pagination.</td>
</tr>
<tr>
<td><span class="text-emp">paginationNumbers</span></td>
<td>false</td>
<td>Show numbers inside pagination buttons</td>
</tr>
<tr>
<td><span class="text-emp">responsive</span></td>
<td>true</td>
<td>You can use Owl Carousel on desktop-only websites too! Just change that to "false" to disable resposive capabilities</td>
</tr>
<tr>
<td><span class="text-emp">items</span></td>
<td>5</td>
<td>This variable allows you to set the maximum amount of items displayed at a time with the widest browser width</td>
</tr>
<tr>
<td><span class="text-emp">itemsDesktop</span></td>
<td>[1199,4]</td>
<td>This allows you to preset the number of slides visible with a particular browser width. The format is [x,y] whereby x=browser width and y=number of slides displayed. For example [1199,4] means that if(window<=1199){ show 4 slides per page}
Alternatively use "itemsDesktop: false" to override these settings.<br><br>To fully understand how it works check my <a href="demos/custom.html">Custom Demo</a></td>
</tr>
<tr>
<td><span class="text-emp">itemsDesktopSmall</span></td>
<td>[979,3]</td>
<td>As above.</td>
</tr>
<tr>
<td><span class="text-emp">itemsTablet</span></td>
<td>[768,2]</td>
<td>As above.</td>
</tr>
<tr>
<td><span class="text-emp">itemsMobile</span></td>
<td>[479,1]</td>
<td>As above</td>
</tr>
<tr>
<td><span class="text-emp">baseClass</span></td>
<td>"owl-carousel"</td>
<td>Automaticly added class for base CSS styles. Best not to change it if you don't need to.</td>
</tr>
<tr>
<td><span class="text-emp">theme</span></td>
<td>"owl-theme"</td>
<td>Default Owl CSS styles for navigation and buttons. Change it to match your own theme</td>
</tr>
</tbody>
</table>
<h2>2. Defaults</h2>
<p>Carousel default settings</p>
<pre class="pre-show prettyprint linenums">
$("#owl-example").owlCarousel({
//Basic Speeds
slideSpeed : 200,
paginationSpeed : 800,
//Autoplay
autoPlay : false,
goToFirst : true,
goToFirstSpeed : 1000,
// Navigation
navigation : false,
navigationText : ["prev","next"],
pagination : true,
paginationNumbers: true,
// Responsive
responsive: true,
items : 5,
itemsDesktop : [1199,4],
itemsDesktopSmall : [980,3],
itemsTablet: [768,2],
itemsMobile : [479,1],
// CSS Styles
baseClass : "owl-carousel",
theme : "owl-theme"
})
</pre>
<h2>3. API</h2>
<p>To use Owl Carousel API use delegate function.</p>
<pre class="pre-show prettyprint linenums">
//Initialize Plugin
$(".owl-carousel").owlCarousel()
//get carousel instance data and store it in variable owl
var owl = $(".owl-carousel").data('owlCarousel');
//Public methods
owl.next() // Go to next slide
owl.prev() // Go to previous slide
owl.goTo(x) // Go to x slide
owl.update() // Update Slide
owl.buildControlls() // Build Controlls
owl.destroyControlls() // Remove Controlls
owl.play() // Autoplay
owl.stop() // Autoplay Stop
</pre>
</div>
</div>
</div>
</div>
<div id="footer">
<div class="container">
<div class="row">
<div class="span12">
<h5>Bartosz Wojciechowski 2013 / @OwlFonk / <a href="mailto:[email protected]?subject=Hey Owl!">email</a></h5>
</div>
</div>
</div>
</div>
<script src="assets/js/jquery-1.9.1.min.js"></script>
<script src="owl-carousel/owl.carousel.js"></script>
<!-- Frontpage Demo -->
<script>
jQuery(document).ready(function($) {
$("#owl-example").owlCarousel();
});
$("body").data("page", "frontpage");
</script>
<script src="assets/js/bootstrap-collapse.js"></script>
<script src="assets/js/bootstrap-transition.js"></script>
<script src="assets/js/google-code-prettify/prettify.js"></script>
<script src="assets/js/application.js"></script>
<script>
var owldomain = window.location.hostname.indexOf("owlgraphic");
if(owldomain !== -1){
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41541058-1', 'owlgraphic.com');
ga('send', 'pageview');
}
</script>
</body>
</html>