This commit is contained in:
naielv
2025-08-11 22:16:08 +02:00
parent b07dcd8683
commit 505f591839
4 changed files with 4 additions and 79 deletions

View File

@@ -990,14 +990,7 @@ 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
});
var svg = QRCode(mid);
return `<span style="display: inline-block; height: 300px; width: 300px;">${svg}</span>`
}

View File

@@ -102,7 +102,7 @@
>
</div>
<script src="static/showdown.min.js"></script>
<script src="static/qrcode/bwip-min.js"></script>
<script src="static/qrcode/qrcode.min.js"></script>
<script src="static/qrcode/html5-qrcode.min.js"></script>
<script src="static/jquery.js"></script>
<script src="static/gun.js"></script>