A Pen by Johan Lindell on CodePen.
Created
October 17, 2017 05:56
-
-
Save gogl92/4066dcf16030f02e57fed0dead2c976d to your computer and use it in GitHub Desktop.
Simple JsBarcode Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg id="code128"></svg> | |
<svg id="ean-13"></svg> | |
<svg id="ean-8"></svg> | |
<svg id="ean-5"></svg> | |
<svg id="ean-2"></svg> | |
<svg id="upc-a"></svg> | |
<svg id="code39"></svg> | |
<svg id="itf-14"></svg> | |
<svg id="msi"></svg> | |
<svg id="pharmacode"></svg> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JsBarcode("#code128", "Hi!"); | |
JsBarcode("#ean-13", "1234567890128", {format: "ean13"}); | |
JsBarcode("#ean-8", "12345670", {format: "ean8"}); | |
JsBarcode("#ean-5", "12345", {format: "ean5"}); | |
JsBarcode("#ean-2", "12", {format: "ean2"}); | |
JsBarcode("#upc-a", "123456789012", {format: "upc"}); | |
JsBarcode("#code39", "Hello", {format: "code39"}); | |
JsBarcode("#itf-14", "1234567890123", {format: "itf14"}); | |
JsBarcode("#msi", "123456", {format: "msi"}); | |
JsBarcode("#pharmacode", "12345", {format: "pharmacode"}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.jsdelivr.net/jsbarcode/3.3.20/JsBarcode.all.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svg { | |
margin: 30px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment