1document.addEventListener('DOMContentLoaded', function() { 2 3 new fullpage('#fullpage', { 4 autoScrolling: true, 5 navigation: true, 6 scrollOverflow: false, 7 responsiveWidth: 992, 8 9 // --- Detectar sección visible --- 10 afterLoad: function(origin, destination, direction) { 11 const index = destination.index; 12 13 document.body.classList.forEach(cls => { 14 if (cls.startsWith('section-')) document.body.classList.remove(cls); 15 }); 16 17 document.body.classList.add(`section-${index}`); 18 }, 19 20 // --- Volver arriba --- 21 afterRender: function() { 22 const goTop = document.getElementById('goTop'); 23 if (!goTop) return; 24 25 goTop.addEventListener('click', function() { 26 const firstBullet = document.querySelector('#fp-nav ul li a'); 27 if (firstBullet) firstBullet.click(); 28 }); 29 } 30 }); 31 32});
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.