smooth scroll to top

This commit is contained in:
2024-10-10 08:52:50 +02:00
committed by Flo Greistorfer
parent d155b05798
commit cd06c526af
2 changed files with 2 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ figure {
.footer a img {
height: 22px !important;
margin-left: 3px;
vertical-align: text-bottom
vertical-align: text-bottom;
}
.navbar {

View File

@@ -182,8 +182,7 @@
}
function topFunction() {
document.body.scrollTop = 0;
document.documentElement.scrollTop = 0;
window.scrollTo({ top: 0, behavior: 'smooth' })
}
</script>
{%- endif %}