-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·408 lines (360 loc) · 18.1 KB
/
index.html
File metadata and controls
executable file
·408 lines (360 loc) · 18.1 KB
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
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>BWAY jQuery Image Slider Plugin</title>
<meta name="description" content="Very easy to use jQuery image slider with option for Horizontal or Vertical axis and infinite loop.">
<meta name="author" content="Bway">
<link rel="icon" href="favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="container">
<div class="logo"><img src="imgs/logo.png" /></div>
<h1>Bway Image Slider v1.0.6<span> [jQuery plugin]</span></h1>
<h4>Allows vertical or horizontal axis usage.</h4>
<p>Very easy to use and responsive jQuery image slider plugin with option for Horizontal or Vertical axis and infinite loop.<br />Includes also touch events, and current/total information.</p>
<p><strong>v1.0.6</strong> Loader controlable. Since you have <code>.loader-overlay</code> in your container just use <code>loader : true</code>. (we are using some css loaders from the awesome <a href="http://tobiasahlin.com/spinkit/" target="_blank">SpinKit project</a>)</p>
<p><strong>v1.0.5</strong> Different objects size allowed in 'x' axis.</p>
<p><strong>v1.0.4</strong> Allows keyboard controls. <code>keyboard : true</code></p>
<p><strong>v1.0.3</strong> Includes image counter. Just needs to include <code>.image-current</code> and <code>.image-total</code> classes.</p>
<p><strong>v1.0.2</strong> Allows <code><a></code> or <code><img></code> as list elements.</p>
<p><strong>v1.0.1</strong> Enables touch actions, using jquery.hammer.js</p>
<h2>Download</h2>
<p>You can Download this plugin from <a href="https://github.com/bway-dev/bway-image-slider" target="_blank">our github repository</a>.</p>
<h2>Setup...</h2>
<h4>Load jQuery and include bway-image-slider plugin</h4>
<pre><script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="jquery.bway.imageslider.min.js"></script></pre>
<br />
<p>If you want touch events, please load also hammer.js before this plugin, as you see in the lines below:</p>
<pre><script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/g/hammerjs@2.0.4,jquery.hammerjs@2.0.0"></script>
<script src="jquery.bway.imageslider.min.js"></script></pre>
<br />
<h4>Place your HTML markup</h4>
with <code><img></code> elements (in this example we are including a loader)<br />
for this and other loader code visit this <a href="http://tobiasahlin.com/spinkit/" target="_blank">project</a>
<br />
<br />
<pre><div id="your-gallery">
<div class="viewport">
<!-- LOADER (optional) -->
<div class="loader-overlay">
<div class="sk-circle">
<div class="sk-circle1 sk-child"></div>
<div class="sk-circle2 sk-child"></div>
<div class="sk-circle3 sk-child"></div>
<div class="sk-circle4 sk-child"></div>
<div class="sk-circle5 sk-child"></div>
<div class="sk-circle6 sk-child"></div>
<div class="sk-circle7 sk-child"></div>
<div class="sk-circle8 sk-child"></div>
<div class="sk-circle9 sk-child"></div>
<div class="sk-circle10 sk-child"></div>
<div class="sk-circle11 sk-child"></div>
<div class="sk-circle12 sk-child"></div>
</div>
</div>
<!-- end of LOADER (optional) -->
<input type="button" class="buttons prev" value="<">
<ul class="overview">
<li><img src="path-to-your-image"></li>
<li><img src="path-to-your-image"></li>
<li><img src="path-to-your-image"></li>
<li><img src="path-to-your-image"></li>
</ul>
<input type="button" class="buttons next" value=">">
</div>
</div></pre>
<br />
or if you prefer <code><a></code> elements (in this example we are NOT including a loader)
<br />
<br />
<pre><div id="your-gallery">
<div class="viewport">
<input type="button" class="buttons prev" value="<">
<ul class="overview">
<li><a href="#" style="background-image: url('path-to-your-image');"></a></li>
<li><a href="#" style="background-image: url('path-to-your-image');"></a></li>
<li><a href="#" style="background-image: url('path-to-your-image');"></a></li>
<li><a href="#" style="background-image: url('path-to-your-image');"></a></li>
</ul>
<input type="button" class="buttons next" value=">">
</div>
</div></pre>
<br />
<h4>Initialization</h4>
<p>Simple initialization</p>
<pre>$('#your-gallery').bwayImageSlider();</pre>
<br />
<p>initializing with some options</p>
<pre>$('#your-gallery').bwayImageSlider({
axis : 'y', // default 'x'
itemMargin : 14, // margin between items, default 10
speed : 500, // miliseconds, default 1500
loop : true,
keyboard : true,
loader : true
});</pre>
<br />
<h2>Examples</h2>
<p>Below you can find an example of the plugin in vertical and horizontal axis, both with the possibility of infinite loop.</p>
<div class="examples container">
<h4>HORIZONTAL (no loop)</h4>
<div class="col-xs-12 col-sm-12 col-md-12 sample" id="example1">
<div class="viewport">
<!-- LOADER (optional) -->
<div class="loader-overlay">
<div class="sk-cube-grid">
<div class="sk-cube sk-cube1"></div>
<div class="sk-cube sk-cube2"></div>
<div class="sk-cube sk-cube3"></div>
<div class="sk-cube sk-cube4"></div>
<div class="sk-cube sk-cube5"></div>
<div class="sk-cube sk-cube6"></div>
<div class="sk-cube sk-cube7"></div>
<div class="sk-cube sk-cube8"></div>
<div class="sk-cube sk-cube9"></div>
</div>
</div>
<!-- end of LOADER (optional) -->
<input type="button" class="buttons prev" value="">
<div class="overview">
<ul>
<li><img src="imgs/image4.jpeg"></li>
<li><img src="imgs/image2.jpeg"></li>
<li><img src="imgs/image9.jpeg"></li>
<li><img src="imgs/image10.jpeg"></li>
<li><img src="imgs/image8.jpeg"></li>
<li><img src="imgs/image3.jpeg"></li>
<li><img src="imgs/image1.jpeg"></li>
<li><img src="imgs/image5.jpeg"></li>
<li><img src="imgs/image6.jpeg"></li>
<li><img src="imgs/image7.jpeg"></li>
</ul>
</div>
<input type="button" class="buttons next" value="">
</div>
<pre>$('#example1').bwayImageSlider({
axis : 'x',
itemMargin : 14,
speed : 500,
loop : false,
keyboard : true,
loader : true
});</pre>
</div>
<h4>HORIZONTAL + INFINITE LOOP</h4>
<div class="col-xs-12 col-sm-12 col-md-12 sample" id="example2">
<div class="viewport">
<!-- LOADER (optional) -->
<div class="loader-overlay">
<div class="sk-circle">
<div class="sk-circle1 sk-child"></div>
<div class="sk-circle2 sk-child"></div>
<div class="sk-circle3 sk-child"></div>
<div class="sk-circle4 sk-child"></div>
<div class="sk-circle5 sk-child"></div>
<div class="sk-circle6 sk-child"></div>
<div class="sk-circle7 sk-child"></div>
<div class="sk-circle8 sk-child"></div>
<div class="sk-circle9 sk-child"></div>
<div class="sk-circle10 sk-child"></div>
<div class="sk-circle11 sk-child"></div>
<div class="sk-circle12 sk-child"></div>
</div>
</div>
<!-- end of LOADER (optional) -->
<input type="button" class="buttons prev" value="">
<div class="overview">
<ul>
<li><img src="imgs/image6.jpeg"></li>
<li><img src="imgs/image10.jpeg"></li>
<li><img src="imgs/image8.jpeg"></li>
<li><img src="imgs/image1.jpeg"></li>
<li><img src="imgs/image3.jpeg"></li>
<li><img src="imgs/image9.jpeg"></li>
<li><img src="imgs/image2.jpeg"></li>
<li><img src="imgs/image4.jpeg"></li>
<li><img src="imgs/image7.jpeg"></li>
<li><img src="imgs/image5.jpeg"></li>
</ul>
</div>
<input type="button" class="buttons next" value="">
</div>
<pre>$('#example2').bwayImageSlider({
axis : 'x',
itemMargin : 14,
speed : 500,
loop : true,
keyboard : true,
loader : true
});</pre>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 sample" id="example3">
<h4>VERTICAL (no loop)</h4>
<p class="text-center">with <code><a></code> elements</p>
<div class="viewport">
<!-- LOADER (optional) -->
<div class="loader-overlay">
<div class="sk-cube-grid">
<div class="sk-cube sk-cube1"></div>
<div class="sk-cube sk-cube2"></div>
<div class="sk-cube sk-cube3"></div>
<div class="sk-cube sk-cube4"></div>
<div class="sk-cube sk-cube5"></div>
<div class="sk-cube sk-cube6"></div>
<div class="sk-cube sk-cube7"></div>
<div class="sk-cube sk-cube8"></div>
<div class="sk-cube sk-cube9"></div>
</div>
</div>
<!-- end of LOADER (optional) -->
<input type="button" class="buttons prev" value="">
<div class="overview">
<ul>
<li><a href="#" style="background-image: url('imgs/image4.jpeg');"></a></li>
<li><a href="#" style="background-image: url('imgs/image2.jpeg');"></a></li>
<li><a href="#" style="background-image: url('imgs/image6.jpeg');"></a></li>
<li><a href="#" style="background-image: url('imgs/image7.jpeg');"></a></li>
<li><a href="#" style="background-image: url('imgs/image9.jpeg');"></a></li>
<li><a href="#" style="background-image: url('imgs/image1.jpeg');"></a></li>
<li><a href="#" style="background-image: url('imgs/image3.jpeg');"></a></li>
<li><a href="#" style="background-image: url('imgs/image5.jpeg');"></a></li>
<li><a href="#" style="background-image: url('imgs/image8.jpeg');"></a></li>
</ul>
</div>
<input type="button" class="buttons next" value="">
</div>
<pre>$('#example3').bwayImageSlider({
axis : 'y',
itemMargin : 14,
speed : 500,
loop : false,
loader : true
});</pre>
</div>
<div class="col-xs-12 col-sm-6 col-md-6 sample" id="example4">
<h4>VERTICAL + INFINITE LOOP</h4>
<p class="text-center">with <code><img></code> elements</p>
<div class="viewport">
<!-- LOADER (optional) -->
<div class="loader-overlay">
<div class="sk-cube-grid">
<div class="sk-cube sk-cube1"></div>
<div class="sk-cube sk-cube2"></div>
<div class="sk-cube sk-cube3"></div>
<div class="sk-cube sk-cube4"></div>
<div class="sk-cube sk-cube5"></div>
<div class="sk-cube sk-cube6"></div>
<div class="sk-cube sk-cube7"></div>
<div class="sk-cube sk-cube8"></div>
<div class="sk-cube sk-cube9"></div>
</div>
</div>
<!-- end of LOADER (optional) -->
<input type="button" class="buttons prev" value="">
<div class="overview">
<ul>
<li><img src="imgs/image1.jpeg"></li>
<li><img src="imgs/image2.jpeg"></li>
<li><img src="imgs/image3.jpeg"></li>
<li><img src="imgs/image4.jpeg"></li>
<li><img src="imgs/image5.jpeg"></li>
<li><img src="imgs/image6.jpeg"></li>
<li><img src="imgs/image7.jpeg"></li>
<li><img src="imgs/image8.jpeg"></li>
<li><img src="imgs/image9.jpeg"></li>
</ul>
</div>
<input type="button" class="buttons next" value="">
</div>
<pre>$('#example4').bwayImageSlider({
axis : 'y',
itemMargin : 14,
speed : 500,
loop : true,
loader : true
});</pre>
</div>
</div>
<h2>License</h2>
<p>The JavaScript code in this page is free software: you can
redistribute it and/or modify it under the terms of the GNU
General Public License (GNU GPL) as published by the Free Software
Foundation, either version 3 of the License, or (at your option)
any later version. The code is distributed WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.</p>
<p>As additional permission under GNU GPL version 3 section 7, you
may distribute non-source (e.g., minimized or compacted) forms of
that code without the copy of the GNU GPL normally required by
section 4, provided you include this license notice and a URL
through which recipients can access the Corresponding Source.</p>
<h2>Contribute</h2>
<p>If you find this plugin useful, you can donate on the link below. Thank you.</p>
<div class="col-xs-12 col-md-12">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="NNQLM9BMWFTW8">
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypalobjects.com/pt_PT/i/scr/pixel.gif" width="1" height="1">
</form>
</div>
</div>
<footer class="container-fluid">
<p>© Bway 2016 - All rights reserved</p>
</footer>
</div> <!-- /container --> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="//cdn.jsdelivr.net/g/hammerjs@2.0.4,jquery.hammerjs@2.0.0"></script>
<script src="js/jquery.bway.imageslider.min.js"></script>
<script type="text/javascript">
$(document).on('ready', function(){
$('#example1').bwayImageSlider({
axis : 'x', // default 'x'
itemMargin : 14, // margin between items, default 10
speed : 500, // miliseconds, default 1500
loop : false,
keyboard : true,
loader : true
});
$('#example2').bwayImageSlider({
axis : 'x', // default 'x'
itemMargin : 14, // margin between items, default 10
speed : 500, // miliseconds, default 1500
loop : true,
keyboard : true,
loader : true
});
$('#example3').bwayImageSlider({
axis : 'y', // default 'x'
itemMargin : 14, // margin between items, default 10
speed : 500, // miliseconds, default 1500
loop : false,
loader : true
});
$('#example4').bwayImageSlider({
axis : 'y', // default 'x'
itemMargin : 14, // margin between items, default 10
speed : 500, // miliseconds, default 1500
loop : true,
loader : true
});
});
</script>
</body>
</html>