update
This commit is contained in:
70
assets/static/qrcode/bwip-js-min.js
vendored
70
assets/static/qrcode/bwip-js-min.js
vendored
File diff suppressed because one or more lines are too long
2
assets/static/qrcode/qrcode.min.js
vendored
Normal file
2
assets/static/qrcode/qrcode.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -990,14 +990,7 @@ function TS_IndexElement(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
function BuildQR(mid) {
|
function BuildQR(mid) {
|
||||||
let svg = bwipjs.toSVG({
|
var svg = QRCode(mid);
|
||||||
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>`
|
return `<span style="display: inline-block; height: 300px; width: 300px;">${svg}</span>`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@
|
|||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
<script src="static/showdown.min.js"></script>
|
<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/qrcode/html5-qrcode.min.js"></script>
|
||||||
<script src="static/jquery.js"></script>
|
<script src="static/jquery.js"></script>
|
||||||
<script src="static/gun.js"></script>
|
<script src="static/gun.js"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user