1$(function (){ 2 //è¨å® 3 var active="active",interval=5000; 4 var index=0, timerId=null; 5 var tabs=$("#thumbBtn > li"), content=$("#view > p"), cap=$("#caption > li"); 6 7 //ã¯ã©ã¹ã®ä»ä¸ 8 tabs.each(function(){$(this).removeClass(active);}); 9 content.hide(); 10 cap.hide(); 11 tabs.eq(0).addClass(active); 12 content.eq(0).fadeIn(2000); 13 cap.eq(0).fadeIn(2000); 14 15 //ã¯ãªãã¯ããããactiveã¨ããã¯ã©ã¹ãä»ä¸ã 16 //åãæ¿ããã¿ã¤ãã¼ããªã»ãã 17 tabs.click(function(){ 18 if($(this).hasClass("active")) return; 19 if(timerId) clearInterval(timerId),timerId=null; 20 change(tabs.index(this)); 21 setTimer(); 22 return false; 23 }); 24 25 //ã¿ã¤ãã¼ 26 setTimer(); 27 function setTimer(){ 28 timerId=setTimeout(timeProcess,interval); 29 return false; 30 } 31 32 function timeProcess(){ 33 change((index+1)%tabs.length); 34 timerId=setTimeout(arguments.callee,interval); 35 } 36 37 //åãæ¿ã 38 function change(t_index){ 39 tabs.eq(index).removeClass(active); 40 tabs.eq(t_index).addClass(active); 41 //fadeout 42 setTimeout(function(){ 43 content.eq(index).stop(true, true).fadeOut(500), 44 cap.eq(index).stop(true, true).hide() 45 ;}, 300); 46 //fadein 47 setTimeout(function(){ 48 index=t_index; 49 content.eq(index).fadeIn(500), 50 cap.eq(index).fadeIn(1000) 51 ;}, 400) 52 } 53});
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.