1document.querySelector('body').addEventListener('click', e => { 2 if ( e.target.closest('.icon-menu') ) { 3 console.log('click') 4 document.querySelector('.icon-menu').classList.toggle('off'); 5 document.querySelector('.icon-x').classList.toggle('off'); 6 document.querySelector('.mobile-nav').classList.toggle('mobile-nav-opened') 7 } 8 if ( e.target.closest('.icon-x') ) { 9 console.log('click') 10 document.querySelector('.icon-menu').classList.remove('off'); 11 document.querySelector('.icon-x').classList.remove('off'); 12 document.querySelector('.mobile-nav').classList.remove('mobile-nav-opened') 13 } 14}); 15 16 17document.querySelectorAll('.anchor__menu a').forEach(link => { 18 link.addEventListener('click', function(e) { 19 e.preventDefault(); 20 21 let href = this.getAttribute('href').substring(1); 22 const scrollTarget = document.getElementById(href); 23 24 if (!scrollTarget) return; 25 26 const elementPosition = scrollTarget.getBoundingClientRect().top + window.scrollY; 27 const offsetPosition = elementPosition - 80; 28 29 window.scrollTo({ 30 top: offsetPosition, 31 behavior: 'smooth' 32 }); 33 }); 34}); 35 36 37const links = document.querySelectorAll('a[href="#"]'); 38links.forEach(link => { 39 link.href = "/link/go/"; 40});
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.