From 2c01d2cddcd8d09f2c23880b069ed6991ec9691c Mon Sep 17 00:00:00 2001 From: Viljami S Date: Fri, 23 Mar 2012 19:57:17 +0200 Subject: [PATCH] Adds two new options which enable to change the next/previous texts --- responsiveslides.js | 6 ++++-- responsiveslides.min.js | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/responsiveslides.js b/responsiveslides.js index edf88cf..ab09368 100644 --- a/responsiveslides.js +++ b/responsiveslides.js @@ -7,6 +7,8 @@ "auto": true, // Boolean: Animate automatically "pagination": false, // Boolean: Show pagination "nav": false, // Boolean: Show navigation + "prevText": "Previous", // String: Text for the "previous" button + "nextText": "Next", // String: Text for the "next" button "fade": 1000, // Integer: Crossfade time, in milliseconds "maxwidth": "none", // Integer: Max-width of the Slideshow, in pixels "speed": 4000 // Integer: How long image shows before fading to next, in milliseconds @@ -180,8 +182,8 @@ // Build navigation var navMarkup = - "«" + - "»"; + "" + settings.prevText + "" + + "" + settings.nextText + ""; // Inject navigation $this.after(navMarkup); diff --git a/responsiveslides.min.js b/responsiveslides.min.js index eacb4a7..00e61b3 100644 --- a/responsiveslides.min.js +++ b/responsiveslides.min.js @@ -1,5 +1,5 @@ /*! http://responsive-slides.viljamis.com v1.20 by @viljamis */ -(function(b,y,r){b.fn.responsiveSlides=function(l){var c=b.extend({auto:!0,pagination:!1,nav:!1,fade:1E3,maxwidth:"none",speed:4E3},l);return this.each(function(){r++;var g=b(this),h=0,e=g.children(),s=e.size(),t=parseFloat(c.fade),d="rslides"+r,m="rslides "+d,f=d+"_on",u=d+"_s",n=b('