diff options
author | Florian Dold <florian@dold.me> | 2021-05-07 13:50:26 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-05-07 13:50:26 +0200 |
commit | b3dd9489f04385fff095a85de658ab746574d23b (patch) | |
tree | 3e2cbe605f8c6ed9d73aa86e6b31e2021e8f70b1 /web-common/scroll.js | |
parent | 8a4a175424109088884be1c4785a2eb793323b29 (diff) | |
download | www-b3dd9489f04385fff095a85de658ab746574d23b.tar.gz www-b3dd9489f04385fff095a85de658ab746574d23b.zip |
restructure to work with current site generator
Diffstat (limited to 'web-common/scroll.js')
-rw-r--r-- | web-common/scroll.js | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/web-common/scroll.js b/web-common/scroll.js deleted file mode 100644 index 1180588a..00000000 --- a/web-common/scroll.js +++ /dev/null | |||
@@ -1,12 +0,0 @@ | |||
1 | $(window).scroll(function() { | ||
2 | if ($(this).scrollTop() >= 50) { | ||
3 | $('#jump-top').fadeIn(200); | ||
4 | } else { | ||
5 | $('#jump-top').fadeOut(200); | ||
6 | } | ||
7 | }); | ||
8 | $('#jump-top').click(function() { | ||
9 | $('html').animate({ | ||
10 | scrollTop : 0 | ||
11 | }, 500); | ||
12 | }); | ||