hmmm
This commit is contained in:
24
public/qr.html
Normal file
24
public/qr.html
Normal 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>
|
Reference in New Issue
Block a user