mirror of
https://github.com/frontendnetwork/vegancheck.me
synced 2024-11-15 08:37:09 +00:00
Removed scanner for now
This commit is contained in:
parent
e5daed063e
commit
543e971917
1 changed files with 7 additions and 11 deletions
18
index.html
18
index.html
|
@ -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>
|
Loading…
Reference in a new issue