User our own jQuery

This commit is contained in:
2016-08-30 14:09:56 +02:00
parent b9b993fe4a
commit 8d6df947c8
7 changed files with 11 additions and 7 deletions

View File

@@ -130,7 +130,7 @@ function hopToTop(limit){
document.getElementById("hop").onclick = function(e){ window.scrollTo(0, 0);}
$(window).scroll(function() {
$(window).on("scroll", function () {
if ($(window).scrollTop() >= limit) {$("#hop").addClass("active")} else {$("#hop").removeAttr("class")}
});
}