-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (33 loc) · 1.37 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
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<style type="text/css">
.code{
display: flex;
justify-content: center;
}
</style>
</head>
<body>
<div class="container-fluid container-sm container-md container-lg">
<h1 class="text-center text-capitalize p-5 w-100">QR Code generator</h1>
<div class="form-group">
<label for="QRcode">QRCode text:</label>
<input type="text" class="form-control" maxlength="208" id="qrtext" placeholder="e.g. apple.com">
</div>
<span>
<button class="btn btn-primary" id="generate">Generate QR</button>
<button class="btn btn-danger" id="reset">Reset</button>
</span>
<div class="p-5 w-100 code">
<div id="qrcode" class="align-self-center"></div>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
<script type="text/javascript" src="app.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</body>
</html>