From d01e6752ad31fe55a9eb945b2f811cdcf29aed72 Mon Sep 17 00:00:00 2001 From: Neeraj Rekwar <88387699+neerajrekwar@users.noreply.github.com> Date: Thu, 18 Jan 2024 12:27:21 +0530 Subject: [PATCH] Update barcode.html --- barcode.html | 67 ++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 46 insertions(+), 21 deletions(-) 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."; + } + } +