{source}

<div class="ToTop">

<button onclick="topFunction()" id="myBtnTOP" title="Go to top"><img src="/templates/anderles2018/images/arrow-top.png" width="80"  style="margin:auto"/></button>

</div>

<script>
// When the user scrolls down 350px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};

function scrollFunction() {
    if (document.body.scrollTop > 350 || document.documentElement.scrollTop > 350) {
        document.getElementById("myBtnTOP").style.display = "block";
    } else {
        document.getElementById("myBtnTOP").style.display = "none";
    }
}

// When the user clicks on the button, scroll to the top of the document
function topFunction() {
    document.body.scrollTop = 0;
    document.documentElement.scrollTop = 0;
}
</script>

{/source}