1fl=true; 2$(document).ready(function(){ 3 $(".carousel_box").jCarouselLite({ 4 btnNext: ".next", 5 btnPrev: ".prev" 6 }); 7 8 9}) 10 11$(window).load(function(){ 12 13 var width=$('.carousel_box ul').width(); 14 var left=parseInt($('.carousel_box ul').css('left')) 15 16 $('.carousel_box ul').css({left:left}) 17 $('.carousel_box ul').css({width:width+54}) 18 19 var amount=$(".carousel_box li").length; 20 21 var act=Math.round((amount/3)+1); 22 23 $('.carousel_box li').eq(act).addClass('active').css({width:214, height:337}) 24 25 26 $('.next').click(function(){ 27 if (fl) { 28 fl=false; 29 if (act==Math.round((amount/3)*2)+1) { 30 act=Math.round((amount/3))+2 31 } else { 32 act++ 33 } 34 $('.carousel_box .active').removeClass('active').stop().animate({width:160, height:252}, function(){fl=true}) 35 $('.carousel_box li').eq(act).addClass('active').stop().animate({width:214, height:337}) 36 } 37 }) 38 39 $('.prev').click(function(){ 40 if (fl) { 41 fl=false; 42 if (act==1) { 43 act=Math.round((amount/3)) 44 } else { 45 act-- 46 } 47 $('.carousel_box .active').removeClass('active').stop().animate({width:160, height:252}, function(){fl=true}) 48 $('.carousel_box li').eq(act).addClass('active').stop().animate({width:214, height:337}) 49 } 50 }) 51})
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.