From c76233b350fde926c557e49b1a5f0bab8edddc55 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sat, 5 Dec 2020 20:40:16 +0530 Subject: [PATCH] footer: rm unused code CC: #108 #64 --- layouts/partials/footer.html | 8 -------- 1 file changed, 8 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 76d8e497..5cd64a9f 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -32,14 +32,6 @@ document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position"); } } - document.querySelectorAll('a[href^="#"]').forEach(anchor => { - anchor.addEventListener("click", function (e) { - var id = this.getAttribute("href").substr(1); - document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({ - behavior: "smooth" - }); - }); - }); var mybutton = document.getElementById("top-link"); window.onscroll = function () { if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {