diff --git a/responsiveslides.js b/responsiveslides.js index 6b9e3b1..e519193 100644 --- a/responsiveslides.js +++ b/responsiveslides.js @@ -1,5 +1,5 @@ /*! ResponsiveSlides.js v1.04. (c) 2011 Viljami Salminen. MIT License. http://responsive-slides.viljamis.com */ -(function ($) { +(function ($, window) { $.fn.responsiveSlides = function (opts) { // Settings @@ -9,7 +9,8 @@ 'auto' : true, 'maxwidth' : 'none', 'namespace' : 'rs' - }; + }, + parseF = parseFloat; /* for minification */ return this.each(function () { @@ -19,25 +20,22 @@ $.extend(settings, opts); } - var slideshow = function () { - - var $slide = $this.find('img'), - hasTouch = 'ontouchstart' in window, - startEvent = hasTouch ? 'touchstart' : 'mousedown', - namespace = settings.namespace, - activeClass = namespace + '_here', - visibleClass = namespace + '_on', - slideClassPrefix = namespace + '_s', - tabsClass = namespace + '_tabs', - $pagination = $('