Permalink
Browse files

Added hideBarsOnMobile option, clean up

  • Loading branch information...
Constantin
Constantin committed Apr 7, 2014
1 parent 1066ebd commit 793e645c596ff90449d60ae35ce7d0b7a2b52ea0
Showing with 121 additions and 113 deletions.
  1. +1 −0 README.md
  2. +1 −1 bower.json
  3. +2 −1 index.html
  4. +115 −109 src/js/jquery.swipebox.js
  5. +2 −2 src/js/jquery.swipebox.min.js
View
@@ -61,6 +61,7 @@ $( '.swipebox' ).swipebox();
```javascript
useCSS : true, // false will force the use of jQuery for animations
initialIndexOnArray: 0, // which image index to init when a array is passed
hideBarsOnMobile : true, // false will show the caption and navbar on mobile devices
hideBarsDelay : 3000, // 0 to always show caption and action bar
videoMaxWidth : 1140, // videos max width
beforeOpen: function(){} , // called before opening
View
@@ -1,5 +1,5 @@
{
"name": "swipebox",
"version": "1.2.8",
"version": "1.2.9",
"main": "src/js/jquery.swipebox.js"
}
View
@@ -214,11 +214,12 @@ <h3>Check open state</h3>
<h3>Options</h3>
<pre>
&lt;script type="text/javascript"&gt;
;( function( $ ) {
;( function( $ ) {
$( '.swipebox' ).swipebox( {
useCSS : true, <span>// false will force the use of jQuery for animations</span>
useSVG : true, <span>// false to force the use of png for buttons</span>
hideBarsOnMobile : true, <span>// false will show the caption and navbar on mobile devices</span>
hideBarsDelay : 3000, <span>// delay before hiding bars</span>
videoMaxWidth : 1140, <span>// videos max width</span>
beforeOpen: function() {}, <span>// called before opening</span>
Oops, something went wrong.

0 comments on commit 793e645

Please sign in to comment.