Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
document.addEventListener("DOMContentLoaded", function() {
document.querySelectorAll(`[data-action="click.jump"]`).forEach(el => {
el.addEventListener("click", e => {
e.preventDefault;
const anchor = e.target;
console.log(anchor);
jump(anchor.getAttribute("href"));
});
});
const app = new Init({
selector: document.body,
components: {
Counter,
HoverBuddy
}
});
console.log(app);
});