Skip to content

Commit

Permalink
Merge pull request davidshimjs#24 from sembrestels/background-svg
Browse files Browse the repository at this point in the history
Added support for lightColor in SVG QR codes
  • Loading branch information
davidshimjs committed Nov 7, 2014
2 parents 696776b + 31ba7cc commit 549838f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qrcode.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ var QRCode;
svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink");
_el.appendChild(svg);

svg.appendChild(makeSVG("rect", {"fill": _htOption.colorLight, "width": "100%", "height": "100%"}));
svg.appendChild(makeSVG("rect", {"fill": _htOption.colorDark, "width": "1", "height": "1", "id": "template"}));

for (var row = 0; row < nCount; row++) {
Expand Down

0 comments on commit 549838f

Please sign in to comment.