footer: rm unused code

CC: #108 #64
This commit is contained in:
Aditya Telange 2020-12-05 20:40:16 +05:30
parent 80954de8bd
commit c76233b350
No known key found for this signature in database
GPG Key ID: 82E844EF3DA99E77

View File

@ -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) {