1$(document).ready(function () { 2 var path = window.location.pathname; 3 path = path.replace(/\/$/, ""); 4 path = decodeURIComponent(path); 5 6 $(".mega-menu .nav a").each(function(){ 7 var href = $(this).attr('href'); 8 href = href.replace(/\/$/, ""); 9 href = decodeURIComponent(href); 10 if (path.substring(0, href.length) === href) { 11 $(this).closest('li').addClass('active'); 12 $(this).closest('ul').prev('.h3').addClass('active'); 13 14 var parent = $(this).parents('li.mainnav-lvl1.dropdown'); 15 var parentHref = parent.find('a.mainnav-lvl1.dropdown-toggle').attr("href"); 16 if (parentHref) { 17 parentHref = parentHref.replace(/\/$/, ""); 18 parentHref = decodeURIComponent(parentHref); 19 20 if (path.substring(0, parentHref.length) === parentHref) { 21 parent.addClass("active"); 22 23 } 24 } 25 } 26 }); 27});
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.