1$(function(){ 2 function setActiveMenu(){ 3 var pageUrl = document.location.origin + document.location.pathname, 4 pageUrlWithHash = pageUrl + document.location.hash, 5 $el = null; 6 7 $('#nav-da-pagina a').each(function(){ 8 var href = $(this).attr('href'); 9 if(pageUrl.substr(-href.length) === href || pageUrlWithHash.substr(-href.length) === href){ 10 $el = $(this); 11 } 12 }); 13 14 if($el){ 15 $('#nav-da-pagina a').removeClass('active'); 16 $el.addClass('active'); 17 } 18 } 19 20 setActiveMenu(); 21 22 $(window).on('hashchange', setActiveMenu); 23 24 document.title = $('.main-content h1:first').text(); 25});
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.