Initial Commit
This commit is contained in:
parent
bdbb15e52e
commit
c20d262f7c
26 changed files with 1006 additions and 0 deletions
10
static/js/totop.js
Normal file
10
static/js/totop.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
const scrollToTopButton = document.getElementById('totop');
|
||||
const scrollToTopListener = () => {
|
||||
if (window.scrollY > 0) {
|
||||
scrollToTopButton.className = "totop show";
|
||||
} else {
|
||||
scrollToTopButton.className = "totop hide";
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener("scroll", scrollToTopListener);
|
Loading…
Add table
Add a link
Reference in a new issue