-
Notifications
You must be signed in to change notification settings - Fork 37
/
qrblend.html
184 lines (157 loc) · 7.33 KB
/
qrblend.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
<!DOCTYPE html>
<html>
<head>
<!--
QR-Logo: http://qrlogo.kaarposoft.dk
Copyright (C) 2018 Henrik Kaare Poulsen
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<script type="text/javascript" src="modernizr.js"></script>
<script type="text/javascript" src="common.js"></script>
<script type="text/javascript" src="reedsolomon.js"></script>
<script type="text/javascript" src="qrcodedecode.js"></script>
<script type="text/javascript" src="qrblend.js"></script>
<script type="text/javascript" src="color.js"></script>
<script type="text/javascript" src="jscolor.js"></script>
<link rel="StyleSheet" type="text/css" href="default.css">
<link rel="shortcut icon" href="favicon.ico" />
<title>QR Blend</title>
</head>
<body onload="qrblend_onload();">
<div class="nav clearfix">
<ul>
<li><a href="index.html">QR-Logo</a>
<li class="selected">Blend
<li><a href="qrencode.html">Encode</a>
<li><a href="qrdecode.html">Decode</a>
<li><a href="about.html">About</a>
</ul>
</div>
<div class="section">
<h1>QR Blend</h1>
Blend your own logo into a <a href="http://en.wikipedia.org/wiki/QRcode">QR Code</a>.
<p>See also <a href="index.html">QR-Logo</a>, which can embed your logo into a <a href="http://en.wikipedia.org/wiki/QRcode">QR Code</a>.
<p>QR-Logo is pure JavaScript, so it runs in your own browser.
</div>
<div id="nojs" class="jserror">
<b>Your browser does not seem to have JavaScript enabled</b>
<br>(or javascript code did not load; check browser logs)
</div>
<div id="noHTML5canvas" class="jserror">
<b>Your browser does not seem to support one or more of the following:</b>
<ul>
<li>the HTML5 canvas tag
<li>FileReader API
</ul>
</div>
<form>
<div class="section">
<h1>Blend logo into QR Code</h1>
<table><tr>
<td>Upload logo:<br>
<input type="file" id="qrlogo_files" name="files[]" onchange="on_logo_file_upload(event);"/></td>
<td rowspan="2"><canvas width="10" height="10" id="qrlogo_input_canvas"></canvas></td>
</tr><tr>
<td>Text:<br>
<textarea id="qrlogo_text" rows="10" cols="40">http://qrlogo.kaarposoft.dk</textarea><br>
<select id="qrlogo_crlf">
<option value="raw">No line-separator translation</option>
<option value="lf">Use LF (line feed) as line-separator</option>
<option value="crlf">Use CRLF (carriage return plus line feed) as line-separator</option>
<option value="cr">Use CR (carriage return) as line-separator</option>
</select>
</td>
</tr><tr>
<td>Background color:<br>
<input id="qrlogo_bg_color" class="jscolor {pickerMode:'HSV'}" value="F9F9FF"></td>
<td><label>Error Correction:
<select id="qrlogo_errorcorrection">
<option value="1">Level L (7%)</option>
<option value="0">Level M (15%)</option>
<option value="3">Level Q (25%)</option>
<option value="2" selected>Level H (30%)</option>
</select>
</label>
<br/>
<label>Text mode:
<select id="qrlogo_mode">
<option value="4" selected>8bit</option>
<option value="2">Alphanumeric</option>
<option value="1">Numeric</option>
</select>
</label>
</td>
</tr><tr>
<td>Module color:<br>
<input id="qrlogo_module_color" class="jscolor {pickerMode:'HVS'}" value="4C0C0C">
<td><label>Shade factor: <select id="qrlogo_shadefactor">
<option value="0.0">0.0</option>
<option value="0.1">0.1</option>
<option value="0.2">0.2</option>
<option selected value="0.3">0.3</option>
<option value="0.4">0.4</option>
<option value="0.5">0.5</option>
<option value="0.6">0.6</option>
<option value="0.7">0.7</option>
<option value="0.8">0.8</option>
<option value="0.9">0.9</option>
<option value="1.0">1.0</option>
</select>
</label><br/>
<label>Tint factor: <select id="qrlogo_tintfactor">
<option value="0.0">0.0</option>
<option value="0.1">0.1</option>
<option value="0.2">0.2</option>
<option selected value="0.3">0.3</option>
<option value="0.4">0.4</option>
<option value="0.5">0.5</option>
<option value="0.6">0.6</option>
<option value="0.7">0.7</option>
<option value="0.8">0.8</option>
<option value="0.9">0.9</option>
<option value="1.0">1.0</option>
</select>
</label></td>
</tr><tr>
<td><label>Pixels per module: <select id="qrlogo_pixpermodule">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">8</option>
<option value="9">9</option>
<option value="10">10</option>
</select>
</label></td>
<td><input id="qrlogo_debug_checkbox" type="checkbox">Produce debug output</td>
</tr></table>
</div>
<div class="buttons">
<button type="button" id="blend_button" onclick="qrblend_onblend();" disabled="disabled">Blend QR</button>
</div>
</form>
<div id="div_encoded" class="section" style="display:none">
<h2>Generated QR code</h2>
<p>Version: <span id="qrlogo_version"></span></p>
<canvas id="qrlogo_canvas"></canvas>
<p><a href="#" onclick="qrblend_download();">Download QR code</a></p>
</div>
<div id="div_debug" class="section" style="display:none">
<h2>Debug output</h2>
<div id="div_debug_output">
</div>
</div>
</body>
</html>