-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdecodeqr.html
177 lines (165 loc) · 3.06 KB
/
decodeqr.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
<html>
<head>
<meta name="description" content="QR Code scanner" />
<meta name="keywords" content="qrcode,qr code,scanner,barcode,javascript,nfc" />
<meta name="language" content="English" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>QR Code decoder Demo </title>
<style type="text/css">
body{
width:100%;
text-align:center;
}
img{
border:0;
}
#main{
margin: 15px auto;
background:white;
overflow: auto;
width: 100%;
}
#header{
background:white;
margin-bottom:15px;
}
#mainbody{
background: white;
width:100%;
display:none;
}
#footer{
background:white;
}
#v{
width:320px;
height:240px;
}
#qr-canvas{
display:none;
}
#qrfile{
width:320px;
height:240px;
}
#mp1{
text-align:center;
font-size:35px;
}
#imghelp{
position:relative;
left:0px;
top:-160px;
z-index:100;
font:18px arial,sans-serif;
background:#f0f0f0;
margin-left:35px;
margin-right:35px;
padding-top:10px;
padding-bottom:10px;
border-radius:20px;
}
.selector{
margin:0;
padding:0;
cursor:pointer;
margin-bottom:-5px;
}
div.select {
margin: 0 0 1em 0;
}
select {
margin: 0 1em 1em 0;
position: relative;
top: -1px;
}
div#container {
margin: 0 auto 0 auto;
max-width: 40em;
padding: 1em 1.5em 1.3em 1.5em;
}
#outdiv
{
width:320px;
height:240px;
border: solid;
border-width: 3px 3px 3px 3px;
}
#result{
border: solid;
border-width: 1px 1px 1px 1px;
padding:20px;
width:70%;
}
ul{
margin-bottom:0;
margin-right:40px;
}
li{
display:inline;
padding-right: 0.5em;
padding-left: 0.5em;
font-weight: bold;
border-right: 1px solid #333333;
}
li a{
text-decoration: none;
color: black;
}
#footer a{
color: black;
}
.tsel{
padding:0;
}
</style>
<script type="text/javascript" src="js/llqrcode.js"></script>
<script type="text/javascript" src="js/qrdecode.js"></script>
</head>
<body>
<div id="main">
<div id="header">
<p id="mp1">
QR Code scanner
</p>
<ul>
<li><a href="qrcode.html">Scan</a></li>
<li><a href="createqr.html">Create</a></li>
</ul>
</div>
<div id="container">
<div class="select">
<label for="videoSource">Video source: </label><select id="videoSource"></select>
</div>
</div>
<div id="mainbody">
<table class="tsel" border="0" width="100%">
<tr>
<td valign="top" align="center" width="50%">
<table class="tsel" border="0">
<tr>
<td><img class="selector" id="webcamimg" src="img/vid.png" onclick="setwebcam()" align="left" /></td>
<td><img class="selector" id="qrimg" src="img/cam.png" onclick="setimg()" align="right"/></td></tr>
<tr><td colspan="2" align="center">
<div id="outdiv">
</div></td></tr>
</table>
</td>
</tr>
<tr><td colspan="3" align="center">
<img src="img/down.png"/>
</td></tr>
<tr><td colspan="3" align="center">
<div id="result"></div>
</td></tr>
</table>
</div>
<div id="footer">
<br>
</div>
</div>
<canvas id="qr-canvas" width="800" height="600"></canvas>
<script type="text/javascript">load();</script>
</body>
</html>