Added basic support for Code 39 barcodes

This commit is contained in:
Christoph Oberhofer
2015-03-01 22:48:00 +01:00
parent 3c4a108a4a
commit 7638bc41eb
9 changed files with 422 additions and 16 deletions
+2
View File
@@ -33,6 +33,8 @@
<input type="radio" name="reader" value="code_128" checked />
<label>EAN</label>
<input type="radio" name="reader" value="ean" />
<label>Code39</label>
<input type="radio" name="reader" value="code_39" />
</fieldset>
<br clear="all" />
</div>
+3 -1
View File
@@ -31,8 +31,10 @@
<div class="controls">
<button class="next">Next</button>
<fieldset class="reader-group">
<label>Code39</label>
<input type="radio" name="reader" value="code_39" checked />
<label>Code128</label>
<input type="radio" name="reader" value="code_128" checked />
<input type="radio" name="reader" value="code_128" />
<label>EAN</label>
<input type="radio" name="reader" value="ean" />
</fieldset>
+2 -2
View File
@@ -16,8 +16,8 @@ $(function() {
});
},
config: {
reader: "code_128",
length: 10
reader: "code_39",
length: 4
},
attachListeners: function() {
$(".controls").on("click", "button.next", function(e) {