From 86e1e502683fbdcdce1a027f665974054898168c Mon Sep 17 00:00:00 2001 From: Steve Clay Date: Thu, 4 Jun 2015 12:13:29 -0400 Subject: [PATCH] Allow showing the tabs bar even for a single slide --- responsiveslides.js | 3 ++- responsiveslides.min.js | 14 +++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/responsiveslides.js b/responsiveslides.js index fbc331a..8108cba 100644 --- a/responsiveslides.js +++ b/responsiveslides.js @@ -17,6 +17,7 @@ "speed": 500, // Integer: Speed of the transition, in milliseconds "timeout": 4000, // Integer: Time between slide transitions, in milliseconds "pager": false, // Boolean: Show pager, true or false + "forcePager": false, // Boolean: Show pager even for a single slide "nav": false, // Boolean: Show navigation, true or false "random": false, // Boolean: Randomize the order of the slides, true or false "pause": false, // Boolean: Pause on hover, true or false @@ -171,7 +172,7 @@ } // Only run if there's more than one slide - if ($slide.size() > 1) { + if ($slide.size() > 1 || settings.forcePager) { // Make sure the timeout is at least 100ms longer than the fade if (waitTime < fadeTime + 100) { diff --git a/responsiveslides.min.js b/responsiveslides.min.js index 21d4832..abb681f 100644 --- a/responsiveslides.min.js +++ b/responsiveslides.min.js @@ -1,8 +1,8 @@ /*! http://responsiveslides.com v1.54 by @viljamis */ -(function(c,I,B){c.fn.responsiveSlides=function(l){var a=c.extend({auto:!0,speed:500,timeout:4E3,pager:!1,nav:!1,random:!1,pause:!1,pauseControls:!0,prevText:"Previous",nextText:"Next",maxwidth:"",navContainer:"",manualControls:"",namespace:"rslides",before:c.noop,after:c.noop},l);return this.each(function(){B++;var f=c(this),s,r,t,m,p,q,n=0,e=f.children(),C=e.size(),h=parseFloat(a.speed),D=parseFloat(a.timeout),u=parseFloat(a.maxwidth),g=a.namespace,d=g+B,E=g+"_nav "+d+"_nav",v=g+"_here",j=d+"_on", -w=d+"_s",k=c("