Skip to content

Commit

Permalink
Update scroll_up.js
Browse files Browse the repository at this point in the history
  • Loading branch information
B1B0nNer committed Jul 6, 2023
1 parent 6b46998 commit 8cadf20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/scroll_up.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const scrollTopBtn = document.querySelector(".scrollup");
function scrollTop() {
const scrollTopBtn = document.querySelector(".scrollup");
if (window.scrollY >= 200)
scrollTopBtn.classList.add("scrollup-show");
else
Expand Down

0 comments on commit 8cadf20

Please sign in to comment.