From 1e51b59fbe529688ddbbd6cb22f80d77f8aa6325 Mon Sep 17 00:00:00 2001 From: erdgeist Date: Wed, 10 Aug 2016 23:49:20 +0200 Subject: Add attribution for scroller code --- js/abmahn.js | 2 ++ 1 file changed, 2 insertions(+) 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) { return document.getElementById(id).checked; } +// Code is heavily inspired by +// https://github.com/alicelieutier/smoothScroll/blob/master/smoothscroll.js function scrollTo(end) { if(document.querySelectorAll === void 0 || window.pageYOffset === void 0 || history.pushState === void 0) { window.scroll(0, end); -- cgit v1.2.3