35809-vm/assets/js/main.js
2025-11-18 03:26:24 +00:00

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' });
});
}
});