1/*1790588016000*/ 2document.addEventListener('DOMContentLoaded', function() { 3 const scrollBtn = document.getElementById('scrollToTop'); 4 5 // Función para evitar spam de eventos scroll 6 let ticking = false; 7 function updateVisibility() { 8 if (window.scrollY > 300) { 9 scrollBtn.classList.add('scroll-to-top--visible'); 10 } else { 11 scrollBtn.classList.remove('scroll-to-top--visible'); 12 } 13 ticking = false; 14 } 15 16 // Muestra/oculta botón según scroll 17 window.addEventListener('scroll', function() { 18 if (!ticking) { 19 requestAnimationFrame(updateVisibility); 20 ticking = true; 21 } 22 }); 23 24 // Click para desplazarse al inicio 25 scrollBtn.addEventListener('click', function() { 26 window.scrollTo({ 27 top: 0, 28 behavior: 'smooth' 29 }); 30 }); 31});
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.