QRCode.js is javascript library for making QRCode. QRCode.js supports Cross-browser with HTML5 Canvas and table tag in DOM. QRCode.js has no dependencies. Now support rendering the logo image in the center of the QRCode
<div id="qrcode"></div>
<script type="text/javascript">
new QRCode(document.getElementById("qrcode"), "https://jindo.dev.naver.com/collie");
</script>
or with some options
<div id="qrcode"></div>
<script type="text/javascript">
var qrcode = new QRCode(document.getElementById("qrcode"), {
centerImageUri: 'https://remoteambition.com/assets/logo.809a7f3f.png',
probeColor: '#706eff',
width : 500,
height : 500,
showGrid: true
});
</script>
and you can use some methods
qrcode.clear(); // clear the code.
qrcode.makeCode("https://remoteambition.com"); // make another code.
IE6~10, Chrome, Firefox, Safari, Opera, Mobile Safari, Android, Windows Mobile, ETC.
MIT License
twitter @davidshimjs