Skip to content

Commit

Permalink
Наглядний приклад роботи з js/gen.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ExploitMann authored Jun 13, 2022
1 parent f8fbee4 commit 3bb74bc
Showing 1 changed file with 100 additions and 0 deletions.
100 changes: 100 additions & 0 deletions index.html
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>

0 comments on commit 3bb74bc

Please sign in to comment.