1// JavaScript Document 2 3$(document).ready(function(e) { 4 var iWidth=$(".tools li").width(); 5 var iSan=$(".tools li").length; 6 var bmove=false; 7 8 if($(".index_tools_box .tools").length>0){ 9 $(".index_tools_box .tools").append(($(".index_tools_box .tools").html()+$(".index_tools_box .tools").html())); 10 $(".index_tools_box .tools").css("width",iWidth*iSan*3+"px"); 11 } 12 13 $(".tools a").mouseover(function(e) { 14 $(this).children("span").children("img").css("margin-top","-51px"); 15 }).mouseleave(function(e) { 16 $(".tools a img").css("margin-top","0px"); 17 }); 18 19 $(".index_tools_aR").click(function(e) { 20 if(bmove) return false; 21 move("R"); 22 }); 23 24 $(".index_tools_aL").click(function(e) { 25 if(bmove) return false; 26 move("L"); 27 }); 28 29 function move(sFlag){ 30 bmove=true; 31 var step=8; 32 var sanWidth=$(".index_tools_box").width(); 33 var imleft=parseInt($(".tools").css("margin-left")); 34 if(sFlag=="L" && (imleft+iWidth*iSan)>0){ 35 $(".tools").css("margin-left",(imleft-iWidth*iSan)+"px"); 36 } 37 //alert((iL-temp<0)? Math.floor((iL-temp)/4) : Math.ceil((iL-temp)/4)); 38 var tMove=setInterval(function(){ 39 imleft=parseInt($(".tools").css("margin-left")); 40 if(sanWidth>step){ 41 if(sFlag=="L"){ 42 $(".tools").css("margin-left",(imleft+step)+"px"); 43 }else{ 44 $(".tools").css("margin-left",(imleft-step)+"px"); 45 } 46 sanWidth-=step; 47 }else{ 48 if(sFlag=="L"){ 49 $(".tools").css("margin-left",(imleft+sanWidth)+"px"); 50 }else{ 51 $(".tools").css("margin-left",(imleft-sanWidth)+"px"); 52 } 53 imleft=parseInt($(".tools").css("margin-left")); 54 if(imleft+iWidth*iSan<=0){ 55 $(".tools").css("margin-left",(imleft+iWidth*iSan)+"px"); 56 } 57 clearInterval(tMove); 58 bmove=false; 59 } 60 61 },10); 62 } 63});
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.