anchorz typo.. why not...

This commit is contained in:
Marcell Mars 2020-12-07 15:22:06 +01:00
parent e4c27629ee
commit ba2a130517

View file

@ -71,7 +71,7 @@ window.addEventListener('DOMContentLoaded', (e) => {
}) })
}) })
document.querySelectorAll('.anchors').forEach(i => { document.querySelectorAll('.anchorz').forEach(i => {
i.addEventListener('click', e => { i.addEventListener('click', e => {
setTimeout(() => { setTimeout(() => {
window.scrollBy({ top: document.querySelector('.header').clientHeight * -1.25, behavior: 'smooth' }) window.scrollBy({ top: document.querySelector('.header').clientHeight * -1.25, behavior: 'smooth' })