mirror of
https://github.com/yugasun/qrcode-decoder.git
synced 2026-08-12 20:27:56 +08:00
Updates
This commit is contained in:
+4
-1
@@ -1,11 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
<title>QrcodeDecoder - Camera</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<button id="start">Start</button> <button id="stop">Stop</button><br />
|
||||
<span id="result">Click start to scan qrcode.</span><br />
|
||||
@@ -13,7 +15,7 @@
|
||||
<video id="video" autoplay></video>
|
||||
|
||||
<script src="./lib/vconsole.min.js"></script>
|
||||
<script src="./index.min.js"></script>
|
||||
<script src="./lib/index.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var vConsole = new VConsole();
|
||||
console.log('Hello world');
|
||||
@@ -42,4 +44,5 @@
|
||||
main();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
+5
-3
@@ -1,11 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
<title>QrcodeDecoder - Image</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<section>
|
||||
<h3>Same domain image</h3>
|
||||
@@ -19,13 +21,12 @@
|
||||
<input
|
||||
id="img2"
|
||||
value="https://yugasun.com/static/wechat.jpg"
|
||||
style="width: 400px"
|
||||
/><br />
|
||||
style="width: 400px" /><br />
|
||||
<button id="decode2">Decode!</button><br />
|
||||
<span id="result2"></span><br />
|
||||
</section>
|
||||
<script src="./lib/vconsole.min.js"></script>
|
||||
<script src="./index.min.js"></script>
|
||||
<script src="./lib/index.min.js"></script>
|
||||
<script type="module">
|
||||
var vConsole = new VConsole();
|
||||
function main() {
|
||||
@@ -61,4 +62,5 @@
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</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
+4
-2
@@ -1,21 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
<title>QrcodeDecoder - Video</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<button id="start">Start</button> <button id="stop">Stop</button><br />
|
||||
<span id="result">Click start to scan qrcode.</span><br />
|
||||
|
||||
<video src="./assets/qrcode-video.mp4"></video>
|
||||
<script src="./lib/vconsole.min.js"></script>
|
||||
<script src="./index.min.js"></script>
|
||||
<script src="./lib/index.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
var vConsole = new VConsole();
|
||||
console.log('Hello world');
|
||||
function main() {
|
||||
var video = document.querySelector('video');
|
||||
var result = document.querySelector('#result');
|
||||
@@ -40,4 +41,5 @@
|
||||
main();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user