"use strict";!function(n){n.fn.superSlider=function(t){var e=n(this),i={prevBtn:".prevBtn",nextBtn:".nextBtn",listCont:".content",delayTime:1e3,speed:1e3,amount:1,showNum:4,autoPlay:!1,scrollWhere:"prev"},o=n.extend(i,t),l={cont:e.find(o.listCont),prevBtn:e.find(o.prevBtn),nextBtn:e.find(o.nextBtn),time:o.delayTime,speed:o.speed,oneContWidth:e.find(o.listCont).children().eq(0).outerWidth(!0),n:o.amount,len:e.find(o.listCont).children().length,contWidth:e.find(o.listCont).children().length*e.find(o.listCont).children().eq(0).outerWidth(!0),showNum:o.showNum},c={scrollLNext:function(){l.cont.is(":animated")||(l.cont.children().slice(0,l.n).clone().appendTo(l.cont),l.cont.width(l.cont.children().length*l.oneContWidth+"px"),l.cont.animate({"margin-left":"-"+l.oneContWidth*l.n+"px"},l.speed,function(){n(this).children().slice(0,l.n).remove(),n(this).css("margin-left","0px")}))},scrollPrev:function(){l.cont.is(":animated")||(l.cont.children().slice(l.len-l.n,l.len).clone().prependTo(l.cont),l.cont.css({"margin-left":"-"+l.oneContWidth*l.n+"px",width:l.cont.children().length*l.oneContWidth+"px"}),l.cont.animate({"margin-left":"0px"},l.speed,function(){n(this).children().slice(l.cont.children().length-l.n,l.cont.children().length).remove()}))},init:function(){if(l.cont.parent().css({overflow:"hidden",width:l.showNum*l.oneContWidth}),l.cont.width(l.contWidth+"px"),l.cont.children().length<=l.showNum?(l.prevBtn.hide(),l.nextBtn.hide()):(l.prevBtn.show(),l.nextBtn.show(),l.prevBtn.off().on("click",this.scrollPrev),l.nextBtn.off().on("click",this.scrollLNext)),o.autoPlay===!0){if("prev"===o.scrollWhere)var t=this.scrollPrev;else var t=this.scrollLNext;var e=o.delayTime+o.speed,i=setInterval(t,e);n(o.listCont+","+o.prevBtn+","+o.nextBtn).hover(function(){clearInterval(i)},function(){i=setInterval(t,e)})}}};c.init()}}(jQuery); //# sourceMappingURL=.map/super_slider.js.map