-
Notifications
You must be signed in to change notification settings - Fork 13
code39.js
Sean edited this page Oct 3, 2017
·
2 revisions
code39(chars,canvaselem);
chars
is a string that will be converted to a barcode; canvaselem
(optional) is a canvas element where the barcode will be drawn on. The function returns the canvas element where the barcode was drawn on.
These methods and properties are only available with the non-minified version; though the minified version also has these, their names are just letters.
code39.values
An object with the barcode lines represented as a number. When converted to base 3, 0
represents a large space, 1
represents a thin bar, and 2
represents a large bar.
Copy and paste this code into the <head>
tag of your HTML:
<script src="https://orbiit.github.io/gunn-web-app/js/code39.min.js" charset="utf-8"></script>