1new WOW().init(); 2 3 4/*头é¨å¯¼èª*/ 5$(function() { 6 7 var width = $(window).width(); 8 var height = $(window).height(); 9 if (width > 768) { 10 $('.header').removeClass('active'); 11 $(window).scroll(function() { 12 if (window.scrollY <= 10) { 13 $('.header').removeClass('active'); 14 15 } else { 16 $('.header').addClass('active'); 17 } 18 }); 19 20 $(document).mouseup(function (e) { 21 var con = $('.header .ej_box'); // è®¾ç½®ç®æ åºå 22 if (!con.is(e.target) && con.has(e.target).length === 0 ) { 23 $('.header .nav_con').removeClass('active'); 24 $('.header .nav_con > li').removeClass('active'); 25 $('.header .nav_con > li> .nav_ej').slideUp(); 26 } 27 }); 28 29 30 }else{ 31 $('.header').addClass('active'); 32 33 $('.nav-button').click(function () { 34 $('.header .nav_con').addClass('active'); 35 }); 36 37 $('.header .nav_close').click(function () { 38 $('.header .nav_con').removeClass('active'); 39 $('.header .nav_con > ul').removeClass('active'); 40 $('.header .nav_con > ul li .nav_ej').slideUp(); 41 }); 42 43 $(document).mouseup(function (e) { 44 var con = $('.header .nav_con > ul'); // è®¾ç½®ç®æ åºå 45 if (!con.is(e.target) && con.has(e.target).length === 0 ) { 46 $('.header .nav_con').removeClass('active'); 47 $('.header .nav_con > li').removeClass('active'); 48 $('.header .nav_con > li> .nav_ej').slideUp(); 49 } 50 }); 51 52 $('.header .nav_con > ul > li').click(function () { 53 if($(this).find('.nav_ej').length>0){ 54 $(this).find('.nav_ej').slideToggle(); 55 $(this).siblings().find('.nav_ej').slideUp(); 56 $(this).toggleClass('active'); 57 $(this).siblings().removeClass('active'); 58 } 59 }); 60 /*åºé¨å¯¼èª*/ 61 $('.nav_li_one').click(function () { 62 $(this).parent('.footer_nav_li').find('.nav_sub').slideToggle(); 63 }); 64 } 65 66 67 68 $('.header .nav_con > ul li').each(function(){ 69 $(this).hoverDelay({ 70 hoverDuring: 100, 71 outDuring: 100, 72 hoverEvent:function(){ 73 $(this).find('.nav_ej').slideDown(); 74 75 }, 76 outEvent:function () { 77 $(this).find('.nav_ej').slideUp(); 78 } 79 }); 80 }); 81}) 82 83 84/*åç±»é«äº®*/ 85$(function() { 86 var pathName = window.location.pathname; // è·å¾è·¯å¾ä¿¡æ¯ 87 var subUrl = pathName.substring(pathName.lastIndexOf("/")); 88 $(".cate_name a").each(function() { // éåa龿¥çè·¯å¾ 89 var aLinkUrl = $(this).attr("href"); // å¾å°a龿¥çè·¯å¾ 90 if (aLinkUrl == pathName) { 91 $(this).parents('.cate_name').addClass("wy_Click"); 92 return; 93 }; 94 }); 95}); 96/*end*/ 97 98 99 100/*页ç */ 101$(function() { 102 setInterval(function(){ 103 $('.page_prev').text('ä¸ä¸é¡µ'); 104 $('.page_next').text('ä¸ä¸é¡µ'); 105 },500); 106}); 107 108/*åºé¨å¯¼èª*/ 109$(".footer_nav_li i").click(function(){ 110 $(this).parents('.footer_nav_li').toggleClass('active') 111 $(this).parents('.footer_nav_li').find('.nav_sub').slideToggle('slow') 112}) 113 114/*详æ ä¸ä¸ç¯*/ 115$('.news_article').each(function(){ 116 var article = $(this).find('a').text().trim(); 117 if(article === 'æ '){ 118 $(this).addClass('none'); 119 }else{ 120 $(this).removeClass('none'); 121 } 122}) 123 124/*å»é¤banneræå è½½*/ 125$(function(){ 126 var n_time=setInterval(function(){ 127 if($(".ny_banner source").length>0){ 128 $(".ny_banner source").each(function(){ 129 var n_link=$(this).attr("srcset"); 130 if(n_link.indexOf('_') !== -1){ 131 n_link = n_link.substring(0,n_link.lastIndexOf("_")); 132 $(this).attr("srcset",n_link); 133 } 134 }); 135 clearInterval(n_time) 136 } 137},200) 138})
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.