1$(document).ready(function(){ 2 var b_banner_limit = $('#big_banner_container img').length; 3 var b_banner_interval; 4 var b_current_idx = 0; 5 if(b_banner_limit > 1){ 6 $('#big_banner_container img').css({opacity:0,zIndex:0}).eq(0).css({opacity:1,zIndex:1}); 7 var b_banner_animate = function(status,clear,idx){ 8 if(clear){ 9 clearTimeout(b_banner_interval); 10 } 11 $('#big_banner_container img').eq(b_current_idx).css({zIndex:0}).stop().animate({opacity:0},1200); 12 switch(status){ 13 case 'next':{ 14 b_current_idx++; 15 if(b_current_idx >= b_banner_limit){ 16 b_current_idx = 0; 17 } 18 break; 19 } 20 case 'prev':{ 21 b_current_idx--; 22 if(b_current_idx < 0){ 23 b_current_idx = b_banner_limit-1; 24 } 25 break; 26 } 27 case 'idx':{ 28 b_current_idx = idx; 29 } 30 } 31 $('#b_banner_dot li').removeClass('select').eq(b_current_idx).addClass('select'); 32 $('#big_banner_container img').eq(b_current_idx).css({zIndex:1}).stop().animate({opacity:1},1200); 33 b_banner_interval = setTimeout(function(){ 34 b_banner_animate('next',false,-1); 35 },10000); 36 }; 37 b_banner_interval = setTimeout(function(){ 38 b_banner_animate('next',false,-1); 39 },10000); 40 41 $('.arrow_left a').click(function(e){ 42 e.preventDefault(); 43 b_banner_animate('prev',true,-1); 44 }); 45 $('.arrow_right a').click(function(e){ 46 e.preventDefault(); 47 b_banner_animate('next',true,-1); 48 }); 49 $('#b_banner_dot a').click(function(e){ 50 e.preventDefault(); 51 var _idx = $(this).parent().index(); 52 b_banner_animate('idx',true,_idx); 53 }); 54 } 55 56 57 var s_banner_limit = Math.ceil($('#small_banner_mask dl').children().length/4); 58 var s_banner_interval; 59 var s_current_idx = 0; 60 61 $('#s_banner_dot a').click(function(e){ 62 e.preventDefault(); 63 var _idx = $(this).parent().index(); 64 $('#s_banner_dot li').removeClass('select').eq(_idx).addClass('select'); 65 $('#small_banner_mask .list').stop().animate({left:-(942*_idx)+'px'},500); 66 }); 67 68 69 70 71 var kv_arr_status = 120; 72 function kv_arr(){ 73 $('.kvbox .arrow').stop().animate({bottom:kv_arr_status},800,kv_arr); 74 kv_arr_status = kv_arr_status == 120 ? 100 : 120; 75 } 76 kv_arr(); 77 78 $('.kvbox .arrow a').click(function(e){ 79 e.preventDefault(); 80 $('html,body').animate({scrollTop:getBrowserHeight()-$('.nav').height()},800); 81 }); 82 83 var nav_set = function(){ 84 var _top = $(window).scrollTop(); 85 if(_top <= getBrowserHeight()*2/3){ 86 $('.navbox .nav').removeClass('pulldown'); 87 } 88 else{ 89 $('.navbox .nav').addClass('pulldown'); 90 } 91 }; 92 nav_set(); 93 if(BROWSER.versions.mobile){ 94 document.addEventListener('touchmove', nav_set); 95 } 96 else{ 97 $(window).scroll(nav_set); 98 } 99 100 101});
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.