1$(function () { 2 3 var animateDH = $('.animationDH'); 4 var _ht = $(window).height(); 5 var breads = $('.aboutItems .abItem'); 6 var fixedTops = $('.publicNav') 7 var animateTop = fixedTops.length > 0 ? fixedTops.offset().top : 0; 8 $(window).bind('scroll load resize', function () { 9 10 // $(".header").mouseenter(function () { 11 // $('.header').addClass('active') 12 // }) 13 // $(".header").mouseleave(function () { 14 // $('.header').removeClass('active') 15 // }) 16 17 18 if ($(document).scrollTop() > 1) { 19 $('.fiveItem').addClass('active'); 20 21 $(".header2").mouseleave(function () { 22 $('.header2').addClass('active') 23 }) 24 25 } else { 26 $('.fiveItem').removeClass('active') 27 } 28 if ($(document).scrollTop() > $(window).height() / 2) { 29 $('.scrollToTop').stop(true, true).fadeIn(); 30 } else { 31 $('.scrollToTop').stop(true, true).fadeOut(); 32 } 33 if (animateDH.length > 0) { 34 var scrollTop = $(window).scrollTop() + _ht; 35 animateDH.each(function (i, o) { 36 var animateTop = $(o).offset().top; 37 if (scrollTop > animateTop) { 38 $(o).addClass('current'); 39 } 40 }); 41 } 42 if (fixedTops.length > 0) { 43 fixedTops.each(function () { 44 scrollTop = $(window).scrollTop(); 45 if (scrollTop >= animateTop) { 46 fixedTops.addClass("on"); 47 } else { 48 fixedTops.removeClass("on"); 49 } 50 }); 51 } 52 if (breads.length > 0) { 53 breads.each(function (i, o) { 54 var scrollTop = $(window).scrollTop(); 55 var animateTop = $(o).offset().top - fixedTops.height(); 56 if (scrollTop >= animateTop - 100) { 57 index_ = i; 58 $('.publicNav dd').eq(index_).addClass('on').siblings().removeClass('on'); 59 } 60 }); 61 } 62 63 }); 64 65 66 function autoheader() { 67 if ($(".header1").length > 0 && $(window).scrollTop() > 1) { 68 69 $(".header1").removeClass("show"); 70 } else { 71 $(".header1").addClass("show"); 72 } 73 74 if ($(window).scrollTop() > 1) { 75 $(".header2").addClass("show active"); 76 } 77 else { 78 $(".header2").removeClass("show active"); 79 } 80 81 } 82 83 84 $(window).scroll(function () { 85 autoheader(); 86 }) 87 autoheader(); 88 89 90 91 92 $(".scrollToTop").click(function () { 93 $('body,html').animate({ scrollTop: 0 }, 500); 94 }); 95 96 $(".slideNav .link .twoNav").mouseenter(function () { 97 $(".slideNav > .link").removeClass("open"); 98 $(this).parents(".link").addClass("open"); 99 100 }); 101 $(".slideNav .link").mouseleave(function () { 102 103 $(this).removeClass("open"); 104 }); 105 106 $(".threeNav").parents(".link").find(".twoNav").addClass("navMore"); 107 108 109 $(".searchBtn").click(function () { 110 $(".searchBox").css("display", "flex") 111 }) 112 $(".searchBox .close").click(function () { 113 $(".searchBox").css("display", "none") 114 }) 115}) 116window.onload = function () { 117 118 /*éç°å®é¥çºãé®ï¿½*/ 119 $(".toTop").click(function () { 120 $('body,html').animate({ scrollTop: 0 }, 500); 121 }); 122 /*éµå¬«æºçµè°å éå¨å´²*/ 123 $(".navMenu").bind("click", function () { 124 $('.navFlex').stop(true, true).slideToggle() 125 $(this).toggleClass("on"); 126 $('.header').toggleClass('open') 127 }); 128 $('.clickDiv').on('click', function () { 129 var that = $(this).parent() 130 $(this).toggleClass('on') 131 that.find('.slideNav').stop(true, true).slideToggle() 132 that.siblings().find('.slideNav').stop(true, true).slideUp() 133 that.siblings().find('.clickSpan').removeClass('on') 134 }) 135 $('.twoNav ').on('click', function () { 136 var that = $(this).parent() 137 $(this).toggleClass('on') 138 that.find('.threeNav').stop(true, true).slideToggle() 139 that.siblings().find('.slideNav').stop(true, true).slide
139Up() 140 that.siblings().find('.clickSpan').removeClass('on') 141 }) 142 143$('.goTop').click(function () { 144 145 $('body,html').stop().animate({ 146 scrollTop: 0 147 }); 148 149 return false; 150 151 }); 152 153 154} 155 156 157 158 159 160 161 162 163
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.