13 lines
401 B
JavaScript
13 lines
401 B
JavaScript
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const getStartedBtn = document.querySelector('.get-started-btn');
|
|
if (getStartedBtn) {
|
|
getStartedBtn.addEventListener('click', function(e) {
|
|
e.preventDefault();
|
|
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
|
behavior: 'smooth'
|
|
});
|
|
});
|
|
}
|
|
});
|