mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
smooth scroll to top
This commit is contained in:
@@ -90,7 +90,7 @@ figure {
|
||||
.footer a img {
|
||||
height: 22px !important;
|
||||
margin-left: 3px;
|
||||
vertical-align: text-bottom
|
||||
vertical-align: text-bottom;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
|
||||
@@ -182,8 +182,7 @@
|
||||
}
|
||||
|
||||
function topFunction() {
|
||||
document.body.scrollTop = 0;
|
||||
document.documentElement.scrollTop = 0;
|
||||
window.scrollTo({ top: 0, behavior: 'smooth' })
|
||||
}
|
||||
</script>
|
||||
{%- endif %}
|
||||
|
||||
Reference in New Issue
Block a user