Removed scanner for now

This commit is contained in:
Philip 2021-08-21 14:48:33 +02:00
parent e5daed063e
commit 543e971917

View file

@ -4,23 +4,19 @@
<title>Is it Vegan?</title> <title>Is it Vegan?</title>
<meta charset="UTF-8"> <meta charset="UTF-8">
<style></style> <style></style>
<script src='js/jquery.min.js'></script>
</head> </head>
<body> <body>
<div id="container"> <div id="container">
<h1>VeganCheck.me</h1> <h1>VeganCheck.me</h1>
<div id="qr-reader" style="width: 600px"></div> <form action="script.php">
<input type="text" id="barcode" name="barcode" placeholder="Enter Barcode">
<input type="submit" name="submit" value="Check if it is Vegan">
</form>
<script src="js/html5-qrcode.min.js"></script> <div id="result"></div>
<script> <script src="js/submit.js"></script>
function onScanSuccess(decodedText, decodedResult) {
console.log(`Code scanned = ${decodedText}`, decodedResult);
window.location.replace(`https://cldsi.de/test/script.php?barcode=${decodedText});
}
var html5QrcodeScanner = new Html5QrcodeScanner(
"qr-reader", { fps: 10, qrbox: 250 });
html5QrcodeScanner.render(onScanSuccess);
</script>
</body> </body>
</html> </html>