Added support for lightColor in SVG QR codes

master
Sem 2014-03-21 04:29:03 +01:00
rodzic 07f829d4e0
commit 31ba7cc2f8
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -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++) {