Refactor HTML and CSS file structure: update stylesheet paths, add new scripts, and enhance login functionality

This commit is contained in:
vista-man
2025-04-10 17:00:57 +02:00
parent 7c2d11591f
commit 15ce96681f
15 changed files with 66 additions and 43 deletions

View File

@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Medewerker Login</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
@@ -67,20 +67,7 @@
</body>
<script>
document.getElementById('loginForm').addEventListener('submit', function (e) {
e.preventDefault();
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="js/script.js"></script>
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.');
}
});
</script>
</html>