1jQuery(document).ready(function($) { 2 // Seleciona a seção que contém o summary com aria-label="Breadcrumbs" 3 var breadcrumbSection = $('summary[aria-label="Breadcrumbs"]').closest('section'); 4 5 // Adiciona a classe .sticky-breadcrumb à seção encontrada 6 if (breadcrumbSection.length) { 7 breadcrumbSection.addClass('sticky-breadcrumb'); 8 } 9 10 var options = Joomla.getOptions("plg_stickybreadcrumb"); 11 var offset = options.stickyOffset; 12 var stickyHabilitar = options.stickyHabilitar; 13 14 if(parseInt(stickyHabilitar) === 1) { 15 // Torna a seção sticky ao rolar a página 16 $(window).scroll(function() { 17 if ($(window).scrollTop() > offset) { 18 breadcrumbSection.addClass('sticky'); 19 } else { 20 breadcrumbSection.removeClass('sticky'); 21 } 22 }); 23 } 24});
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.