forked from kaarposoft/qrlogo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqrencode.html
143 lines (117 loc) · 5.1 KB
/
qrencode.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
<!DOCTYPE html>
<html>
<head>
<!--
QR-Logo: http://qrlogo.kaarposoft.dk
Copyright (C) 2011 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="qrencode.js"></script>
<script type="text/javascript" src="jscolor/jscolor.js"></script>
<link rel="StyleSheet" type="text/css" href="default.css">
<link rel="shortcut icon" href="favicon.ico" />
<title>QR Encode</title>
</head>
<body onload="qrencode_onload();">
<div class="nav clearfix">
<ul>
<li><a href="index.html">QR-Logo</a>
<li class="selected">Encode
<li><a href="qrdecode.html">Decode</a>
<li><a href="about.html">About</a>
</ul>
</div>
<div class="section">
<h1>QR Encode</h1>
Encode your own text into a <a href="http://en.wikipedia.org/wiki/QRcode">QR Code</a>.
<p>The main feature of this site is <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>Encode Text into QR Code</h1>
<table><tr>
<td colspan="2">Text:<br>
<textarea id="qrlogo_text" rows="10" cols="40">http://qrlogo.kaarposoft.dk</textarea></td>
</tr><tr>
<td>Background color:<br>
<input id="qrlogo_bg_color" class="color {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="color {pickerMode:'HVS'}" value="4C0C0C">
</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>
</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><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></table>
</div>
<div class="buttons">
<button type="button" onclick="qrencode_onencode();">Encode 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="qrencode_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>