<script> //Get the button var mybutton = document.getElementById("goToTop"); // When the user scrolls down 20px from the top of the document, show the button window.onscroll = function() { scrollFunction() }; function scrollFunction() { if (document.body.scrollTop & gt; 10 || document.documentElement.scrollTop & gt; 20) { mybutton.style.display = "block"; } else { mybutton.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; } (function ($, window) { var adjustAnchor = function () { var $anchor = $(':target'), fixedElementHeight = 160; if ($anchor.length > 0) { window.scrollTo(0, $anchor.offset().top - fixedElementHeight); } }; $(window).on('hashchange load', function () { adjustAnchor(); }); })(jQuery, window); </script>

How can we help you today?