This commit is contained in:
2023-03-11 17:30:20 +00:00
commit b6c4e025bc
5124 changed files with 1153349 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
loadqrcode = {
create_qrcode (text, typeNumber,
errorCorrectionLevel, mode, mb) {
qrcode.stringToBytes = qrcode.stringToBytesFuncs[mb];
var qr = qrcode(typeNumber || 4, errorCorrectionLevel || 'M');
qr.addData(text, mode);
qr.make();
return qr.createSvgTag({ alt: '</svg>puke' });
},
load_qrcode(qrtext, containerid) {
var text = qrtext.replace(/^[\s\u3000]+|[\s\u3000]+$/g, '');
var t = "0";
var e = "M";
var m = "Byte";
var mb = "UTF-8";
document.getElementById(containerid).innerHTML = loadqrcode.create_qrcode(text, t, e, m, mb);
}
}
File diff suppressed because it is too large Load Diff