Browse Source

Update responsiveslides.js

Minor proofreading errors in documentation resolved.
pull/364/head
Vikas Kumar Yadav 9 years ago committed by GitHub
parent
commit
4bab7a0ff6
  1. 20
      responsiveslides.js

20
responsiveslides.js

@ -13,20 +13,20 @@
// Default settings // Default settings
var settings = $.extend({ var settings = $.extend({
"auto": true, // Boolean: Animate automatically, true or false "auto": true, // Boolean: Animate automatically, true OR false
"speed": 500, // Integer: Speed of the transition, in milliseconds "speed": 500, // Integer: Speed of the transition, in milliseconds
"timeout": 4000, // Integer: Time between slide transitions, in milliseconds "timeout": 4000, // Integer: Time between slide transitions, in milliseconds
"pager": false, // Boolean: Show pager, true or false "pager": false, // Boolean: Show pager, true OR false
"nav": false, // Boolean: Show navigation, true or false "nav": false, // Boolean: Show navigation, true OR false
"random": false, // Boolean: Randomize the order of the slides, true or false "random": false, // Boolean: Randomize the order of the slides, true OR false
"pause": false, // Boolean: Pause on hover, true or false "pause": false, // Boolean: Pause on hover, true OR false
"pauseControls": true, // Boolean: Pause when hovering controls, true or false "pauseControls": true, // Boolean: Pause when hovering controls, true OR false
"prevText": "Previous", // String: Text for the "previous" button "prevText": "Previous", // String: Text for the "previous" button
"nextText": "Next", // String: Text for the "next" button "nextText": "Next", // String: Text for the "next" button
"maxwidth": "", // Integer: Max-width of the slideshow, in pixels "maxwidth": "", // Integer: Max-width of the slideshow, in pixels
"navContainer": "", // Selector: Where auto generated controls should be appended to, default is after the <ul> "navContainer": "", // Selector: Where auto generated controls should be appended to, default is after the <ul>
"manualControls": "", // Selector: Declare custom pager navigation "manualControls": "", // Selector: Declare custom pager navigation
"namespace": "rslides", // String: change the default namespace used "namespace": "rslides", // String: Change the default namespace used
"before": $.noop, // Function: Before callback "before": $.noop, // Function: Before callback
"after": $.noop // Function: After callback "after": $.noop // Function: After callback
}, options); }, options);
@ -148,7 +148,7 @@
$this.css("max-width", maxw); $this.css("max-width", maxw);
} }
// Hide all slides, then show first one // Hide all the slides, then show the first one
$slide $slide
.hide() .hide()
.css(hidden) .css(hidden)
@ -170,7 +170,7 @@
}); });
} }
// Only run if there's more than one slide // Only run if there are more than one slide
if ($slide.size() > 1) { if ($slide.size() > 1) {
// Make sure the timeout is at least 100ms longer than the fade // Make sure the timeout is at least 100ms longer than the fade
@ -236,7 +236,7 @@
var idx = index + 1 < length ? index + 1 : 0; var idx = index + 1 < length ? index + 1 : 0;
// Remove active state and set new if pager is set // Remove the active state and set new if pager is set
if (settings.pager || settings.manualControls) { if (settings.pager || settings.manualControls) {
selectTab(idx); selectTab(idx);
} }

Loading…
Cancel
Save