21 lines
710 B
JavaScript
21 lines
710 B
JavaScript
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const signUpButton = document.querySelector('#signup-button');
|
|
const getStartedButton = document.querySelector('#get-started-button');
|
|
const authSection = document.querySelector('#auth-section');
|
|
|
|
if (signUpButton && authSection) {
|
|
signUpButton.addEventListener('click', function(e) {
|
|
e.preventDefault();
|
|
authSection.scrollIntoView({ behavior: 'smooth' });
|
|
});
|
|
}
|
|
|
|
if (getStartedButton && authSection) {
|
|
getStartedButton.addEventListener('click', function(e) {
|
|
e.preventDefault();
|
|
authSection.scrollIntoView({ behavior: 'smooth' });
|
|
});
|
|
}
|
|
});
|