mirror of
https://github.com/yugasun/qrcode-decoder.git
synced 2026-08-12 20:27:56 +08:00
Updates
This commit is contained in:
+9
-6
@@ -1,19 +1,21 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
|
||||||
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||||
<title>QrcodeDecoder - Camera</title>
|
<title>QrcodeDecoder - Camera</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
|
<body>
|
||||||
<button id="start">Start</button> <button id="stop">Stop</button><br />
|
<button id="start">Start</button> <button id="stop">Stop</button><br />
|
||||||
<span id="result">Click start to scan qrcode.</span><br />
|
<span id="result">Click start to scan qrcode.</span><br />
|
||||||
<hr />
|
<hr />
|
||||||
<video id="video" autoplay></video>
|
<video id="video" autoplay></video>
|
||||||
|
|
||||||
<script src="./lib/vconsole.min.js"></script>
|
<script src="./lib/vconsole.min.js"></script>
|
||||||
<script src="./index.min.js"></script>
|
<script src="./lib/index.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var vConsole = new VConsole();
|
var vConsole = new VConsole();
|
||||||
console.log('Hello world');
|
console.log('Hello world');
|
||||||
@@ -35,11 +37,12 @@
|
|||||||
}
|
}
|
||||||
start.onclick = startScan;
|
start.onclick = startScan;
|
||||||
|
|
||||||
stop.onclick = function() {
|
stop.onclick = function () {
|
||||||
qr.stop();
|
qr.stop();
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
main();
|
main();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
+9
-7
@@ -1,12 +1,14 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
|
||||||
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||||
<title>QrcodeDecoder - Image</title>
|
<title>QrcodeDecoder - Image</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
|
<body>
|
||||||
<section>
|
<section>
|
||||||
<h3>Same domain image</h3>
|
<h3>Same domain image</h3>
|
||||||
<img id="img1" src="./assets/qrcode.png" alt="qr code" /><br />
|
<img id="img1" src="./assets/qrcode.png" alt="qr code" /><br />
|
||||||
@@ -19,13 +21,12 @@
|
|||||||
<input
|
<input
|
||||||
id="img2"
|
id="img2"
|
||||||
value="https://yugasun.com/static/wechat.jpg"
|
value="https://yugasun.com/static/wechat.jpg"
|
||||||
style="width: 400px"
|
style="width: 400px" /><br />
|
||||||
/><br />
|
|
||||||
<button id="decode2">Decode!</button><br />
|
<button id="decode2">Decode!</button><br />
|
||||||
<span id="result2"></span><br />
|
<span id="result2"></span><br />
|
||||||
</section>
|
</section>
|
||||||
<script src="./lib/vconsole.min.js"></script>
|
<script src="./lib/vconsole.min.js"></script>
|
||||||
<script src="./index.min.js"></script>
|
<script src="./lib/index.min.js"></script>
|
||||||
<script type="module">
|
<script type="module">
|
||||||
var vConsole = new VConsole();
|
var vConsole = new VConsole();
|
||||||
function main() {
|
function main() {
|
||||||
@@ -60,5 +61,6 @@
|
|||||||
main();
|
main();
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+2
File diff suppressed because one or more lines are too long
+9
-7
@@ -1,21 +1,22 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
|
||||||
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||||
<title>QrcodeDecoder - Video</title>
|
<title>QrcodeDecoder - Video</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
|
<body>
|
||||||
<button id="start">Start</button> <button id="stop">Stop</button><br />
|
<button id="start">Start</button> <button id="stop">Stop</button><br />
|
||||||
<span id="result">Click start to scan qrcode.</span><br />
|
<span id="result">Click start to scan qrcode.</span><br />
|
||||||
|
|
||||||
<video src="./assets/qrcode-video.mp4"></video>
|
<video src="./assets/qrcode-video.mp4"></video>
|
||||||
<script src="./lib/vconsole.min.js"></script>
|
<script src="./lib/vconsole.min.js"></script>
|
||||||
<script src="./index.min.js"></script>
|
<script src="./lib/index.min.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var vConsole = new VConsole();
|
var vConsole = new VConsole();
|
||||||
console.log('Hello world');
|
|
||||||
function main() {
|
function main() {
|
||||||
var video = document.querySelector('video');
|
var video = document.querySelector('video');
|
||||||
var result = document.querySelector('#result');
|
var result = document.querySelector('#result');
|
||||||
@@ -25,7 +26,7 @@
|
|||||||
|
|
||||||
start.onclick = startScan;
|
start.onclick = startScan;
|
||||||
|
|
||||||
stop.onclick = function() {
|
stop.onclick = function () {
|
||||||
qr.stop();
|
qr.stop();
|
||||||
video.pause();
|
video.pause();
|
||||||
};
|
};
|
||||||
@@ -39,5 +40,6 @@
|
|||||||
}
|
}
|
||||||
main();
|
main();
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Reference in New Issue
Block a user