Barcode Generation

This commit is contained in:
CAnetzberger
2022-02-21 15:01:43 +01:00
parent aa6c93f3f6
commit 79ec11e25c
224 changed files with 22474 additions and 95 deletions

30
node_modules/jsbarcode/test/browser/jQueryTest.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
var parent;
function doTests(p){
parent = p;
createTests(newTest);
}
function newTest(text, options){
var testbox = document.createElement("div");
testbox.className = "testbox";
var format = (typeof options !== "undefined" && options.format) || "auto";
testbox.innerHTML = '\
<b>Format:</b> ' + format + '<br>\
<b>Input:</b> ' + text + '<br>\
<br>\
<img class="barcode"/>';
try{
$('.barcode', testbox).JsBarcode(text, options);
}
catch(e){
testbox.className = "errorbox";
testbox.onclick = function(){
throw e;
}
}
parent.appendChild(testbox);
}