-
Notifications
You must be signed in to change notification settings - Fork 37
/
qrdecode.html
103 lines (78 loc) · 3.33 KB
/
qrdecode.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
<!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="qrdecode.js"></script>
<link rel="StyleSheet" type="text/css" href="default.css">
<link rel="shortcut icon" href="favicon.ico" />
<title>QR Decode</title>
</head>
<body onload="qrdecode_onload();">
<div class="nav clearfix">
<ul>
<li><a href="index.html">QR-Logo</a>
<li><a href="qrblend.html">Blend</a>
<li><a href="qrencode.html">Encode</a>
<li class="selected">Decode
<li><a href="about.html">About</a>
</ul>
</div>
<div class="section">
<h1>QR Decode</h1>
Decode your own <a href="http://en.wikipedia.org/wiki/QRcode">QR Code</a> to see what text it contains.
<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>Decode a QR Code</h1>
Upload logo:<br>
<input type="file" id="qrlogo_files" name="files[]" onchange="on_logo_file_upload(event);"/>
<p>
<canvas width="10" height="10" id="qrlogo_canvas"></canvas>
<p>
<input id="qrlogo_debug_checkbox" type="checkbox">Produce debug output
</div>
<div class="buttons">
<button type="button" id="ondecode_button" disabled="disabled" onclick="qrdecode_ondecode();">Decode QR</button>
</div>
</form>
<div id="div_decoded" class="section" style="display:none">
<h2>Decoded QR code</h2>
<textarea id="qrlogo_text" rows="10" cols="40"></textarea>
</div>
<div id="div_debug" class="section" style="display:none">
<h2>Debug output</h2>
<div id="div_debug_output">
</div>
</div>
</body>
</html>