Skip to content

Commit 2d00430

Browse files
committed
2 parents d26cb51 + 32bb663 commit 2d00430

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ If you have any questions, feel free to [contact Dynamsoft support](https://www.
4646
Get the basic features working with plain/native JavaScript or within a framework like [Angular](https://angular.io/), [React](https://reactjs.org/) or [Vue](https://vuejs.org/), with RTU-BarcodeScanner APIs.
4747

4848
* [**Scan Single Barcode**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/hello-world.html) - [run↗](https://demo.dynamsoft.com/samples/dbr/js/barcode-scanner-api-samples/scan-single-barcode/hello-world.html?utm_source=sampleReadme): Scan single barcode from video stream with minimum code in JavaScript.
49-
* [**Scan Single Barcode**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/scan-and-search.html) - [run↗](https://demo.dynamsoft.com/samples/dbr/js/barcode-scanner-api-samples/scan-single-barcode/scan-and-search.html?utm_source=sampleReadme): Scan a barcode to retrieve the relevant product information from the database in JavaScript.
49+
* [**Scan And Search**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/scan-and-search.html) - [run↗](https://demo.dynamsoft.com/samples/dbr/js/barcode-scanner-api-samples/scan-single-barcode/scan-and-search.html?utm_source=sampleReadme): Scan a barcode to retrieve the relevant product information from the database in JavaScript.
5050
* [**Hello World in Angular**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/angular): Read single barcode from camera in an Angular application.
5151
* [**Hello World in React**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/react): Read single barcode from camera in a React application.
5252
* [**Hello World in Vue**](https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/vue): Read single barcode from camera in a Vue application.

barcode-scanner-api-samples/scan-multiple-barcodes/cart-builder.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>List-Builder - Scan to Cart Simulation</title>
88

9-
<!-- Dynamsoft Barcode Reader Bundle -->
9+
<!-- Include Dynamsoft Barcode Reader Bundle via CDN -->
1010
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.0.3000/dist/dbr.bundle.js"></script>
1111
<!-- If the network is unstable or you prefer to self-host the SDK, uncomment the line below to load it locally -->
1212
<!-- <script src="../../../distributables/dbr.bundle.js"></script> -->

barcode-scanner-api-samples/scan-multiple-barcodes/hello-world.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>
88
Dynamsoft Barcode Scanner Sample - Hello World (Decode via Camera)
99
</title>
10-
<!-- Include Dynamsoft Barcode Reader Bundle from CDN -->
10+
<!-- Include Dynamsoft Barcode Reader Bundle via CDN -->
1111
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.0.3000/dist/dbr.bundle.js"></script>
1212
<!-- If the network is unstable or you prefer to self-host the SDK, uncomment the line below to load it locally -->
1313
<!-- <script src="../../../distributables/dbr.bundle.js"></script> -->
@@ -64,8 +64,7 @@ <h1 class="barcode-scanner-title">
6464
// Set scan mode to detect multiple unique barcodes per scan session
6565
scanMode: Dynamsoft.EnumScanMode.SM_MULTI_UNIQUE,
6666

67-
// Display a result view for barcodes detected
68-
showResultView: true,
67+
// showResultView: true,
6968

7069
// Enable an "Upload Image" button for scanning barcodes from existing images
7170
showUploadImageButton: true,
@@ -74,7 +73,7 @@ <h1 class="barcode-scanner-title">
7473

7574
// Additional configuration for the scanner UI
7675
scannerViewConfig: {
77-
showCloseButton: true, // Display a close button on the scanner interface,
76+
// showCloseButton: false, // Uncomment to show a close button in the scanner UI
7877
showFlashButton: true,
7978
cameraSwitchControl: "toggleFrontBack"
8079
},

barcode-scanner-api-samples/scan-single-barcode/scan-and-search.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Scan & Search with BarcodeScanner</title>
8+
9+
<!-- Include Dynamsoft Barcode Reader Bundle via CDN -->
810
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-barcode-reader-bundle@11.0.3000/dist/dbr.bundle.js"></script>
11+
<!-- If the network is unstable or you prefer to self-host the SDK, uncomment the line below to load it locally -->
12+
<!-- <script src="../../../distributables/dbr.bundle.js"></script> -->
913
</head>
1014

1115
<body>
16+
<h1>📦 Instant Product Information Lookup</h1>
17+
<h2>Enter a UPC, EAN, or ISBN number to retrieve accurate product data from a specific database</h2>
1218
<h3></h3>
1319
<div id="container">
1420
<button id="scan-btn" aria-label="Scan barcode">
@@ -19,7 +25,7 @@ <h3></h3>
1925
<div class="corner br"></div>
2026
</div>
2127
</button>
22-
<input type="text" id="text-input" placeholder="Enter any UPC, EAN, or ISBN number" />
28+
<input type="text" id="text-input" placeholder="e.g. 049000042511" />
2329
<button id="search-btn" aria-label="Search">
2430
<div class="search-icon"></div>
2531
</button>
@@ -37,12 +43,10 @@ <h3></h3>
3743

3844
async function startScanner() {
3945
const barcodeScanner = new Dynamsoft.BarcodeScanner({
40-
license: "", // Replace with valid license key
46+
license: "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", // Replace with valid license key
4147
scanMode: Dynamsoft.EnumScanMode.SM_SINGLE,
42-
showUploadImageButton: true,
4348
scannerViewConfig: {
4449
container: scannerContainer,
45-
showCloseButton: true,
4650
},
4751
});
4852

index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ <h3>BarcodeScanner API Samples</h3>
119119
JavaScript code to scan a barcode from camera."><a class="button title" href="barcode-scanner-api-samples/scan-single-barcode/hello-world.html">Hello World</a><span id="icon001" class="tooltipIcon"></span>
120120
<a class="github" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/barcode-scanner-api-samples/scan-single-barcode/hello-world.html" title="Check code on GitHub"></a></span>
121121
</div>
122+
<div class="file"><span data-balloon-length="large" data-balloon-pos="down" aria-label="Scan a product barcode
123+
and simulate a search from a product database."><a class="button title" href="barcode-scanner-api-samples/scan-single-barcode/scan-and-search.html">Scan and Search</a><span id="icon001" class="tooltipIcon"></span>
124+
<a class="github" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/barcode-scanner-api-samples/scan-single-barcode/scan-and-search.html" title="Check code on GitHub"></a></span>
125+
</div>
122126
<div class="file"><span data-balloon-length="large" data-balloon-pos="down" aria-label="Read barcodes from camera and images in an Angular
123127
Application."><a class="button title" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/main/barcode-scanner-api-samples/scan-single-barcode/angular">Hello World in
124128
Angular (<img alt="Angular logo"

0 commit comments

Comments
 (0)