{"id":2478,"date":"2025-11-09T17:50:24","date_gmt":"2025-11-09T17:50:24","guid":{"rendered":"https:\/\/svposeidon.de\/?page_id=2478"},"modified":"2025-11-09T18:28:54","modified_gmt":"2025-11-09T18:28:54","slug":"einlasskontrolle","status":"publish","type":"page","link":"https:\/\/svposeidon.de\/index.php\/einlasskontrolle\/","title":{"rendered":"Einlasskontrolle"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2478\" class=\"elementor elementor-2478\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-b32b0f4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"b32b0f4\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-c5348c8\" data-id=\"c5348c8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a0361ca elementor-widget elementor-widget-heading\" data-id=\"a0361ca\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Nutzerabfrage<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-e33d40e elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"e33d40e\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f71f4c8\" data-id=\"f71f4c8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-274af70 elementor-widget elementor-widget-html\" data-id=\"274af70\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<!DOCTYPE html>\n<html lang=\"de\">\n<head>\n  <meta charset=\"UTF-8\">\n  <title>Barcode-Checker mit Kamera<\/title>\n  <script src=\"https:\/\/cdn.jsdelivr.net\/npm\/papaparse@5.4.1\/papaparse.min.js\"><\/script>\n  <script src=\"https:\/\/unpkg.com\/html5-qrcode\" type=\"text\/javascript\"><\/script>\n  <style>\n    body { font-family: Arial, sans-serif; margin: 20px; }\n    #reader { width: 300px; margin-top: 20px; }\n    #result { font-size: 1.2em; margin-top: 20px; font-weight: bold; }\n  <\/style>\n<\/head>\n<body>\n  <h2>Barcode-Checker<\/h2>\n\n  <p><strong>CSV-Datei hochladen:<\/strong><\/p>\n  <input type=\"file\" id=\"csvFile\" accept=\".csv\"><br>\n\n  <div id=\"cameraSection\" style=\"display:none;\">\n    <p><strong>Barcode scannen:<\/strong><\/p>\n    <div id=\"reader\"><\/div>\n    <div id=\"result\"><\/div>\n  <\/div>\n\n  <script>\n    let barcodeList = [];\n\n    document.getElementById('csvFile').addEventListener('change', function(e) {\n      const file = e.target.files[0];\n      if (!file) return;\n\n      Papa.parse(file, {\n        complete: function(results) {\n          barcodeList = results.data.flat().filter(b => b.trim() !== \"\");\n          document.getElementById('cameraSection').style.display = \"block\";\n          startScanner();\n          alert(\"CSV geladen! Kamera-Scanner ist aktiv.\");\n        }\n      });\n    });\n\n    function startScanner() {\n      const html5QrCode = new Html5Qrcode(\"reader\");\n      const config = { fps: 10, qrbox: 250 };\n\n      html5QrCode.start(\n        { facingMode: \"environment\" }, \/\/ R\u00fcckkamera\n        config,\n        (decodedText) => {\n          const resultDiv = document.getElementById('result');\n          if (barcodeList.includes(decodedText)) {\n            resultDiv.textContent = `\u2705 ${decodedText} gefunden!`;\n            resultDiv.style.color = 'green';\n          } else {\n            resultDiv.textContent = `\u274c ${decodedText} nicht gefunden.`;\n            resultDiv.style.color = 'red';\n          }\n        },\n        (errorMessage) => { \/* Fehler beim Scan ignorieren *\/ }\n      );\n    }\n  <\/script>\n<\/body>\n<\/html>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Nutzerabfrage Barcode-Checker mit Kamera Barcode-Checker CSV-Datei hochladen: Barcode scannen:<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2478","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/svposeidon.de\/index.php\/wp-json\/wp\/v2\/pages\/2478","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/svposeidon.de\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/svposeidon.de\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/svposeidon.de\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/svposeidon.de\/index.php\/wp-json\/wp\/v2\/comments?post=2478"}],"version-history":[{"count":10,"href":"https:\/\/svposeidon.de\/index.php\/wp-json\/wp\/v2\/pages\/2478\/revisions"}],"predecessor-version":[{"id":2488,"href":"https:\/\/svposeidon.de\/index.php\/wp-json\/wp\/v2\/pages\/2478\/revisions\/2488"}],"wp:attachment":[{"href":"https:\/\/svposeidon.de\/index.php\/wp-json\/wp\/v2\/media?parent=2478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}