Line 67: | Line 67: | ||
function scrollFunction() { | function scrollFunction() { | ||
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { | if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { | ||
− | document.getElementById(" | + | document.getElementById("topBtn").style.display = "block"; |
} else { | } else { | ||
− | document.getElementById(" | + | document.getElementById("topBtn").style.display = "none"; |
} | } | ||
} | } |
Revision as of 13:13, 31 October 2017