mirror of
https://github.com/Alvin-Zilverstand/Spik-en-span.git
synced 2026-03-06 13:26:49 +01:00
add QR code scanner functionality with HTML, CSS, and JavaScript
This commit is contained in:
28
qr/qr.html
Normal file
28
qr/qr.html
Normal file
@@ -0,0 +1,28 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>QR Code Scanner</title>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
|
||||
<link rel="stylesheet" href="styles.css" />
|
||||
<script src="https://rawgit.com/sitepoint-editors/jsqrcode/master/src/qr_packed.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="container">
|
||||
<h1>QR Code Scanner</h1>
|
||||
|
||||
<a id="btn-scan-qr">
|
||||
<img src="https://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2017/07/1499401426qr_icon.svg">
|
||||
<a/>
|
||||
|
||||
<canvas hidden="" id="qr-canvas"></canvas>
|
||||
|
||||
<div id="qr-result" hidden="">
|
||||
<b>Data:</b> <span id="outputData"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="qrCodeScanner.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user