At frist finished QR code scanner in my app, but we need also support 2d data matrix code, then it will perfect web scanner.
Can any one to help, thanks a lot.
JSP Code: (No support IOS)
%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<title>Web Scanner</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; */
width:100%;
height:100%;
}
#qr-canvas{
display:inline; /* 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;
}
#outdiv
{
width:100%;
height:100%;
border: solid;
border-width: 3px 3px 3px 3px;
}
#result{
border: solid;
border-width: 1px 1px 1px 1px;
padding:20px;
width:70%;
}
</style>
<script type="text/javascript" src="jswebscanner/llqrcode.js"></script>
<script type="text/javascript" src="jswebscanner/webqr.js"></script>
Web Scanner
<script type="text/javascript">
load();
</script>