Spaces:
Running
Running
| // 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'; | |
| }); |