-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
53 lines (45 loc) · 1.46 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title>QRCode</title>
</head>
<body>
<script src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
<div class="form">
<h1>Gerador de QR code</h1>
<form>
<input type="url" id="website" name="website" placeholder="https://github.com/cemeterydriiver" required />
<button type="button" onclick="generateQRCode()">
Gerar
</button>
<button type="button" onclick="clearQRCode()">
Limpar
</button>
<button onclick="downloadQRCode(generateQRCode())">Download</button>
</form>
<div id="qrcode-container">
<div id="qrcode" class="qrcode"></div>
<h4>Estilizado:</h4>
<div id="qrcode-2" class="qrcode"></div>
</div>
<script type="text/javascript" src="gerador.js">
</script>
</div>
<div id="scanner-container">
<h1>Scanear QR Code</h1>
<video id="scanner-video"></video>
<canvas id="scanner-canvas"></canvas>
<div class="buttons-container">
<button id="scanner-button">Scan</button>
<button id="stop-scan-button">Parar</button>
<button id="switch-camera-button"></button>
</div>
</div>
<script src="https://unpkg.com/@zxing/library@latest"></script>
<script src="scaner.js"></script>
</body>
</html>