Add Aztec Code Generation

This commit is contained in:
naielv
2025-08-11 21:48:39 +02:00
parent 57171963be
commit 09fa34007b
5 changed files with 84 additions and 253 deletions

View File

@@ -989,6 +989,17 @@ function TS_IndexElement(
}
});
}
function BuildQR(mid) {
let svg = bwipjs.toSVG({
bcid: 'azteccode', // Barcode type
text: mid, // Text to encode
height: 12, // Bar height, in millimeters
includetext: true, // Show human-readable text
textxalign: 'center', // Always good to set this
textcolor: 'ff0000', // Red text
});
return `<span style="display: inline-block; height: 300px; width: 300px;">${svg}</span>`
}
const PAGES = {};
function SetPages() {