CHANGE image handling, ADD partials to reuse structure, REFACTOR
This commit is contained in:
parent
1265491dee
commit
01dcf04b8a
36 changed files with 1181 additions and 864 deletions
|
@ -1,10 +1,10 @@
|
|||
const scrollToTopButton = document.getElementById('totop');
|
||||
const scrollToTopListener = () => {
|
||||
if (window.scrollY > 0) {
|
||||
scrollToTopButton.className = "totop show";
|
||||
scrollToTopButton.className = "button fab show";
|
||||
} else {
|
||||
scrollToTopButton.className = "totop hide";
|
||||
scrollToTopButton.className = "button fab hide";
|
||||
}
|
||||
};
|
||||
|
||||
window.addEventListener("scroll", scrollToTopListener);
|
||||
window.addEventListener("scroll", scrollToTopListener);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue