vendor: 13,806 bytes, lines 1-421
1/*! 2 * SuperSlide v2.1.1 3 * è½»æ¾è§£å³ç½ç«å¤§é¨åç¹æå±ç¤ºé®é¢ 4 * 详尽信æ¯è¯·çå®ç½ï¼http://www.SuperSlide2.com/ 5 * 6 * Copyright 2011-2013, 大è¯ä¸»å¸ 7 * 8 * 请å°éååï¼ä¿ç头é¨çæ 9 * å¨ä¿ççæçåæä¸å¯åºç¨äºä¸ªäººæåä¸ç¨é 10 11 * v2.1.1ï¼ä¿®å¤å½è°ç¨å¤ä¸ªSuperSlideï¼å¹¶è®¾ç½®returnDefault:true æ¶è¿ådefaultIndexç´¢å¼é误 12 13 */ 14!function(a){ 15 a.fn.slide=function(b){ 16 return a.fn.slide.defaults={ 17 type:"slide",effect:"fade",autoPlay:!1,delayTime:500,interTime:5000,triggerTime:150,defaultIndex:0,titCell:".hd li",mainCell:".bd",targetCell:null,trigger:"mouseover",scroll:1,vis:1,titOnClassName:"on",autoPage:!1,prevCell:".prev",nextCell:".next",pageStateCell:".pageState",opp:!1,pnLoop:!0,easing:"swing",startFun:null,endFun:null,switchLoad:null,playStateCell:".playState",mouseOverStop:!0,defaultPlay:!0,returnDefault:!1 18 } 19 ,this.each(function(){ 20 21 var c=a.extend({},a.fn.slide.defaults,b),d=a(this),e=c.effect,f=a(c.prevCell,d),g=a(c.nextCell,d),h=a(c.pageStateCell,d),i=a(c.playStateCell,d),j=a(c.titCell,d),k=j.size(),l=a(c.mainCell,d),m=l.children().size(),n=c.switchLoad,o=a(c.targetCell,d),p=parseInt(c.defaultIndex),q=parseInt(c.delayTime),r=parseInt(c.interTime); 22 parseInt(c.triggerTime); 23 var Q,t=parseInt(c.scroll),u=parseInt(c.vis),v="false"==c.autoPlay||0==c.autoPlay?!1:!0,w="false"==c.opp||0==c.opp?!1:!0,x="false"==c.autoPage||0==c.autoPage?!1:!0,y="false"==c.pnLoop||0==c.pnLoop?!1:!0,z="false"==c.mouseOverStop||0==c.mouseOverStop?!1:!0,A="false"==c.defaultPlay||0==c.defaultPlay?!1:!0,B="false"==c.returnDefault||0==c.returnDefault?!1:!0,C=0,D=0,E=0,F=0,G=c.easing,H=null,I=null,J=null,K=c.titOnClassName,L=j.index(d.find("."+K)),M=p=-1==L?p:L,N=p,O=p,P=m>=u?0!=m%t?m%t:t:0,R="leftMarquee"==e||"topMarquee"==e?!0:!1,S=function(){ 24 a.isFunction(c.startFun)&&c.startFun(p,k,d,a(c.titCell,d),l,o,f,g) 25 } 26 ,T=function(){ 27 a.isFunction(c.endFun)&&c.endFun(p,k,d,a(c.titCell,d),l,o,f,g) 28 } 29 ,U=function(){ 30 j.removeClass(K),A&&j.eq(N).addClass(K) 31 }; 32 if("menu"==c.type)return A&&j.removeClass(K).eq(p).addClass(K),j.hover(function(){ 33 Q=a(this).find(c.targetCell); 34 var b=j.index(a(this)); 35 I=setTimeout(function(){ 36 switch(p=b,j.removeClass(K).eq(p).addClass(K),S(),e){ 37 case"fade":Q.stop(!0,!0).animate({ 38 opacity:"show" 39 } 40 ,q,G,T); 41 break; 42 case"slideDown":Q.stop(!0,!0).animate({ 43 height:"show" 44 } 45 ,q,G,T) 46 } 47 } 48 ,c.triggerTime) 49 } 50 ,function(){ 51 switch(clearTimeout(I),e){ 52 case"fade":Q.animate({ 53 opacity:"hide" 54 } 55 ,q,G); 56 break; 57 case"slideDown":Q.animate({ 58 height:"hide" 59 } 60 ,q,G) 61 } 62 }),B&&d.hover(function(){ 63 clearTimeout(J) 64 } 65 ,function(){ 66 J=setTimeout(U,q) 67 }),void 0; 68 if(0==k&&(k=m),R&&(k=2),x){ 69 if(m>=u)if("leftLoop"==e||"topLoop"==e)k=0!=m%t?(0^m/t)+1:m/t; 70 else{ 71 var V=m-u; 72 k=1+parseInt(0!=V%t?V/t+1:V/t),0>=k&&(k=1) 73 } 74 else k=1; 75 j.html(""); 76 var W=""; 77 if(1==c.autoPage||"true"==c.autoPage)for(var X=0;k>X;X++)W+="<li>"+(X+1)+"</li>"; 78 else for(var X=0;k>X;X++)W+=c.autoPage.replace("$",X+1); 79 j.html(W); 80 var j=j.children() 81 } 82 if(m>=u){ 83 l.children().each(function(){ 84 a(this).width()>E&&(E=a(this).width(),D=a(this).outerWidth(!0)),a(this).height()>F&&(F=a(this).height(),C=a(this).outerHeight(!0)) 85 }); 86 var Y=l.children(),Z=function(){ 87 for(var a=0;u>a;a++)Y.eq(a).clone().addClass("clone").appendTo(l); 88 for(var a=0;P>a;a++)Y.eq(m-a-1).clone().addClass("clone").prependTo(l) 89 }; 90 switch(e){ 91 case"fold":l.css({ 92 position:"relative",width:D,height:C 93 }).children().css({ 94 position:"absolute",width:E,left:0,top:0,display:"none" 95 }); 96 break; 97 case"top":l.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; height:'+u*C+'px"></div>').css({ 98 top:-(p*t)*C,position:"relative",padding:"0",margin:"0" 99 }).children().css({ 100 height:F 101 }); 102 break; 103 case"left":l.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; width:'+u*D+'px"></div>').css({ 104 width:m*D,left:-(p*t)*D,position:"relative",overflow:"hidden",padding:"0",margin:"0" 105 }).children().css({ 106 "float":"left",width:E 107 }); 108 break; 109 case"leftLoop":case"leftMarquee":Z(),l.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; width:'+u*D+'px"></div>').css({ 110 width:(m+u+P)*D,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(P+p*t)*D 111 }).children().css({ 112 "float":"left",width:E 113 }); 114 break; 115 case"topLoop":case"topMarquee":Z(),l.wrap('<div class="tempWrap" style="overflow:hidden; position:relative; height:'+u*C+'px"></div>').css({ 116 height:(m+u+P)*C,position:"relative",padding:"0",margin:"0",top:-(P+p*t)*C 117 }).children().css({ 118 height:F 119 }) 120 } 121 } 122 var $=function(a){ 123 var b=a*t; 124 return a==k?b=m:-1==a&&0!=m%t&&(b=-m%t),b 125 } 126 ,_=function(b){ 127 var c=function(c){ 128 for(var d=c;u+c>d;d++)b.eq(d).find("img["+n+"]").each(function(){ 129 var b=a(this); 130 if(b.attr("src",b.attr(n)).removeAttr(n),l.find(".clone")[0])for(var c=l.children(),d=0; 131 d<c.size(); 132 d++)c.eq(d).find("img["+n+"]").each(function(){ 133 a(this).attr(n)==b.attr("src")&&a(this).attr("src",a(this).attr(n)).removeAttr(n) 134 }) 135 }) 136 }; 137 switch(e){ 138 case"fade":case"fold":case"top":case"left":case"slideDown":c(p*t); 139 break; 140 case"leftLoop":case"topLoop":c(P+$(O)); 141 break; 142 case"leftMarquee":case"topMarquee":var d="leftMarquee"==e?l.css("left").replace("px",""):l.css("top").replace("px",""),f="leftMarquee"==e?D:C,g=P; 143 if(0!=d%f){ 144 var h=Math.abs(0^d/f); 145 g=1==p?P+h:P+h-1 146 } 147 c(g) 148 } 149 } 150 ,ab=function(a){ 151 if(!A||M!=p||a||R){ 152 if(R?p>=1?p=1:0>=p&&(p=0):(O=p,p>=k?p=0:0>p&&(p=k-1)),S(),null!=n&&_(l.children()),o[0]&&(Q=o.eq(p),null!=n&&_(o),"slideDown"==e?(o.not(Q).stop(!0,!0).slideUp(q),Q.slideDown(q,G,function(){ 153 l[0]||T() 154 })):(o.not(Q).stop(!0,!0).hide(),Q.animate({ 155 opacity:"show" 156 } 157 ,q,function(){ 158 l[0]||T() 159 }))),m>=u)switch(e){ 160 case"fade":l.children().stop(!0,!0).eq(p).animate({ 161 opacity:"show" 162 } 163 ,q,G,function(){ 164 T() 165 }).siblings().hide(); 166 break; 167 case"fold":l.children().stop(!0,!0).eq(p).animate({ 168 opacity:"show" 169 } 170 ,q,G,function(){ 171 T() 172 }).siblings().animate({ 173 opacity:"hide" 174 } 175 ,q,G); 176 break; 177 case"top":l.stop(!0,!1).animate({ 178 top:-p*t*C 179 } 180 ,q,G,function(){ 181 T() 182 }); 183 break; 184 case"left":l.stop(!0,!1).animate({ 185 left:-p*t*D 186 } 187 ,q,G,function(){ 188 T() 189 }); 190 break; 191 case"leftLoop":var b=O; 192 l.stop(!0,!0).animate({ 193 left:-($(O)+P)*D 194 } 195 ,q,G,function(){ 196 -1>=b?l.css("left",-(P+(k-1)*t)*D):b>=k&&l.css("left",-P*D),T() 197 }); 198 break; 199 case"topLoop":var b=O; 200 l.stop(!0,!0).animate({ 201 top:-($(O)+P)*C 202 } 203 ,q,G,function(){ 204 -1>=b?l.css("top",-(P+(k-1)*t)*C):b>=k&&l.css("top",-P*C),T() 205 }); 206 break; 207 case"leftMarquee":var c=l.css("left").replace("px",""); 208 0==p?l.animate({ 209 left:++c 210 } 211 ,0,function(){ 212 l.css("left").replace("px","")>=0&&l.css("left",-m*D) 213 }):l.animate({ 214 left:--c 215 } 216 ,0,function(){ 217 l.css("left").replace("px","")<=-(m+P)*D&&l.css("left",-P*D) 218 }); 219 break; 220 case"topMarquee":var d=l.css("top").replace("px",""); 221 0==p?l.animate({ 222 top:++d 223 } 224 ,0,function(){ 225 l.css("top").replace("px","")>=0&&l.css("top",-m*C) 226 }):l.animate({ 227 top:--d 228 } 229 ,0,function(){ 230 l.css("top").replace("px","")<=-(m+P)*C&&l.css("top",-P*C) 231 }) 232 } 233 j.removeClass(K).eq(p).addClass(K),M=p,y||(g.removeClass("nextStop"),f.removeClass("prevStop"),0==p&&f.addClass("prevStop"),p==k-1&&g.addClass("nextStop")),h.html("<span>"+(p+1)+"</span>/"+k) 234 } 235 }; 236 A&&ab(!0),B&&d.hover(function(){ 237 clearTimeout(J) 238 } 239 ,function(){ 240 J=setTimeout(function(){ 241 p=N,A?ab():"slideDown"==e?Q.slideUp(q,U):Q.animate({ 242 opacity:"hide" 243 } 244 ,q,U),M=p 245 } 246 ,300) 247 }); 248 var bb=function(a){ 249 H=setInterval(function(){ 250 w?p--:p++,ab() 251 } 252 ,a?a:r) 253 } 254 ,cb=function(a){ 255 H=setInterval(ab,a?a:r) 256 } 257 ,db=function(){ 258 z||(clearInterval(H),bb()) 259 } 260 ,eb=function(){ 261 (y||p!=k-1)&&(p++,ab(),R||db()) 262 } 263 ,fb=function(){ 264 (y||0!=p)&&(p--,ab(),R||db()) 265 } 266 ,gb=function(){ 267 clearInterval(H),R?cb():bb(),i.removeClass("pauseState") 268 } 269 ,hb=function(){ 270 clearInterval(H),i.addClass("pauseState") 271 }; 272 if(v?R?(w?p--:p++,cb(),z&&l.hover(hb,gb)):(bb(),z&&d.hover(hb,gb)):(R&&(w?p--:p++),i.addClass("pauseState")),i.click(function(){ 273 i.hasClass("pauseState")?gb():hb() 274 }),"mouseover"==c.trigger?j.hover(function(){ 275 var a=j.index(this); 276 I=setTimeout(function(){ 277 p=a,ab(),db() 278 } 279 ,c.triggerTime) 280 } 281 ,function(){ 282 clearTimeout(I) 283 }):j.click(function(){ 284 p=j.index(this),ab(),db() 285 }),R){ 286 if(g.mousedown(eb),f.mousedown(fb),y){ 287 var ib,jb=function(){ 288 ib=setTimeout(function(){ 289 clearInterval(H),cb(0^r/10) 290 } 291 ,150) 292 } 293 ,kb=function(){ 294 clearTimeout(ib),clearInterval(H),cb() 295 }; 296 g.mousedown(jb),g.mouseup(kb),f.mousedown(jb),f.mouseup(kb) 297 } 298 "mouseover"==c.trigger&&(g.hover(eb,function(){}),f.hover(fb,function(){})) 299 } 300 else g.click(eb),f.click(fb) 301 }) 302 } 303}(jQuery),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{ 304 def:"easeOutQuad",swing:function(a,b,c,d,e){ 305 return jQuery.easing[jQuery.easing.def](a,b,c,d,e) 306 } 307 ,easeInQuad:function(a,b,c,d,e){ 308 return d*(b/=e)*b+c 309 } 310 ,easeOutQuad:function(a,b,c,d,e){ 311 return-d*(b/=e)*(b-2)+c 312 } 313 ,easeInOutQuad:function(a,b,c,d,e){ 314 return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c 315 } 316 ,easeInCubic:function(a,b,c,d,e){ 317 return d*(b/=e)*b*b+c 318 } 319 ,easeOutCubic:function(a,b,c,d,e){ 320 return d*((b=b/e-1)*b*b+1)+c 321 } 322 ,easeInOutCubic:function(a,b,c,d,e){ 323 return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c 324 } 325 ,easeInQuart:function(a,b,c,d,e){ 326 return d*(b/=e)*b*b*b+c 327 } 328 ,easeOutQuart:function(a,b,c,d,e){ 329 return-d*((b=b/e-1)*b*b*b-1)+c 330 } 331 ,easeInOutQuart:function(a,b,c,d,e){ 332 return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c 333 } 334 ,easeInQuint:function(a,b,c,d,e){ 335 return d*(b/=e)*b*b*b*b+c 336 } 337 ,easeOutQuint:function(a,b,c,d,e){ 338 return d*((b=b/e-1)*b*b*b*b+1)+c 339 } 340 ,easeInOutQuint:function(a,b,c,d,e){ 341 return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c 342 } 343 ,easeInSine:function(a,b,c,d,e){ 344 return-d*Math.cos(b/e*(Math.PI/2))+d+c 345 } 346 ,easeOutSine:function(a,b,c,d,e){ 347 return d*Math.sin(b/e*(Math.PI/2))+c 348 } 349 ,easeInOutSine:function(a,b,c,d,e){ 350 return-d/2*(Math.cos(Math.PI*b/e)-1)+c 351 } 352 ,easeInExpo:function(a,b,c,d,e){ 353 return 0==b?c:d*Math.pow(2,10*(b/e-1))+c 354 } 355 ,easeOutExpo:function(a,b,c,d,e){ 356 return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c 357 } 358 ,easeInOutExpo:function(a,b,c,d,e){ 359 return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c 360 } 361 ,easeInCirc:function(a,b,c,d,e){ 362 return-d*(Math.sqrt(1-(b/=e)*b)-1)+c 363 } 364 ,easeOutCirc:function(a,b,c,d,e){ 365 return d*Math.sqrt(1-(b=b/e-1)*b)+c 366 } 367 ,easeInOutCirc:function(a,b,c,d,e){ 368 return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c 369 } 370 ,easeInElastic:function(a,b,c,d,e){ 371 var f=1.70158,g=0,h=d; 372 if(0==b)return c; 373 if(1==(b/=e))return c+d; 374 if(g||(g=.3*e),h<Math.abs(d)){ 375 h=d; 376 var f=g/4 377 } 378 else var f=g/(2*Math.PI)*Math.asin(d/h); 379 return-(h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g))+c 380 } 381 ,easeOutElastic:function(a,b,c,d,e){ 382 var f=1.70158,g=0,h=d; 383 if(0==b)return c; 384 if(1==(b/=e))return c+d; 385 if(g||(g=.3*e),h<Math.abs(d)){ 386 h=d; 387 var f=g/4 388 } 389 else var f=g/(2*Math.PI)*Math.asin(d/h); 390 return h*Math.pow(2,-10*b)*Math.sin((b*e-f)*2*Math.PI/g)+d+c 391 } 392 ,easeInOutElastic:function(a,b,c,d,e){ 393 var f=1.70158,g=0,h=d; 394 if(0==b)return c; 395 if(2==(b/=e/2))return c+d; 396 if(g||(g=e*.3*1.5),h<Math.abs(d)){ 397 h=d; 398 var f=g/4 399 } 400 else var f=g/(2*Math.PI)*Math.asin(d/h); 401 return 1>b?-.5*h*Math.pow(2,10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+c:.5*h*Math.pow(2,-10*(b-=1))*Math.sin((b*e-f)*2*Math.PI/g)+d+c 402 } 403 ,easeInBack:function(a,b,c,d,e,f){ 404 return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c 405 } 406 ,easeOutBack:function(a,b,c,d,e,f){ 407 return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c 408 } 409 ,easeInOutBack:function(a,b,c,d,e,f){ 410 return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c 411 } 412 ,easeInBounce:function(a,b,c,d,e){ 413 return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c 414 } 415 ,easeOutBounce:function(a,b,c,d,e){ 416 return(b/=e)<1/2.75?d*7.5625*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c 417 } 418 ,easeInOutBounce:function(a,b,c,d,e){ 419 return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c 420 } 421});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.