-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (51 loc) · 2.06 KB
/
index.html
File metadata and controls
60 lines (51 loc) · 2.06 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
<!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">
<title>Qr Code Generator</title>
<link rel="stylesheet" href="style.css">
<!-- BOOTSTRAP -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!--// BOOTSTRAP //-->
</head>
<body>
<!-- MAIN CONTAINER -->
<div class="container d-flex flex-column text-center">
<div id="title" class="mb-5">
<h1>Create your own QR-Code</h1>
</div>
<!-- FORM -->
<form id="myForm" autocomplete="off">
<div class="form-group d-flex justify-content-center pb-2">
<input type="text" id="search" class="form-control" style="width: 60%;"
placeholder="URL / Email / Text etc.." required>
</div>
<div class="form-group">
<button class="btn btn-primary mt-2" style="width: 50%;">
Create
</button>
</div>
</form>
<!--// FORM //-->
<!-- QRCODE IMAGE RESULT -->
<div id="result" class=" container text-center mt-4">
<div class="qrImage" id="height">
<img class="image" id="qrCode" src="https://api.qrserver.com/v1/create-qr-code/?size=300x300&format=png&data=https://youtube.com" alt="QRCODE">
</div>
<!-- DOWNLOAD BUTTON -->
<div class="download">
<a download="test.png" id="downloadButton"
href="./api.qrserver.com/v1/create-qr-code/https://api.qrserver.com/v1/create-qr-code/?size=400x400&format=png&data=https://youtube.com">
<button class="btn btn-primary mt-4">Download</button>
</a>
</div>
<!--// DOWNLOAD BUTTON //-->
</div>
<!--// QRCODE IMAGE RESULT //-->
</div>
<!--// MAIN CONTAINER //-->
<script src="script.js"></script>
</body>
</html>