Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Get 128 to Generate #454

Open
GaryFurash opened this issue May 20, 2024 · 1 comment
Open

Can't Get 128 to Generate #454

GaryFurash opened this issue May 20, 2024 · 1 comment

Comments

@GaryFurash
Copy link

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>
@GaryFurash
Copy link
Author

Ignore. As soon as I ran it locally on web server it worked fine. Thanks! ;-) Very good library1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant