"use strict";var _typeof2="function"==typeof symbol&&"symbol"==typeof symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":typeof t},_typeof="function"==typeof symbol&&"symbol"==_typeof2(symbol.iterator)?function(t){return void 0===t?"undefined":_typeof2(t)}:function(t){return t&&"function"==typeof symbol&&t.constructor===symbol&&t!==symbol.prototype?"symbol":void 0===t?"undefined":_typeof2(t)};!function(i,d,t){var e,i;d.yunu={init:function(){return(arguments[0]?arguments[0]:{}).imgauto&&i("img").each(function(){var t=i(this);t.attr("img-auto")&&("cover"==t.attr("img-auto")?t.imgauto("cover"):t.imgauto())}),i("body").fadeto("fast",1),this},rem:function(t){return t=t||640,1024ul>li>a");return i("#menu").click(function(){t.addclass("in")}),t.click(function(){t.removeclass("in")}),i("#nav>ul").click(function(t){t.stoppropagation()}),o.each(function(){var t=i(this);t.next("ul").children().length&&t.prop("href","javascript:;").append('')}).click(function(t){var n=i(this),e=o.filter(function(t){return i(this).hasclass("in")}),i=function(t,n){"down"==n?t.addclass("in").next("ul").slidedown("fast"):t.removeclass("in").next("ul").slideup("fast")};e===n?i(n,"up"):(i(n,"down"),i(e,"up"))}),this},letter:function(n){if("function"==typeof n){n();var e="number"!=typeof arguments[1]?300:arguments[1],i=null,o=(new date).gettime();return function(){var t=(new date).gettime();t-on.offset().top-(parseint(n.css("top"))||0)))return!1;"function"==typeof i?i.call(n):i?n.animate({top:0,left:0},parseint(n.attr("timer"))||2e3,function(){}):n.attr("src",n.attr("data-src")).removeattr("data-src"),i(d).unbind("scroll",n.show)})!==n.show()?(settimeout(function(){yunu.lazyload(e.not(n))}),!1):void i(d).bind("scroll",n.show)}),this},loadmore:function(){var i=0ul"),data:{pages:1,limit:5},beforesend:function(){},done:function(){},fail:function(){},always:function(){},load_icon:!0,load_icon_class:"",loading:i('
'),load_more_none:i('

没有了

')},i)).load_icon&&(i(i.loading).addclass(i.load_icon_class),i.btn.after(i.loading)),i.btn.click(function(){i.key&&(i.key=!1,i.data.pages++,i.ajax({url:i.url,type:i.type,data:i.data,datatype:"jsonp",beforesend:function(t){i.beforesend(t),i.btn.attr("disabled",!0)}}).done(function(t,n,e){i.done(t,n,e),t.data.lengthn?t.fadein():t.fadeout("fast")})):(e=i("html,body"),i=i(d),o=arguments[0],t=o.find("a[href='#top']"),yunu.letter(function(){r=(i.height()-o.height())/2,o.animate({top:r+i.scrolltop()}),i.scrolltop()+r>n&&o.is(":hidden")&&o.stop(!0,!0).fadein(),i.scrolltop()+rn?t.fadein():t.fadeout("fast")})),t.click(function(){event.stoppropagation(),event.preventdefault(),e.animate({scrolltop:0}),o.fadeout()}),i.scroll(a),this}},i.fn.roll=function(){var n=this,e=arguments[0]?arguments[0]:{};"number"!=typeof e.num&&(e.num=1),"number"!=typeof e.timer&&(e.timer=6e3),"number"!=typeof e.speed&&(e.speed=400),"string"!=typeof e.easing&&(e.easing="swing"),"string"!=typeof e.timing&&(e.timing="ease-out"),void 0===e.adaptive&&(e.adaptive=!0),void 0===e.center&&(e.center=!0);var i,t,o,a,r,s,c,l,u=n.find("ul"),f=u.find("li"),d=f.length,p=f.outerwidth(!0),h=e.lbtn||n.find(".btn_l"),m=e.rbtn||n.find(".btn_r"),v=n.find(".banner_btn").find("a"),y=-d,g=null,b=!1,w=!1,_=0,t=0,x=0,k=0,s=yunu.css3_3d(),c=function(){return"translate3d("+p*y+"px, 0px, 0px)"},a=function(){return p*y};if(n.roll_stop=function(){clearinterval(g)},n.roll_start=function(t){t&&(b=!1),clearinterval(g),g=setinterval(function(){i("-")},e.timer)},u.html(u.html()+u.html()+u.html()),f=u.find("li"),d=f.length,n.css({position:"relative",overflow:"hidden",margin:"0 auto",width:e.width?e.width:e.banner?"100%":e.num*p}),f.css({width:e.banner?p:f.width(),height:"auto",float:"left",position:"relative",overflow:"hidden"}),u.css({width:d*p,height:"auto"}),e.height&&n.height(e.height),e.btn){t=i(''),o=i("");for(var z=0;z');(v=o.find("a")).first().addclass("in"),t.append(o),n.append(t),"all"==e.btn&&(n.append(''),h=n.find(".banner_l"),m=n.find(".banner_r"))}return a=v.add(h).add(m),e.banner?(c=i("div.center:first"),(l=function(){r=n.width(),s=c.width(),p=e.adaptive?r:sr/3?u.css("transform","translate3d("+(k+r/3+2*r/3*(1-r/3/t))+"px, 0px, 0px)"):t<-r/3?u.css("transform","translate3d("+(k-r/3-2*r/3*(1- -r/3/t))+"px, 0px, 0px)"):u.css("transform","translate3d("+(k+t)+"px, 0px, 0px)")}),n.on("touchend",function(t){w=!1,0<=y&&0=r/3||date.now()-x<300&&30')).css({width:f,height:d,"text-align":"left",overflow:"hidden"}),n.wrapall(i)):i=n.parent(),t(),n.fadeto(2e3,1);var p=yunu.letter(t);i(d).resize(p)}),this}}(jquery,window,document),yunu.rem(320),$(window).resize(function(){yunu.rem(320)}); //# sourcemappingurl=yunu.js.map