Demo

Source

<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcode-generator/1.4.1/qrcode.min.js"></script>
<script>
function makeQRCode(data, imgId) {
  var qr = qrcode(0, 'M');
  qr.addData(data);
  qr.make();
  document.getElementById(imgId).src = qr.createImgTag(4);
}
</script>


Related Posts