1// JavaScript Document 2 3$(document).ready(function(){ 4 5 var n=0; 6 $(".nav-btnbox").click(function() { 7 if(n==0){ 8 $("body").addClass("menu-open") 9 n=1; 10 }else { 11 $("body").removeClass("menu-open") 12 n=0; 13 } 14 15 }); 16 17 18 19 function topshow(){ 20 if ($(window).scrollTop() > 10) { 21 $(".top").addClass("cur"); 22 23 } else { 24 25 $(".top").removeClass("cur"); 26 27 } 28 } 29 30 31 32 topshow() 33 34 $(window).scroll(function() { 35 topshow() 36 }); 37 38 39 40if ($(window).width() > 1100) { 41 42 $(".nav li").hover(function(){ 43 $(this).find(".navdown").stop().slideDown() 44 },function(){ 45 $(this).find(".navdown").stop().slideUp() 46 }) 47 48 49 $(".wenhuabox li").mouseenter(function(){ 50 $(this).addClass("cur").siblings("li").removeClass("cur"); 51 52 }) 53 54 55 56 57} 58 59else{ 60 61 $(".nav li").click(function(){ 62 $(this).siblings("li").find(".navdown").slideUp() 63 $(this).find(".navdown").slideToggle().toggleClass("cur") 64 65 }) 66 67 68 69 70 } 71 72 73if ($(window).width() > 767) { 74 75 76 $(".wenhuabox li").mouseenter(function(){ 77 $(this).addClass("cur").siblings("li").removeClass("cur"); 78 79 }) 80 81 82 83 84} 85 86 87 88 89 90 $(".zizhitit li").click(function(){ 91 92 $(this).addClass("cur").siblings("li").removeClass("cur"); 93 $(".honorboxs").eq($(this).index()).addClass("cur").siblings(".honorboxs").removeClass("cur"); 94 }) 95 96 $(".abnav li").click(function () { 97 $(this).addClass("cur").siblings("li").removeClass("cur"); 98 $("html,body").animate({ scrollTop: $(".item").eq($(this).index()).offset().top - 80 }, 500); 99 100 }); 101 102 103 104 105 106$('.nynavselect').on('click', '.placeholder', function(e) { 107 var parent = $(this).closest('.nynavselect'); 108 if (!parent.hasClass('is-open')) { 109 parent.addClass('is-open'); 110 $('.nynavselect.is-open').not(parent).removeClass('is-open'); 111 } else { 112 parent.removeClass('is-open'); 113 } 114 e.stopPropagation(); 115 116}).on('click', 'ul>li', function() { 117 var parent = $(this).closest('.nynavselect'); 118 parent.removeClass('is-open').find('.placeholder').text($(this).text()); 119}); 120 121$('body').on('click', function() { 122 $('.nynavselect.is-open').removeClass('is-open'); 123}); 124 125 126 127 128}) 129 130 131 132 133 134 135
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.