1/* 2 * To change this license header, choose License Headers in Project Properties. 3 * To change this template file, choose Tools | Templates 4 * and open the template in the editor. 5 */ 6 7 8$('a[href*="#"]') 9 // Remove links that don't actually link to anything 10 .not('[href="#"]') 11 .not('[href="#0"]') 12 .click(function(event) { 13 // On-page links 14 if ( 15 location.pathname.replace(/^\//, '') === this.pathname.replace(/^\//, '') 16 && 17 location.hostname === this.hostname 18 ) { 19 // Figure out element to scroll to 20 var target = $(this.hash); 21 target = target.length ? target : $('[name=' + this.hash.slice(1) + ']'); 22 // Does a scroll target exist? 23 if (target.length) { 24 // Only prevent default if animation is actually gonna happen 25 event.preventDefault(); 26 $('html, body').animate({ 27 scrollTop: target.offset().top - 70 28 }, 1000); 29 } 30 } 31 }); 32 33 34
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.