1var t=0; 2var st=0; 3var scrollComplete=1; 4var countHold=0; 5var carouselCount=0; 6 7 8$(document).ready(function () 9{ 10 init() 11 drawTimer(); 12 13 $("#mCarousel").swipe( { 14 swipeLeft:function(event, direction, distance, duration, fingerCount) { 15 goNext(event); 16 }, 17 threshold:75, 18 swipeRight:function(event, direction, distance, duration, fingerCount) { 19 goPrev(event); 20 }, 21 threshold:75 22 }); 23 24 $('#mCarousel li').parascroll(); 25 26 27}); 28 29 30$(window).resize(function() { 31 setSizes(); 32}); 33 34$(window).scroll(function() { 35 36}); 37 38 39function init() { 40 var currentCell = $("#mCarousel ul").find("li:last").attr('id'); 41 setCurrentSlideStlyes(currentCell); 42 var addCell = currentCell.replace("cell", "thumbcont"); 43 $("#"+addCell).addClass( "slideFocusCircle" ); 44 45 $(".goNext").bind("click", {currCurrCarousel: "carousel"}, goNext); 46 $(".goPrev").bind("click", {currCurrCarousel: "carousel"}, goPrev); 47 $(".goSelected").bind("click", {currCurrCarousel: "carousel"}, goSelected); 48 49 50 $(".rollSlide").hover( 51 function() { 52 cancelRotate(); 53 countHold=1; 54 }, 55 function() { 56 countHold=0; 57 } 58 ); 59 60 //var list = $('#mCarousel ul'); 61 //var listItems = list.children('li'); 62 //list.append(listItems.get().reverse()); 63 carouselCount = $("#mCarousel ul").find("li:last").index(); 64 setSizes(); 65} 66 67function setSizes() { 68 69} 70 71 72function cancelRotate() { 73 clearTimeout(st); 74} 75 76 77function goPrev(event){ 78 if(scrollComplete){ 79 scrollComplete=0; 80 clearTimeout(st); 81 $("#mCarousel ul").find("li:first").hide(); 82 $("#mCarousel ul").find("li:last").after($("#mCarousel ul").find("li:first")); 83 $("#mCarousel ul li:last").fadeIn(600, function(){ 84 scrollComplete=1; 85 drawTimer(); 86 }); 87 setCurrentSlideStlyes($("#mCarousel ul").find("li:last").attr('id')); 88 } 89 return false; 90} 91 92 93function goNext(event){ 94 if(scrollComplete){ 95 scrollComplete=0; 96 clearTimeout(st); 97 $('#mCarousel ul li:last').fadeOut(600, function() { 98 $("#mCarousel ul").find("li:first").before($("#mCarousel ul").find("li:last")); 99 $('#mCarousel ul li:first').show(); 100 scrollComplete=1; 101 drawTimer(); 102 }); 103 setCurrentSlideStlyes($("#mCarousel ul").find("li:last").prev().attr('id')); 104 } 105 return false; 106} 107 108 109function goSelected(event){ 110 111 if(scrollComplete) { 112 scrollComplete=0; 113 var clickedID = event.target.id; 114 var gotoCell = clickedID.replace("goto", "cell"); 115 var gotoCell = gotoCell.replace("gothumb", "cell"); 116 var currentCell = $("#mCarousel ul").find("li:last").attr('id'); 117 var gotoCellIndex = $("#"+gotoCell).index(); 118 119 120 if((gotoCell != currentCell)){ 121 clearTimeout(st); 122 $( "#mCarousel ul li" ).not("#"+gotoCell+",#"+currentCell ).css( "visibility", "hidden" ); 123 $('#mCarousel ul li:last').fadeOut(600, function() { 124 for (var i=carouselCount; i>gotoCellIndex; i--) { 125 $("#mCarousel ul").find("li:first").before($("#mCarousel ul").find("li:last")); 126 } 127 $('#'+currentCell).show(); 128 $( "#mCarousel ul li" ).not("#"+gotoCell+",#"+currentCell ).css( "visibility", "visible" ); 129 scrollComplete=1; 130 drawTimer(); 131 }); 132 setCurrentSlideStlyes(gotoCell); 133 } else { 134 scrollComplete=1; 135 } 136 } 137 return false; 138 139} 140 141 142function setCurrentSlideStlyes(sdirection) { 143 //alert(sdirection); 144 var addCell = sdirection.replace("cell", "goto"); 145 146 $( ".slideBlurCircle" ).each(function() { 147 $(this).removeClass( "slideFocusCircle" ); 148 }); 149 $("#"+addCell).addClass( "slideFocusCircle" ); 150 151} 152 153 154function drawTimer() { 155 st = setInterval(function(){ 156 clearTimeout(st); 157 goNext(); 158 },9200); 159} 160
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.