1 2//²®p 3var headerHight = 0; 4 5$(function () { 6 $("a[href^='#']").on("click", function () { 7 if($('#fixedBox').hasClass('fixed') == false){ 8 $('#fixedBox').addClass('fixed'); 9 } 10 var href= $(this).attr("href"); 11 var target = $(href == "#" || href == "" ? 'html' : href); 12 var position = target.offset().top-headerHight; 13 console.log("position2="+position); 14 $("html, body").animate({scrollTop:position},50, "swing"); 15 return false; 16 }); 17 18 $(window).on('load', function() { 19 id = location.hash; 20 speed = 0; 21 if ( '' != id ) { 22 position = jQuery( id ).offset().top - headerHight; 23 console.log("position3="+position); 24 $("html, body").animate({scrollTop:position},50, "swing"); 25 } 26 }); 27 28 $(".gmenulink").on("click", function () { 29 var currentUrl = location.pathname; 30 var url1 = currentUrl.split("/"); 31 url1[1] = "/"+url1[1]; 32 var targetUrl = $(this).children("a").attr("href"); 33 if ($(this).children("a").attr("href")) { 34 if ( targetUrl.indexOf("http") != -1) { 35 var targetdomein = targetUrl.split("/"); 36 var targetUri = targetUrl.split(targetdomein[2]); 37 targetUrl = targetUri[1]; 38 } 39 if ( targetUrl.indexOf("#") != -1) { 40 if($('#fixedBox').hasClass('fixed') == false){ 41 $('#fixedBox').addClass('fixed'); 42 } 43 var url2 = targetUrl.split("/"); 44 var url3 = targetUrl.split("#"); 45 var target; 46 var position; 47 if (url3[0] === url1[1] && url3[1]) { 48 event.preventDefault(); 49 id = url3[1]; 50 position = $('#'+id).offset().top - headerHight; 51 $("body,html").animate({ scrollTop: position },50, "swing"); 52 return false; 53 } 54 } 55 } 56 }); 57});
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.