mirror of
https://github.com/Alvin-Zilverstand/Spik-en-span.git
synced 2026-03-06 11:17:09 +01:00
Refactor HTML and CSS file structure: update stylesheet paths, add new scripts, and enhance login functionality
This commit is contained in:
18
js/script.js
18
js/script.js
@@ -31,4 +31,20 @@ function toggleVideo() {
|
||||
} else {
|
||||
video.pause();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
document.getElementById('loginForm').addEventListener('submit', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
const username = document.getElementById('username').value;
|
||||
const password = document.getElementById('password').value;
|
||||
|
||||
|
||||
if (username === 'admin' && password === 'password') {
|
||||
alert('Succesvol ingelogd!');
|
||||
window.location.href = '../qr/qr.html';
|
||||
} else {
|
||||
alert('Ongeldige inloggegevens.');
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user