1// document.querySelectorAll('a[href^="#"]').forEach(link => { 2// link.addEventListener('click', function(e) { 3// e.preventDefault(); 4// const targetId = this.getAttribute('href').substring(1); 5// const targetElement = document.getElementById(targetId); 6 7// if (targetElement) { 8// const offset = 110; // aantal pixels boven het element 9// const elementPosition = targetElement.getBoundingClientRect().top; 10// const offsetPosition = elementPosition + window.pageYOffset - offset; 11 12// window.scrollTo({ 13// top: offsetPosition, 14// behavior: 'smooth' 15// }); 16// } 17// }); 18// }); 19 20const allowedIds = ['onze-aanpak', 'onze-diensten', 'touch-tell-sell', 'contact']; 21 22document.querySelectorAll('a[href^="#"]').forEach(link => { 23 link.addEventListener('click', function(e) { 24 const targetId = this.getAttribute('href').substring(1); 25 26 if (allowedIds.includes(targetId)) { 27 e.preventDefault(); 28 const targetElement = document.getElementById(targetId); 29 30 if (targetElement) { 31 const offset = 110; // aantal pixels boven het element 32 const elementPosition = targetElement.getBoundingClientRect().top; 33 const offsetPosition = elementPosition + window.pageYOffset - offset; 34 35 window.scrollTo({ 36 top: offsetPosition, 37 behavior: 'smooth' 38 }); 39 } 40 } 41 }); 42});
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.