Open GaryFurash opened 3 months ago
Whether I store the JS locally or reference it from a local drive, I can't get any type of CODE128 barcodes to generate. The first 2 barcodes look fine. The last one doesn't show anything, even when I use "CODE128", "CODE128 A", etc.
<!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF_8"> <title>Test Page</title> <!-- <script type="text/javascript" src="./JsBarcode.all.min.js"></script> --> <script src="https://cdn.jsdelivr.net/jsbarcode/3.3.20/JsBarcode.all.min.js"></script> </head> <body> <div> <P>Barcode 3</P> <img id="barcode2" /> <script> JsBarcode("#barcode2", "9780199532179", { format: "CODE39", displayValue: true, fontSize: 24, lineColor: "#0cc" }); </script> </div> <div> <P>Barcode 3</P> <img id="barcode3" /> <script>JsBarcode("#barcode3", "9780199532179", { format: "CODE39", displayValue: true, fontSize: 20 });</script> </div> <div> <P>Barcode 4</P> <svg id="barcode4"></svg> <script>JsBarcode("#barcode4", "HELLO", { format: "CODE128 auto" });</script> </div> </body> </html>
Ignore. As soon as I ran it locally on web server it worked fine. Thanks! ;-) Very good library1
Whether I store the JS locally or reference it from a local drive, I can't get any type of CODE128 barcodes to generate. The first 2 barcodes look fine. The last one doesn't show anything, even when I use "CODE128", "CODE128 A", etc.