-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (95 loc) · 3.2 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ScanVerse</title>
<!-- Html5Qrcode javascript -->
<script src="./scripts/html5-qrcode.min.js"></script>
<script src="./scripts/qrcode.js"></script>
<!-- Linking Bootstrap -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM"
crossorigin="anonymous"
/>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
crossorigin="anonymous"
></script>
<!-- Linking Custom Stylesheet -->
<link rel="stylesheet" href="./styles/styles.css" />
<link rel="icon" href="./images/logo.png" />
</head>
<body>
<main>
<!-- QR Scanner -->
<div class="scannerContainer">
<div class="blackBlurBg">
<img id="logo" src="./images/logo.png" alt="logo" />
<button
id="readerStartBtn"
type="button"
class="btn btn-dark"
onclick="startScan()"
>
<span></span>
<span></span>
<span></span>
<span></span>
Scan QR
</button>
<!-- QR Scan and Result Display -->
<div id="readerContainer" class="hidden">
<div id="reader"></div>
</div>
<div id="resultContainer" class="hidden">
<div id="scanStatus" class="alert alert-success" role="alert">
Pending!
</div>
<div id="data" class="alert alert-primary" role="alert">
<span class="result">
Extracted Data: <span id="content"></span>
</span>
</div>
</div>
</div>
</div>
<!-- QR Generator -->
<div class="generatorContainer">
<form id="form">
<div class="typeNumber">
<label for="typeNumber">Type Number</label>
<input name="typeNumber" type="number" max="40" min="0" required />
</div>
<div class="data">
<label for="data">Data</label>
<input type="text" name="data" required="" />
</div>
<div class="errorCorrectionLevel">
<label for="errorCorrectionLevel">Error Correction Level</label>
<select name="errorCorrectionLevel" id="errorCorrectionLevel">
<option value="L">L</option>
<option value="M">M</option>
<option value="Q">Q</option>
<option value="H">H</option>
</select>
</div>
<div class="submit">
<a type="submit" id="submit" href="#">
<span></span>
<span></span>
<span></span>
<span></span>
Generate QR
</a>
</div>
</form>
<div id="placeHolder"></div>
</div>
</main>
<script src="./scripts/index.js"></script>
</body>
</html>