add files
This commit is contained in:
12
test/scripts.js
Normal file
12
test/scripts.js
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user