Remove back to top button

It's kind of ugly and weird, and probably not necessary. I might add it
back in the future if it's actually needed again.
This commit is contained in:
2023-11-05 17:41:59 -06:00
parent 9ca15a198f
commit c980ced2fb
3 changed files with 0 additions and 43 deletions

View File

@ -1,13 +1,3 @@
// back to top
const backToTop = document.getElementById("back-to-top");
window.onscroll = function() {
if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
backToTop.style.display = "block";
} else {
backToTop.style.display = "none";
}
}
// code block copy to clipboard
window.onload = () => {
document.querySelectorAll(".code-block").forEach(codeBlock => {