diff --git a/README.md b/README.md
index 37ea01c4..eca21735 100644
--- a/README.md
+++ b/README.md
@@ -39,6 +39,11 @@ If you have any questions, feel free to [contact Dynamsoft support](https://www.
## Sample list
+### Hello-world
+
+- [hello-world.html](./hello-world.html) — The simplest example to get started with single barcode scanning.
+- [read-an-image.html](./read-an-image.html) — Demonstrates how to decode and read barcodes from uploaded image files.
+
### Frameworks
- [angular/](./frameworks/angular/) — Angular examples.
diff --git a/hello-world.html b/hello-world.html
index e82fe98f..5e10a1d7 100644
--- a/hello-world.html
+++ b/hello-world.html
@@ -26,6 +26,20 @@
let config = {
license: "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", // Replace with your Dynamsoft license key
container: document.querySelector(".barcode-scanner-view"), // Specify where to render the scanner UI
+
+ /*
+ scanMode controls the scanning behavior:
+ - SM_MULTI_UNIQUE: Continuously scans and collects each unique barcode.
+ - SM_SINGLE: Stops scanning after the first barcode is detected.
+ */
+ // scanMode: Dynamsoft.EnumScanMode.SM_MULTI_UNIQUE,
+ // onUniqueBarcodeScanned: (result) => {
+ // console.log("Scanned barcode: ", result.text);
+ // if (condition) { // You can add custom logic here to handle each scanned barcode
+ // barcodeScanner.dispose(); // Stop scanning
+ // }
+ // },
+
// showUploadImageButton: true,
// scannerViewConfig: {
// showFlashButton: true,
@@ -84,4 +98,4 @@