-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
119 lines (112 loc) · 4.05 KB
/
index.html
File metadata and controls
119 lines (112 loc) · 4.05 KB
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<!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="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;700&display=swap"
rel="stylesheet"
/>
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="public/styles.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.0/css/all.min.css"
integrity="sha512-xh6O/CkQoPOWDdYTDqeRdPCVd1SpvCA9XXcUnZS2FmJNp1coAFzvtCN9BmamE+4aHK8yyUHUSCcJHgXloTyT2A=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
/>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.js"
integrity="sha512-is1ls2rgwpFZyixqKFEExPHVUUL+pPkBEPw47s/6NDQ4n1m6T/ySeDW3p54jp45z2EJ0RSOgilqee1WhtelXfA=="
crossorigin="anonymous"
referrerpolicy="no-referrer"
></script>
<script src="./index.js" defer></script>
<title>QR Generator</title>
</head>
<body>
<h1><i class="fa-solid fa-qrcode"></i>QR Code Generator</h1>
<div class="container">
<div class="row">
<div class="col">
<div class="form" id="myForm">
<label for="text-input">Input URL here:</label>
<input
id="text"
class="form-control-lg"
type="text"
placeholder="Input URL here"
/>
<div id="error">
Please enter a URL into the field to generate a code.
</div>
<label for="size">Select the size of your code:</label>
<select name="size" id="size" class="form-control-lg size">
<option value="100" selected>
100 X 100 (Great for business cards!)
</option>
<option value="200">200 X 200</option>
<option value="300">300 X 300</option>
<option value="400">
400 X 400 (This size and larger may not render well on mobile
devices.)
</option>
<option value="500">500 X 500</option>
<option value="600">600 X 600</option>
<option value="700">700 X 700</option>
<option value="800">800 X 800 (Good for posters!)</option>
</select>
<button
class="btn btn-lg btn-primary"
type="submit"
onclick="makeCode()"
>
Generate Code
</button>
</div>
</div>
</div>
<div class="row">
<div class="col">
<div class="qr-container">
<div id="processing" class="processing">
<h2>Processing...</h2>
<div class="container">
<div class="box"></div>
</div>
</div>
<div id="successMessage"></div>
<div id="qrcode"></div>
<div id="btnDiv"></div>
</div>
</div>
</div>
</div>
<footer>
<strong>
Copyright © 2022 - <span id="year"></span> Holger Mueller
<a href="https://github.com/Holgermueller"
><i class="fa-brands fa-github fa-lg"></i
></a>
<a
href="https://stackoverflow.com/users/9111512/holger-mueller?tab=profile"
><i class="fa-brands fa-stack-overflow fa-lg"></i
></a>
<a href="https://www.linkedin.com/in/holger-mueller-75855114a/"
><i class="fa-brands fa-linkedin fa-lg"></i
></a>
| Built with
<a href="https://davidshimjs.github.io/qrcodejs/">qrcode.js</a>
</strong>
</footer>
</body>
</html>