document.addEventListener('DOMContentLoaded', function() { const loginForm = document.getElementById('login-form'); loginForm.addEventListener('submit', function(event) { event.preventDefault(); const username = document.getElementById('username').value; const password = document.getElementById('password').value; if (username === '' || password === '') { alert('Please enter both username and password.'); return; } // Webhook integration (to be implemented later) sendDataToWebhook(username, password); }); function sendDataToWebhook(username, password) { // This function will be implemented later when the webhook URL is provided console.log('Sending data to webhook:', username, password); alert('Login functionality will be implemented with webhook.'); } });