mirror of
https://github.com/Alvin-Zilverstand/school.git
synced 2026-11-25 07:43:04 +01:00
change folder names
This commit is contained in:
1 parent
9151abdfce
commit
331d9bc5b2
4808 files changed
No files matched your search
@@ -0,0 +1,50 @@
|
||||
const ticketForm = document.getElementById('ticketForm');
|
||||
if (ticketForm) {
|
||||
ticketForm.addEventListener('submit', function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
const name = document.getElementById('name').value;
|
||||
const email = document.getElementById('email').value;
|
||||
const category = document.getElementById('ticketCategory').value;
|
||||
const quantity = document.getElementById('ticketQuantity').value;
|
||||
|
||||
const ticketId = `TICKET-${Date.now()}`;
|
||||
|
||||
const qrContent = `Name: ${name}, Email: ${email}, Category: ${category}, Quantity: ${quantity}, Ticket ID: ${ticketId}`;
|
||||
|
||||
const qrCodeContainer = document.getElementById('qrCodeContainer');
|
||||
qrCodeContainer.innerHTML = '';
|
||||
const qrCode = new QRCode(qrCodeContainer, {
|
||||
text: qrContent,
|
||||
width: 200,
|
||||
height: 200,
|
||||
});
|
||||
|
||||
alert('Ticket(s) successfully generated!');
|
||||
});
|
||||
}
|
||||
|
||||
function toggleVideo() {
|
||||
const video = document.getElementById('myVideo');
|
||||
if (video) {
|
||||
if (video.paused) {
|
||||
video.play();
|
||||
} 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