From 94b12370db773b0d9ca25e627148532b8ec63489 Mon Sep 17 00:00:00 2001 From: Viljami S Date: Sun, 4 Dec 2011 11:11:51 +0200 Subject: [PATCH] Minified version --- adaptiveslides.pack.js | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 adaptiveslides.pack.js diff --git a/adaptiveslides.pack.js b/adaptiveslides.pack.js new file mode 100644 index 0000000..d84d5c5 --- /dev/null +++ b/adaptiveslides.pack.js @@ -0,0 +1,2 @@ +/*! AdaptiveSlides.js v1.0. (c) 2011 Viljami Salminen. MIT License. http://adaptiveslides.viljamis.com */ +(function(a){a.fn.adaptiveSlides=function(b){var c={speed:4e3,fade:1e3,auto:true,maxwidth:"none",namespace:"adaptiveSlides"};return this.each(function(){var d=a(this);if(b){a.extend(c,b)}if(d.find("img").length<=1){return}var e=function(){d.find("img").each(function(b){var d=a(this);d.attr({id:c.namespace+"_slide"+b})});d.find("img").css({top:0,left:0,width:"100%",height:"inherit",position:"absolute"});d.find(":first-child").addClass(c.namespace+"_visible");d.css({"max-width":parseFloat(c.maxwidth),width:"100%",overflow:"hidden",position:"relative"});heightFix=[""].join("");a("head").append(heightFix);if(c.auto===true){d.find("img:gt(0)").hide();setInterval(function(){d.find(":first-child").fadeOut(parseFloat(c.fade)).next("img").fadeIn(parseFloat(c.fade)).addClass(c.namespace+"_visible").end().appendTo(d).removeClass(c.namespace+"_visible")},parseFloat(c.speed))}else{var b=a('