summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);