Skip to content

TheHllm/qrcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

qrcode

Usage

Include the js file

<script src="https://raw.githubusercontent.com/TheHllm/qrcode/master/qrcode.min.js"></script>

use it

<script>
var qr = qrcode(0, 'H'); // TypeNumber(0 for auto), ErrorCorrectionLevel('L','M','Q','H')
qr.addData("Hello world"); //add some data to be 'encoded'
qr.make();
var img = qr.createImgTag(); // create a <img>
documend.body.appendChild(img); // add it to the dom
window.open(qr.createBlobUrl(20,10), '_self'); // open the qrcode
</script>

Additonal information / Based on

https://github.com/kazuhikoarase/qrcode-generator/tree/master/js

Releases

No releases published

Packages

No packages published