We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1354bb commit 25e7ad2Copy full SHA for 25e7ad2
script/script.js
@@ -0,0 +1,11 @@
1
+document.querySelector("._sticky-logo a").addEventListener("click", function(e) {
2
+ if(window.scrollY > 0) {
3
+ e.preventDefault();
4
+ window.scrollTo({
5
+ "behavior": "smooth",
6
+ "left": 0,
7
+ "top": 0,
8
+ });
9
+ this.blur();
10
+ }
11
+});
0 commit comments