Files
kfz-php-tool/test/scripts.js
2025-08-02 13:10:21 +02:00

13 lines
340 B
JavaScript

function handleLogin(event) {
event.preventDefault();
// Simulate a successful login with a delay for demonstration
document.getElementById('loading').classList.add('active');
setTimeout(() => {
// Redirect to dashboard.php after animation
window.location.href = 'dashboard.php';
}, 2000);
}