We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bae890e commit 3ea7737Copy full SHA for 3ea7737
1 file changed
javascripts/scroll-up.js
@@ -2,7 +2,7 @@ export default function () {
2
// function to scroll up to page top
3
const PageTopBtn = document.getElementById('js-scroll-top')
4
if (!PageTopBtn) return
5
-
+
6
PageTopBtn.addEventListener('click', (e) => {
7
window.scrollTo({
8
top: 0,
0 commit comments