-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
113 lines (108 loc) · 4.03 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
101
102
103
104
105
106
107
108
109
110
111
112
113
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>QRCode.js demo - Benson Ruan</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<link href="style/qrcode.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src='js/qrcode.min.js'></script>
</head>
<body>
<main>
<div class="container mt-3">
<div class="text-center col-12">
<h1>QRCode.js Demo</h1>
</div>
<div class="row col-12 ">
<div class="col-md-6 col-12 mx-auto">
<div class="input-group mb-3">
<div class="input-group-prepend">
<select class="custom-select" id="protocol">
<option value="https://" selected>https://</option>
<option value="http://">http://</option>
<option value="TEL:">Call</option>
<option value="SMSTO:">SMS to</option>
<option value="MAILTO:">Email to</option>
<option value="">Search</option>
</select>
</div>
<input id="url" required type="text" value="bensonruan.com" placeholder="bensonruan.com" class="form-control">
</div>
</div>
</div>
<div class="row col-12 ">
<div class="col-md-6 col-12 mx-auto">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">size</span>
</div>
<input id="size" required type="number" value="256" class="form-control">
<div class="input-group-append">
<span class="input-group-text">px</span>
</div>
</div>
</div>
</div>
<div class="row col-12 ">
<div class="col-md-6 col-12 mx-auto">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text">level</span>
</div>
<select id="level" class="custom-select">
<option value="L" selected>L - 7% damage</option>
<option value="M">M - 15% damage</option>
<option value="Q">Q - 25% damage</option>
<option value="H">H - 30% damage</option>
</select>
</div>
</div>
</div>
<div class="row col-12 ">
<div class="row col-12 col-md-6 mx-auto">
<div class="col-12 col-lg-6 p-0">
<div class="input-group mb-3 ">
<div class="input-group-prepend col-6 col-lg-8 p-0">
<span class="input-group-text col-12 ml--1">background color</span>
</div>
<input id="background-color" required type="color" value="#ffffff">
</div>
</div>
<div class="col-12 col-lg-6 p-0">
<div class="input-group mb-3 d-lg-inline-block">
<div class="input-group-prepend d-lg-none col-6 p-0">
<span class="input-group-text col-12 ml--1">foreground color</span>
</div>
<input id="foreground-color" class="float-lg-right" required type="color" value="#000000">
<div class="input-group-prepend float-lg-right mr-0 d-none d-lg-block col-8 p-0">
<span class="input-group-text col-12 ">foreground color</span>
</div>
</div>
</div>
</div>
</div>
<div class="row text-left col-lg-6 col-md-6 col-12 mx-auto p-2">
<div id="qrcode" class="col-lg-7 col-md-12 col-12 p-0"></div>
<div class="col-lg-5 col-md-9 col-9 p-0">
<a href="" id="download" class="btn btn-primary btn-block mt-3 col-lg-10" download="qrcode.png" target="_blank">Download</a>
<div class="input-group mt-lg-5 mt-3">
<div class="input-group-prepend">
<select class="custom-select" id="print-option">
<option value="S" selected>Single</option>
<option value="R">Repeat</option>
</select>
</div>
<div class="input-group-append col-7 col-lg-5 p-0">
<button id="print" class="btn btn-success btn-block pl-4 pr-4">Print</button>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
<script src="js/qrcode-demo.js"></script>
</body>
</html>