1// JavaScript Document 2$( document ).ready(function() { 3 4 var pageNo = $('#pageNo').text(); 5 $('#globalNav>div').eq(pageNo).addClass('navCurrent'); 6 $('#globalNav>div').hover(function(){ 7 $(this).children('ul').stop(true,true).slideToggle(500); 8 }); 9 10 11 $('#nanomarkBtn').hover( 12 function(){ $(this).children('#nanomarkBtnItem').stop().animate({height:150});} 13 ,function(){ $(this).children('#nanomarkBtnItem').stop().animate({height:0});} 14 ); 15 16 17 var currentOpen = -1; 18 $('#nav4mobile #mobileNav>li>a.noLink').click(function() { 19 //夿·æå°çæ¯å·²éåçå? 20 //alert($(this).parent().index()); 21 $('#nav4mobile #mobileNav ul').slideUp(500); 22 if($(this).parent().index() != currentOpen){ 23 //$('#nav ul').slideUp(500); 24 $(this).next().stop(true,true).slideDown(500); 25 currentOpen = $(this).parent().index(); 26 }else{ 27 //$('#nav ul').slideUp(500); 28 currentOpen = -1; 29 } 30 return false; //解決é»é¸ç¬¬ä¸å±¤liæéæé£çµè³å ¶ä»é é¢ 31 }); 32 33 34 $('.bxslider').bxSlider({ 35 auto: true 36 ,controls: true /*å·¦/å³åæç®é */ 37 /*,autoControls: true ææ¾/忢 æé*/ 38 ,captions: true 39 }); 40 41 42 $('.pgwSlider').pgwSlider({ 43 displayControls: true 44 }); 45 46 $('.iframe').colorbox({ 47 iframe: true 48 ,width: "80%" 49 ,height: "80%" 50 }); 51 52 53 //backTop å尿䏿¹ ============================= 54 $('#backTop').backTop({ 55 position: 400 // the scroll position in px from the top 56 ,speed: 500 // scroll animation speed 57 ,color: 'black' // red, white, black or green 58 }); 59 60 $('#Tab').tab(); 61 62 63}); 64 65//masonry ç叿µ ============================= 66window.onload = function(e) { 67 $('.masonryItem').masonry({ 68 itemSelector:'.item' 69 ,isAnimated: true 70 ,percentPosition: true 71 }); 72}; 73
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.