src="//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("myBtn").style.display = "block";
} else {
document.getElementById("myBtn").style.display = "none";
}
}
function topFunction() {
$('html,body').animate({ scrollTop: 0 }, 750);
}