-
Notifications
You must be signed in to change notification settings - Fork 47
/
bar-code-generator.html
271 lines (259 loc) · 11 KB
/
bar-code-generator.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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
---
title: Bar Code Generator | Developer Tools
layout: post
---
<html>
<head>
<!-- Meta tags common for website -->
{% include common-meta %}
<title>{{ page.title }}</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<meta name="description" content="This is easy to use open source tool to generate barcode for any text inpu. This can help you easily generate barcode images." />
<meta name="keywords" content="online,tool,barcode,download,blog,web,opensource" />
<!-- CSS for the site theme -->
{% include theme-css %}
<!-- Annoying IE fixes -->
{% include ie-fixes %}
</head>
<body class="hold-transition skin-green sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
<!-- header tag from theme -->
{% include theme-header %}
<!-- Sidebar for the whole website -->
{% include theme-sidebar %}
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Main content -->
<section class="content">
<div class="row">
<!-- left column -->
<div class="col-md-6">
<div class="box box-success">
<div class="box-header with-border">
<h1 class="box-title">Generate Bar Code</h1>
</div>
<!-- /.box-header -->
<!-- form start -->
<div class="box-body">
<form role="form">
<div class="form-group">
<label for="title">Text for Bar Code</label>
<textarea class="form-control" rows="10" id="inputText" placeholder="Enter your text here" autofocus></textarea>
</div>
<div class="form-group">
<label for="format">Bar Code Format</label>
<select id="format">
<option value="autodetect" selected="selected">Auto Detect Format</option>
<option value="UPC">UPC - (12 DIGIT)</option>
<option value="EAN2">EAN-2</option>
<option value="EAN5">EAN-5</option>
<option value="EAN8">EAN-8</option>
<option value="EAN13">EAN-13 - (13 DIGIT)</option>
<option value="EAN13">GTIN-13 (13 DIGIT)</option>
<option value="CODE128">CODE128</option>
<option value="CODE128A">CODE128A</option>
<option value="CODE128B">CODE128B</option>
<option value="CODE128C">CODE128C</option>
<option value="ITF14">ITF14</option>
<option value="MSI">MSI</option>
<option value="MSI10">MSI10</option>
<option value="MSI11">MSI11</option>
<option value="MSI1010">MSI1010</option>
<option value="MSI1110">MSI1110</option>
<option value="pharmacode">pharmacode</option>
<option value="codabar">codabar</option>
</select>
</div>
<div class="form-group">
<p id="error" class="text-red"></p>
</div>
<div class="form-group">
<p id="autodetect" class="text-aqua"></p>
</div>
</form>
</div>
<!-- /.box-body -->
<div class="box-footer">
<div class="row">
<div class="col-xs-3">
<button type="button" class="btn btn-success" id="generate">Generate Bar Code</button>
</div>
</div>
</div>
<!-- /.box-footer -->
</div>
</div>
<div class="col-md-6">
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">Download Your Bar Code From Here</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="form-group">
<div id="result">
<canvas id="barcode" width="256" height="256"></canvas>
</div>
</div>
</div>
<!-- /.box-body -->
<div class="box-footer">
<div class="row">
<div class="col-xs-1">
<button type="button" class="btn btn-info" id="download">Download Bar Code</button>
</div>
</div>
</div>
</div>
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">Find More About This Bardcode Here</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<div class="form-group">
<p id="autodetect" class="text-aqua"></p>
</div>
<div class="form-group">
<label for="amazon-url">Find On Amazon</label>
<div class="form-control"> <a id="amazon-url" target="_blank">Search On Amazon</a></div>
</div>
<div class="form-group">
<label for="ebay-url">Find On eBay</label>
<div class="form-control"> <a id="ebay-url" target="_blank">Search On eBay</a></div>
</div>
</div>
<!-- /.box-body -->
</div>
</div>
</div>
</section>
<section class="content">
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">About Bar Code Generator Tool</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<img class="img-responsive" src="images/barcode.jpg" alt="Online Open Source Bar Code Generator Tool" title="Online Open Source Bar Code Generator Tool">
<p>This is a free online tool to generate Bar code for any text. You can copy/paste your desired text/string in above text field and hit Generate Bar Code button.</p>
</div>
<!-- /.box-body -->
</div>
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">What is a Bar Code?</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<p>It is a visual code that can be read by machines using camera. It is commonly used in mobile phones to read the URL from a printed media like message board or visiting card.</p>
</div>
<!-- /.box-body -->
</div>
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">Want To Know What Is The Bar Code of a Character or String?</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<p>That is easy. Just type the character or a full string in the text box above and hit Generate Bar Code button. You should be able to see the Bar Code Image on right side.</p>
</div>
<!-- /.box-body -->
</div>
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">How To Download Bar Code Image?</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<p>The Bar code generated on this page can be downloaded using Download Bar code button. You can also download it (on most browsers except safari) by doing right click on image and choosing save image menu option.</p>
</div>
<!-- /.box-body -->
</div>
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">Can I Print this Bar Code?</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<p>Yes, the generated Bar code is absolutely free to use for personal or business purposes. You can print it on a paper, visiting card, t-shirt or anywhere you like.</p>
</div>
<!-- /.box-body -->
</div>
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">What Types of bardcode are supported by this tool?</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<p>This tool supports following barcodes</p>
<ul>
<li>UPC - Universal Product Codes - 12 Digit</li>
<li>EAN-2 - European Article Number</li>
<li>EAN-5 - European Article Number</li>
<li>EAN-8 - European Article Number</li>
<li>EAN-13 - European Article Number (13 DIGIT) </li>
<li>GTIN-8 - Global Trade Item Number (8 DIGIT)</li>
<li>GTIN-12 - Global Trade Item Number (12 DIGIT)</li>
<li>GTIN-13 - Global Trade Item Number (13 DIGIT)</li>
<li>GTIN-14 - Global Trade Item Number (14 DIGIT)</li>
<li>CODE128</li>
<li>CODE128A</li>
<li>CODE128B</li>
<li">CODE128C</li>
<li>ITF14</li>
<li>MSI</li>
<li>MSI10</li>
<li>MSI11</li>
<li>MSI1010</li>
<li>MSI1110</li>
<li>pharmacode</li>
<li>codabar</li>
</ul>
</div>
<!-- /.box-body -->
</div>
<div class="box box-success">
<div class="box-header with-border">
<h3 class="box-title">How does autodetect work?</h3>
</div>
<!-- /.box-header -->
<div class="box-body">
<p>The tool understand some known barcode formats. It can guess the format by looking at the length of string. e.g. any 12 digit code would be assumed to be UPC.</p>
</div>
<!-- /.box-body -->
</div>
</section>
{% include addthis %}
</div>
<!-- /.content-wrapper -->
{% include theme-footer %}
</div>
<!-- ./wrapper -->
{% include theme-bottom-js %}
</body>
<script src="/plugins/selectOnFocus/jquery.selectOnFocus.min.js"></script>
<script src="/javascripts/JsBarcode.all.min.js"></script>
<script src="/javascripts/reimg.js"></script>
<script src="/javascripts/barcode-ux-utils.js"></script>
<script>
$(document).ready(function() {
$("#generate").click(function() {
$('#error').text('');
const input = $("#inputText").val();
if (BarcodeUxUtils.validateBarcode(input)) {
BarcodeUxUtils.generateBarcode(input);
BarcodeUxUtils.createUrls(input);
}
});
$("#download").click(function() {
$('#error').text('');
BarcodeUxUtils.download();
});
$("#inputText").selectOnFocus();
$('#generators-category').addClass('active');
});
</script>
</html>