summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@bauklotz.fritz.box>2016-08-10 23:49:20 +0200
committererdgeist <erdgeist@bauklotz.fritz.box>2016-08-10 23:49:20 +0200
commit1e51b59fbe529688ddbbd6cb22f80d77f8aa6325 (patch)
tree2860b9f87895c2163b7f3bf77c8deb955463c2f5
parentca08b72483041e7025c47da80a503208fa09e386 (diff)
Add attribution for scroller code
-rw-r--r--js/abmahn.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/abmahn.js b/js/abmahn.js
index 88c8dbd..35adf43 100644
--- a/js/abmahn.js
+++ b/js/abmahn.js
@@ -23,6 +23,8 @@ function getCheck(id) {
23 return document.getElementById(id).checked; 23 return document.getElementById(id).checked;
24} 24}
25 25
26// Code is heavily inspired by
27// https://github.com/alicelieutier/smoothScroll/blob/master/smoothscroll.js
26function scrollTo(end) { 28function scrollTo(end) {
27 if(document.querySelectorAll === void 0 || window.pageYOffset === void 0 || history.pushState === void 0) { 29 if(document.querySelectorAll === void 0 || window.pageYOffset === void 0 || history.pushState === void 0) {
28 window.scroll(0, end); 30 window.scroll(0, end);