Skip to content

Commit

Permalink
New option to allow different initial slideshow duration.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitio committed Aug 18, 2011
1 parent d84f0e4 commit 8e0d3e4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fadeshow.js
Expand Up @@ -4,8 +4,9 @@
*/ */
jQuery(function($) { jQuery(function($) {
// settings // settings
var animationDuration = 1000, var animationDuration = 1000,
singleSlideDuration = 4000; singleSlideDuration = 6000,
initialSlideDuration = 9000;


var $lists = $('ul.fadeshow'), var $lists = $('ul.fadeshow'),
timer; timer;
Expand Down Expand Up @@ -36,5 +37,5 @@ jQuery(function($) {
}; };


$lists.click(next); $lists.click(next);
timer = setTimeout(next, singleSlideDuration); timer = setTimeout(next, initialSlideDuration);
}); });

0 comments on commit 8e0d3e4

Please sign in to comment.