-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Наглядний приклад роботи з js/gen.js
- Loading branch information
1 parent
f8fbee4
commit 3bb74bc
Showing
1 changed file
with
100 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>BarcodeGabis</title> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<script src="js/pdf-lib.min.js"></script> | ||
<script src="js/fontkit.umd.min.js"></script> | ||
<script src="js/gen.js"></script> | ||
</head> | ||
<body style="margin: 0; overflow: hidden"> | ||
<iframe id="pdf" style="border: 0 none;min-height:100vh;width:100%"></iframe> | ||
<script> | ||
let barcodes = [ | ||
{ | ||
barcode: '4820001157321', | ||
name: 'Ботинки женские Stilly 1 2 3 4 5', | ||
price: '540,00', | ||
color: 'Зелений', | ||
size: '39', | ||
artikle: '973-4', | ||
code: '115732', | ||
country: 'Китай', | ||
date: '01.01.2022', | ||
supplier: 'ООО "Trend" China', | ||
importer: 'Башили, м. Одеса, ринок 7 км. Конт.№10', | ||
top: 'текстиль + шкіра', | ||
center: 'шкіра', | ||
bottom: 'шкіра + інші матеріали' | ||
}, | ||
{ | ||
barcode: '4820001157322', | ||
name: 'Ботинки женские Stilly Ботинки женские Stilly Ботинки женские Stilly Ботинки женские Stilly', | ||
price: '5,00', | ||
color: 'Зелений', | ||
size: '45', | ||
artikle: '973-4', | ||
code: '115732', | ||
country: 'Китай', | ||
date: '01.01.2022', | ||
supplier: 'ООО "Trend" China', | ||
importer: 'Башили, м. Одеса, ринок 7 км. Конт.№10 qwerty', | ||
top: 'інші матеріали', | ||
center: 'шкіра', | ||
bottom: 'інші матеріали' | ||
}, | ||
{ | ||
barcode: '4820001157323', | ||
name: 'Ботинки женские Stilly', | ||
price: '12345,67', | ||
color: 'Зелений', | ||
size: '45', | ||
artikle: '973-4', | ||
code: '115732', | ||
country: 'Китай', | ||
date: '01.01.2022', | ||
supplier: 'ООО "Trend" China', | ||
importer: 'Башили, м. Одеса, ринок 7 км. Конт.№10 qwerty', | ||
top: 'інші матеріали', | ||
center: 'шкіра', | ||
bottom: 'інші матеріали' | ||
}, | ||
{ | ||
barcode: '4820001157322', | ||
name: 'Ботинки женские Stilly', | ||
price: '5,00', | ||
color: 'Зелений', | ||
size: '45', | ||
artikle: '973-4', | ||
code: '115732', | ||
country: 'Китай', | ||
date: '01.01.2022', | ||
supplier: 'ООО "Trend" China', | ||
importer: 'Башили, м. Одеса, ринок 7 км. Конт.№10 qwerty', | ||
top: 'інші матеріали', | ||
center: 'шкіра', | ||
bottom: 'інші матеріали' | ||
}, | ||
{ | ||
barcode: '4820001157322', | ||
name: 'Ботинки женские Stilly', | ||
price: '5,00', | ||
color: 'Зелений', | ||
size: '45', | ||
artikle: '973-4', | ||
code: '115732', | ||
country: 'Китай', | ||
date: '01.01.2022', | ||
supplier: 'ООО "Trend" China', | ||
importer: 'Башили, м. Одеса, ринок 7 км. Конт.№10 qwerty', | ||
top: 'інші матеріали', | ||
center: 'шкіра', | ||
bottom: 'інші матеріали' | ||
} | ||
]; | ||
|
||
genGabisBarcode(barcodes); | ||
</script> | ||
</body> | ||
</html> |