diff --git a/barcode.html b/barcode.html index 5f45ff2..1a55115 100644 --- a/barcode.html +++ b/barcode.html @@ -3,35 +3,60 @@ - Barcode Generator + + + - -
- - - +

Barcode Generator

- - + + - + if (inputText.trim() !== "") { + JsBarcode("#barcode-display", inputText, { + format: "CODE128", + displayValue: true, + fontSize: 16, + width: 2, + height: 80 + }); + } else { + barcodeDisplay.innerHTML = "Please enter text for the barcode."; + } + } +