1 changed files with 6 additions and 0 deletions
@ -0,0 +1,6 @@
|
||||
/*! ResponsiveSlides.js v1.01. (c) 2011 Viljami Salminen. MIT License. http://responsive-slides.viljamis.com */ |
||||
(function(a){a.fn.responsiveSlides=function(e){var c={speed:4E3,fade:1E3,auto:!0,maxwidth:"none",namespace:"responsiveSlides"};return this.each(function(){var b=a(this);e&&a.extend(c,e);var h=function(){e.maxwidth&&("undefined"===typeof document.body.style.maxHeight||"undefined"===typeof document.body.style.minHeight)&&b.each(function(){b.css("width","100%");b.width()>maxwidth?b.css("width",maxwidth):b.width()<maxwidth&&b.css("width","100%")})};(function(){var d=b.find("img"),g=c.namespace,e=g+"_tabs", |
||||
f=g+"_visible",j=g+"_active",i=g+"_slide",g=parseFloat(c.maxwidth),k=parseFloat(c.fade),h=a('<ul class="'+e+'"/>'),l={position:"relative","float":"left"},m={position:"absolute","float":"none"};1>=b.find(d).length||(d.each(function(a){this.id=i+a}),d.css({top:0,left:0,width:"100%",height:"inherit",position:"absolute"}),b.find(":first-child").addClass(f).css(l),b.css({"max-width":g,width:"100%",overflow:"hidden",position:"relative"}),b.find(d+":gt(0)").hide(),c.auto?setInterval(function(){b.find(":first-child").fadeOut(k, |
||||
function(){a(this).css(m)}).next(d).fadeIn(k,function(){a(this).css(l)}).addClass(f).end().appendTo(b).removeClass(f)},parseFloat(c.speed)):(d.each(function(a){a+=1;h.append('<li><a href="#'+i+a+'"class="'+i+a+'">'+a+"</a></li>")}),b.after(h),a("."+i+"1").parent().addClass(j),a("."+e+" a").each(function(b){var c=a(this);c.click(function(d){d.preventDefault();!a("."+f+":animated").length&&!c.parent().hasClass(j)&&(a("."+e+" li").removeClass(j),a("."+f).stop().fadeOut(k,function(){a(this).removeClass(f).css(m)}).end(), |
||||
a("#"+i+b).stop().fadeIn(k,function(){a(this).addClass(f).css(l)}).end(),c.parent().addClass(j))})})))})();h();a(window).resize(function(){h()})})}})(jQuery); |
||||
|
Loading…
Reference in new issue