<!DOCTYPE html>
<html>
<head>
<title>QR Code Reader using Instascan</title>
<script type="text/javascript" src="instascan.min.js"></script>
</head>
<body>
<video id="preview"></video>
<script type="text/javascript">
let scanner = new Instascan.Scanner({ video: document.getElementById('preview') });
scanner.addListener('scan', function (content) {
console.log(content);
});
Instascan.Camera.getCameras().then(function (cameras) {
if (cameras.length > 0) {
scanner.start(cameras[0]);
} else {
console.error('No cameras found.');
}
}).catch(function (e) {
console.error(e);
});
</script>
</body>
</html>
<script type="text/javascript" src="instascan.min.js"></script>
Code Example |
---|
Php :: phpspreadsheet middle align |
Php :: foreach loop 1-100 php |
Php :: php start of day epoch |
Php :: searching inside a file using php |
Php :: laravel pagination with get parameters |
Php :: convert multidimensional array to single array php |
Php :: auth laravel 9 |
Php :: php counter |
Php :: laravel require vendor autoload |
Php :: php remove stop words from string |
Php :: how to change date formate in laravel |
Php :: remove notices php |
Php :: phpcs |
Php :: delete uploaded file php |
Php :: laravel websockets onsubscribe |
Php :: php define object |
Php :: @include laravel |
Php :: php get first key of array |
Php :: acf repeater |
Php :: php sort multi dimensional array |
Php :: php text to html |
Php :: laravel collection orderby |
Php :: snap store phpstrom |
Php :: php remove all whitespace from a string |
Php :: reload page laravel |
Php :: get static front page |
Php :: how add new column in larevel with migration |
Php :: retrieving a cookie in php |
Php :: for each php |
Php :: php get url parameter |