From f4cc70f5bb4de73a1ba95afd7bac89dba12d7a63 Mon Sep 17 00:00:00 2001 From: vista-man <524715@vistacollege.nl> Date: Thu, 10 Apr 2025 20:15:56 +0200 Subject: [PATCH] Enhance QR code generation and scanner UI: increase QR code size, improve scanner layout, and add video element styling --- php/process_ticket.php | 2 +- qr/qr.html | 11 ++++++----- qr/qrCodeScanner.js | 5 ++++- qr/styles.css | 10 ++++++++++ 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/php/process_ticket.php b/php/process_ticket.php index c3a3679..3d13968 100644 --- a/php/process_ticket.php +++ b/php/process_ticket.php @@ -44,7 +44,7 @@ $qrCodes = []; // Array to store QR code URLs for email attachment // Insert one ticket per row and generate QR codes for ($i = 0; $i < $quantity; $i++) { $ticket_id = bin2hex(random_bytes(16)); // Generate a 32-character unique ticket ID - $qrCodeUrl = "https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=" . urlencode($ticket_id); // Generate QR code link + $qrCodeUrl = "https://api.qrserver.com/v1/create-qr-code/?size=500x500&data=" . urlencode($ticket_id); // Generate QR code link $one_ticket_quantity = 1; // Each row represents one ticket $stmt->bind_param("ssssss", $ticket_id, $name, $email, $category, $one_ticket_quantity, $qrCodeUrl); if (!$stmt->execute()) { diff --git a/qr/qr.html b/qr/qr.html index 57f6b7d..d47ec6e 100644 --- a/qr/qr.html +++ b/qr/qr.html @@ -9,13 +9,14 @@
-