-
Notifications
You must be signed in to change notification settings - Fork 3
/
qrcode.html
219 lines (219 loc) · 7.28 KB
/
qrcode.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>
QR-Code Generator </title>
<link href="./css/bootstrap.min.css" rel="stylesheet">
<!-- Bootstrap theme -->
<link href="./css/bootstrap-theme.min.css" rel="stylesheet">
<link href="./colorpicker/css/bootstrap-colorpicker.min.css" rel="stylesheet">
<link href="./css/style.css" rel="stylesheet">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"/>
<!--[if lt IE 9]>
<script type="text/javascript" src="http://html5shiv.googlecode.com/svn/trunk/html5.js">
</script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row">
<form id="generator" class="form-horizontal">
<div id="alert_placeholder">
</div>
<div class="float-left col-xs-5">
<div class="form-group">
<label class="col-xs-6 control-label" for "formatoption" ">
Select format: </label>
<div class="col-xs-6">
<select class=" form-control" id="formatOption">
<option value="some text here" selected="selected">
Text </option>
<option value="http://www.url.com">
Url </option>
<option value="MATMSG:TO:[email protected];SUB:subject;BODY:message;">
Email </option>
<option value="TEL:33312450903">
Tel </option>
<option value="SMSTO:33312450903:subject here">
SMS </option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-xs-6 control-label" for "codesize" ">
Size: </label>
<div class="col-xs-6">
<select class="form-control" id="codeSize">
<option value="75x75">
XXSmall </option>
<option value="125x125" selected="selected">
XSmall </option>
<option value="140x140">
Small </option>
<option value="170x170">
Medium </option>
<option value="240x240">
Large </option>
<option value="300x300">
XLarge </option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-xs-6 control-label" for="codeColor">
<abbr title="(optional)">Color</abbr>
</label>
<div class="col-xs-6">
<input class="form-control bscp" id="codeColor" value="#000000" type="text">
</div>
</div>
<div class="form-group">
<label class="col-xs-6 control-label" for="bgColor">
<abbr title="Background color (optional)">Bg Color</abbr>
</label>
<div class="col-xs-6">
<input class="form-control bscp" id="bgColor" value="#FFFFFF" type="text">
</div>
</div>
</div>
<fieldset class="float-left">
<div id="image">
</div>
<span id="arrow" class="glyphicon glyphicon-arrow-up">
Click! </span>
</fieldset>
<div style="clear:both; height:10px;">
</div>
<div class="form-group">
<div class="float-left col-xs-12">
<label class="col-xs-2 control-label" for="codeData">
Data </label>
<div class="col-xs-10">
<textarea class="form-control" id="codeData" rows="2"></textarea>
<div id="textarea_feedback">
</div>
</div>
</div>
</div>
<fieldset>
<legend class="hideparent" data-hide_ref="#adv" data-hide_initial="true">Extra/Advanced Options</legend>
<div id="adv">
<div class="form-group">
<!--ecc-->
<label class="col-xs-3 control-label" for "ecc" ">
<abbr title="Error Correction Code">ECC</abbr> Level: </label>
<div class="col-xs-3">
<select class="form-control" id="ecc">
<option value="L" selected="selected">
Low </option>
<option value="M">
Middle </option>
<option value="Q">
Quality </option>
<option value="H">
High </option>
</select>
</div>
</div>
<div class="form-group">
<!--encoding-->
<label class="col-xs-3 control-label" for "selectcodding" ">
<abbr title="Specifies the charset to encode the text">Encoding</abbr>: </label>
<div class="col-xs-3">
<select class=" form-control" id="SelectCodding">
<option value="UTF-8" selected="selected">
UTF-8 </option>
<option value="ISO-8859-1">
ISO-8859-1 </option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-xs-3 control-label" for "margin" ">
<abbr title="Thickness of a margin in pixels">Margin</abbr>
</label>
<div class="col-xs-4">
<input class="form-control" id="margin" type="text"/>
<div class="slider" data-slider_value="1" data-slider_min="0" data-slider_max="50" data-slider_step="1" data-slider_input="#margin">
</div>
</div>
</div>
<div class="form-group">
<!--qzone-->
<label class="col-xs-3 control-label" for "q_zone" ">
<abbr title="Thickness of a margin">Quiet Zone</abbr>
</label>
<div class="col-xs-4">
<input class="form-control" id="q_zone" type="text"/>
<div class="slider" data-slider_value="4" data-slider_min="0" data-slider_max="100" data-slider_step="1" data-slider_input="#q_zone">
</div>
</div>
</div>
<div class="form-group">
<!--fileformat-->
<label class="col-xs-3 control-label" for "format" ">
File Format: </label>
<div class="col-xs-3">
<select class="form-control" id="format">
<option value="eps">
eps </option>
<option value="gif">
gif </option>
<option value="jpg">
jpg </option>
<option value="png" selected="selected">
png </option>
<option value="svg">
svg </option>
</select>
</div>
</div>
</div>
</fieldset>
<button type="button" class="btn btn-info pull-left" data-toggle="collapse" data-target="#formats">
Help data formats ? </button>
<div class="col-xs-3 pull-right">
<button id="generate" type="button" class="btn btn-primary pull-right">
<span class="glyphicon glyphicon-qrcode">
</span>
Generate </button>
</div>
</form>
</div>
<div id="formats" class="panel panel-default collapse">
<!-- Default panel contents -->
<!-- List group -->
<ul class="list-group">
<li class="list-group-item">
Text → normal text input </li>
<li class="list-group-item">
Url → http://www.info.com </li>
<li class="list-group-item">
Email → MATMSG:TO:[email protected];SUB:subject;BODY:message; </li>
<li class="list-group-item">
Tel → TEL:33312450903 </li>
<li class="list-group-item">
SMS → SMSTO:33312450903:subject here </li>
<li class="list-group-item">
Bookmark → MEBKM:TITLE:here title:URL:http://www.info.com </li>
<li class="list-group-item">
More info <a href="http://qrserver.com/api/documentation/create-qr-code/" target="_blank">here</a>
</li>
</ul>
</div>
</div>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
if (typeof jQuery === 'undefined')
{
document.write(unescape("%3Cscript src='js/jquery.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script src="./js/bootstrap.min.js"></script>
<script src="./colorpicker/js/bootstrap-colorpicker.min.js"></script>
<script src="./js/qr.min.js"></script>
</body>
</html>