1(function ($) { 2 $.fn.formacionSAGA = function (parametros) { 3 var that = this; 4 5 marcarMenuPrincipalActivo(); 6 }; 7 8 function marcarMenuPrincipalActivo() { 9 var current = location.pathname; 10 var currentSinIndex = current.replace('index.html', ''); 11 $('#cabecera .menu ul li a').each(function () { 12 if ($(this).attr('href') != undefined) { 13 if (currentSinIndex.includes($(this).attr('href'))) { 14 $(this).addClass('activo'); 15 $(this).parents('li').addClass('activo'); 16 } 17 } 18 }); 19 } 20 21})(jQuery);
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.