-
Notifications
You must be signed in to change notification settings - Fork 3
/
demo.html
129 lines (129 loc) · 3.77 KB
/
demo.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Demo for jBarCode</title>
<script type="text/javascript" src="js/excanvas.js"></script>
<script type="text/javascript" src="js/qrcode.js"></script>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript" src="js/jBarCode.js"></script>
<script type="text/javascript" src="plugins/jTestRender.js"></script>
<script type="text/javascript" src="plugins/code39.js"></script>
<script type="text/javascript" src="plugins/ean.js"></script>
<script type="text/javascript" src="plugins/code128.js"></script>
<script type="text/javascript" src="plugins/qrcodePlugin.js"></script>
<style>
#testCodeGrid{
border-collapse: collapse;
width: 800px;
text-align: center;
}
#testCodeGrid td, #testCodeGrid th{
padding: 10px;
border: grey 1px solid;
}
</style>
</head>
<body>
<h1>Demonstration for jBarCode</h1>
<table id="testCodeGrid">
<tr>
<th>Bar code type</th>
<th>Test code</th>
<th>Code created</th>
<th>Note</th>
</tr>
<tr>
<td>testCode</td>
<td>1234567890</td>
<td id="test_render"></td>
<td>this is a test code generator function</td>
</tr>
<tr>
<td>code39</td>
<td>WIKIPEDIA</td>
<td id="code39"></td>
<td>code 39 generate</td>
</tr>
<tr>
<td>EAN-8</td>
<td>96385074</td>
<td id="ean8"></td>
<td>code EAN-8 generate</td>
</tr>
<tr>
<td>EAN-13</td>
<td>5901234123457</td>
<td id="ean13"></td>
<td>code EAN-13 generate</td>
</tr>
<tr>
<td>UPC</td>
<td>123456789999</td>
<td id="upc"></td>
<td>code UPC generate</td>
</tr>
<tr>
<td>Code128</td>
<td>Wikipedia</td>
<td class="code128"></td>
<td>Code 128 generate</td>
</tr>
<tr>
<td>Code128</td>
<td>123Wikipedia</td>
<td class="code128"></td>
<td>Code 128 generate compress with digit in the front</td>
</tr>
<tr>
<td>Code128</td>
<td>1234Wikipedia</td>
<td class="code128"></td>
<td>Code 128 generate compress width digit in the front</td>
</tr>
<tr>
<td>Code128</td>
<td>Wiki1234567pedia</td>
<td class="code128"></td>
<td>Code 128 generate compress with digit in the middle</td>
</tr>
<tr>
<td>Code128</td>
<td>Wiki12345678pedia</td>
<td class="code128"></td>
<td>Code 128 generate compress width digit in the middle</td>
</tr>
<tr>
<td>Code128</td>
<td>Wikipedia123</td>
<td class="code128"></td>
<td>Code 128 generate compress with digit at the end</td>
</tr>
<tr>
<td>Code128</td>
<td>Wikipedia1234</td>
<td class="code128"></td>
<td>Code 128 generate compress width digit at the end</td>
</tr>
<tr>
<td>QR Code</td>
<td>https://github.com/qquach</td>
<td id="qrcode"></td>
<td>QR code generate</td>
</tr>
</table>
<script type="text/javascript">
$("#test_render").jBarCode("1234567890","testCode");
$("#code39").jBarCode("WIKIPEDIA","code39");
$("#ean8").jBarCode("96385074","ean8");
$("#ean13").jBarCode("5901234123457","ean13");
$("#upc").jBarCode("123456789999","upc");
$(".code128").each(function(i,e){
var jObj = $(e);
var code = jObj.prev().text();
jObj.jBarCode(code,"code128");
});
$("#qrcode").jBarCode("https://github.com/qquach","qrcode");
</script>
</body>
</html>