jb-ssg-site/static/biography.js
2024-06-09 12:14:33 +02:00

8 lines
334 B
JavaScript

window.addEventListener('load', function () {
const readMoreButton = document.getElementById('biography-read-more-button')
const biographyArticle = document.getElementById('biography-article')
readMoreButton.addEventListener('click', function () {
biographyArticle.scrollIntoView({ behavior: 'smooth' })
})
})