This commit is contained in:
2024-06-17 17:26:27 +02:00
parent c219cb271c
commit fb54160740
8 changed files with 227 additions and 0 deletions

24
public/qr.html Normal file
View File

@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title></title>
<!-- <script type="module">
import QrScanner from './qr-scanner.min.js'
const qrScanner = new QrScanner( videoElem, result => console.log('decoded qr code:', result),{},)
</script>-->
<script src="qr-scanner.umd.min.js"></script>
<script>
var videoElem = document.getElementById("videl");
const qrScanner = new QrScanner( videoElem, result => console.log('decoded qr code:', result),{},)
</script>
</head>
<body>
<video id="videl"></video>
</body>
</html>