todotastic / script.js
bill-geek's picture
Manual changes saved
5e0ff14 verified
raw
history blame contribute delete
555 Bytes
// Form validation logic
document.querySelector('form').addEventListener('submit', function(e) {
e.preventDefault();
const email = document.getElementById('email').value;
const password = document.getElementById('password').value;
if (!email || !password) {
alert('Please fill in all fields');
return;
}
// Here you would typically make an API call to authenticate
console.log('Signing in with:', { email, password });
// Simulate successful login
window.location.href = '/dashboard.html';
});