-
Notifications
You must be signed in to change notification settings - Fork 37
/
index.html
151 lines (121 loc) · 5.58 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
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
<!DOCTYPE html>
<html>
<head>
<!--
QR-Logo: http://qrlogo.kaarposoft.dk
Copyright (C) 2011-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="qrlogo.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="StyleSheet" type="text/css" href="qrlogo.css">
<link rel="shortcut icon" href="favicon.ico" />
<title>QR-Logo</title>
</head>
<body onload="qrlogo_onload();">
<div class="nav clearfix">
<ul>
<li class="selected">QR-Logo
<li><a href="qrblend.html">Blend</a>
<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-Logo</h1>
QR-Logo 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.
<h3>Examples</h3>
<img src="testpics/qr_logo_01.png" alt="http://qrlogo.kaarposoft.dk">
<img src="testpics/qr_kaarpo.png" alt="http://www.kaarpo.dk">
<img src="testpics/qr_kaarpo45.png" alt="http://www.kaarpo.dk">
<img src="testpics/qr_firefox.png" alt="http://www.mozilla.com/firefox/">
</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>QR-Logo Generator</h1>
<table class="table_borders"><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_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><input id="qrlogo_debug_checkbox" type="checkbox">Produce debug output</td>
</tr><tr>
<td>Module color:<br>
<input id="qrlogo_module_color" class="jscolor {pickerMode:'HVS'}" value="4C0C0C"></td>
<td></td>
</tr></table>
</div>
<div class="buttons">
<button type="button" id="qrlogo_start" onclick="qrlogo_onstart();" disabled="disabled">Generate QR Logo</button>
<button type="button" id="qrlogo_stop" onclick="qrlogo_onstop();" disabled="disabled">Stop</button>
</div>
</form>
<div id="div_current" class="section" style="display:none">
<h2>Current logo</h2>
Generating QR Logo <b>#<span id="span_logo_i">0</span></b> of <b>#<span id="span_logo_n">0</span></b>
<div id="div_current_qrlogo">
</div>
</div>
<div id="div_best" style="display:none">
<h1 id="h_best_qrlogos">Best logos</h1>
<div id="div_best_qrlogos">
<table><tr>
<td><div class="section"><h2>Excellent</h2><div id="div_best_qrlogos_4"></div></div></td>
<td><div class="section"><h2>Good</h2><div id="div_best_qrlogos_3"></div></div></td>
<td><div class="section"><h2>Fair</h2><div id="div_best_qrlogos_2"></div></div></td>
<td><div class="section"><h2>Poor</h2><div id="div_best_qrlogos_1"></div></div></td>
</tr></table>
</div>
</div>
<div id="div_debug" class="section" style="display:none">
<h2>Debug Output</h2>
<div id="div_debug_output">
</div>
</div>
<div id="div_debug_detailed" class="section" style="display:none">
<h2>Detailed Debug Output</h2>
<div id="div_debug_detailed_output">
</div>
</div>
</body>
</html>