Pure javascript QR Code generator. Armed with elegant svg path method.
HTML
217
16 commits
updated Mar 14, 2020
Pure javascript QR Code generator. Armed with elegant method for creating SVG nodes.
QR Code svg generator (Live demo)
After qrcode.min.js is downloaded and connected to your html5 page, call:
var
svgNode = QRCode("Hello World!");
All other options:
var
svgNode = QRCode({
msg : "Your message here"
,dim : 300
,pad : 6
,mtx : 7
,ecl : "H"
,ecb : 0
,pal : ["#000000", "#f2f4f8"]
,vrb : 1
});
message, obviously, this is mandatory parameter.256.4 blocks, set 0 for no padding.0 to 7, default value is -1 and best suitable mask is choosen automaticallyL, M, H, Q, default value is M.1, set 0 if no boost needed.color,background-color] strings that represent hex color codes, default value is ['#000'] along with transparent background. Set ['#000','#fff'] to make background opaque.0, set this parameter to 1 in case you need more verbose output.16 commits
HTML
100.0%
Pure javascript QR Code generator. Armed with elegant svg path method.
HTML
217
16 commits
updated Mar 14, 2020
Pure javascript QR Code generator. Armed with elegant method for creating SVG nodes.
QR Code svg generator (Live demo)
After qrcode.min.js is downloaded and connected to your html5 page, call:
var
svgNode = QRCode("Hello World!");
All other options:
var
svgNode = QRCode({
msg : "Your message here"
,dim : 300
,pad : 6
,mtx : 7
,ecl : "H"
,ecb : 0
,pal : ["#000000", "#f2f4f8"]
,vrb : 1
});
message, obviously, this is mandatory parameter.256.4 blocks, set 0 for no padding.0 to 7, default value is -1 and best suitable mask is choosen automaticallyL, M, H, Q, default value is M.1, set 0 if no boost needed.color,background-color] strings that represent hex color codes, default value is ['#000'] along with transparent background. Set ['#000','#fff'] to make background opaque.0, set this parameter to 1 in case you need more verbose output.16 commits
HTML
100.0%