mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-06-18 19:57:29 -05:00
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:
@ -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 => {
|
||||
|
Reference in New Issue
Block a user