1const value80vh = window.innerHeight * 0.8; 2const menu_desktop = document.querySelector('#menu-desktop'); 3const menu_mobile = document.querySelector('#menu-mobile'); 4 5window.addEventListener('scroll', () => { 6 const scrolled = window.pageYOffset; 7 const windowHeight = window.innerHeight; 8 const diapo = document.querySelector('.diapo-bg'); 9 const scrollRange = windowHeight * 1.5; 10 11 if (scrolled < scrollRange) { 12 const translateY = -scrolled * 0.5; 13 const opacity = Math.max(.5, 1 - (scrolled / windowHeight)); 14 diapo.style.transform = `translateY(${translateY}px)`; 15 diapo.style.opacity = opacity; 16 } 17 const scrollAmount = window.scrollY; 18 if (scrollAmount > value80vh) { 19 menu_desktop.style.background = "linear-gradient(180deg, black, transparent)"; 20 menu_mobile.style.background = "linear-gradient(180deg, black, transparent)"; 21 } else { 22 menu_desktop.style.background = "transparent"; 23 menu_mobile.style.background = "transparent"; 24 } 25});
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.