Files
neocities/public/qr.html
2024-06-17 17:26:27 +02:00

25 lines
660 B
HTML

<!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>