Skip to content

Commit 793e645

Browse files
author
Constantin
committed
Added hideBarsOnMobile option, clean up
1 parent 1066ebd commit 793e645

File tree

5 files changed

+121
-113
lines changed

5 files changed

+121
-113
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ $( '.swipebox' ).swipebox();
6161
```javascript
6262
useCSS : true, // false will force the use of jQuery for animations
6363
initialIndexOnArray: 0, // which image index to init when a array is passed
64+
hideBarsOnMobile : true, // false will show the caption and navbar on mobile devices
6465
hideBarsDelay : 3000, // 0 to always show caption and action bar
6566
videoMaxWidth : 1140, // videos max width
6667
beforeOpen: function(){} , // called before opening

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "swipebox",
3-
"version": "1.2.8",
3+
"version": "1.2.9",
44
"main": "src/js/jquery.swipebox.js"
55
}

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,12 @@ <h3>Check open state</h3>
214214
<h3>Options</h3>
215215
<pre>
216216
&lt;script type="text/javascript"&gt;
217-
;( function( $ ) {
217+
;( function( $ ) {
218218

219219
$( '.swipebox' ).swipebox( {
220220
useCSS : true, <span>// false will force the use of jQuery for animations</span>
221221
useSVG : true, <span>// false to force the use of png for buttons</span>
222+
hideBarsOnMobile : true, <span>// false will show the caption and navbar on mobile devices</span>
222223
hideBarsDelay : 3000, <span>// delay before hiding bars</span>
223224
videoMaxWidth : 1140, <span>// videos max width</span>
224225
beforeOpen: function() {}, <span>// called before opening</span>

0 commit comments

Comments
 (0)