1 2$(function(){ 3 var ulH = $(".fmenu-list").outerHeight() 4 $(".prosolu-cont .lef").height(ulH) 5 $(window).scroll(function () { 6 var cTop = $(".prosolu-cont").offset().top; 7 var ftHeight1 = $(".footer").height(); 8 var ftHeight2 = $(".prosolu-solution").outerHeight(); 9 var ftHeight = ftHeight1+ftHeight2 + 100 10 awayBtm = $(document).height() - $(window).scrollTop() - $(window).height(); 11 if($(window).scrollTop()>=cTop){ 12 $(".prosolu-cont .lef").addClass("fixed"); 13 }else { 14 $(".prosolu-cont .lef").removeClass("fixed"); 15 } 16 if(awayBtm<=ftHeight){ 17 $(".prosolu-cont .lef").removeClass("fixed"); 18 } 19 }) 20 21 22 23 $('.fmenu-list li').click(function(){ 24 // 页é¢å¹³æ»çæ»å¨å°ç¸åºçä½ç½® 25 scrollToTop($("."+$(this).attr("id")).offset().top) 26 }) 27 /* ç嬿»å¨ */ 28 $(document).scroll(function() { 29 if ($(document).height() <= (parseInt($(document).scrollTop() + 1) + $(window).height())){ //æ»å¨æ¡æ»å°åºé¨å¦ 30 $(".fmenu-list li").removeClass('active') 31 $(".fmenu-list li:last").addClass('active') 32 return; 33 } 34 var top = $(document).scrollTop(); //æ»å¨æ¡è·ç¦»é¡¶é¨çé«åº¦ 35 $(".li-item").each(function (i,item) { 36 if($(this).offset().top <= top){ 37 $(".fmenu-list li").removeClass('active') 38 $("#"+item.classList[1]).addClass('active'); 39 } 40 }) 41 }); 42 })
43 /** å°æ»å¨è½´æ»å°ç¸åºä½ç½® */ 44 function scrollToTop(number) { 45 window.scrollTo({ 46 top: number, 47 behavior: "smooth" 48 }); 49 }
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.