Skip to content

Commit ba920e5

Browse files
Preview (#504)
1 parent 20bdfa1 commit ba920e5

3 files changed

Lines changed: 54 additions & 10 deletions

File tree

_includes/samples_index.html

Lines changed: 46 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,10 +1042,10 @@
10421042

10431043
<!-- Featured Section - Quick Start & Official Demo -->
10441044
<div class="featured-container">
1045-
<a href="https://demo.dynamsoft.com/Samples/DBR/JS/hello-world.html" class="featured-box quick-start">
1045+
<a href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html" class="featured-box quick-start">
10461046
<span class="label">🚀 Quick Start</span>
1047-
<div class="title">Hello World - Scan Your First Barcode</div>
1048-
<div class="description">The simplest example to get started with barcode scanning in under 2 minutes</div>
1047+
<div class="title">Hello World - Scan Multiple Barcodes</div>
1048+
<div class="description">The simplest example to get started with barcode scanning. Continuously scans and collects multiple unique barcodes</div>
10491049
<span
10501050
class="guide-badge"
10511051
title="View user guide documentation"
@@ -1061,7 +1061,7 @@
10611061
<span
10621062
class="github-badge"
10631063
title="View source code on GitHub"
1064-
onclick="event.stopPropagation(); window.open('https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/hello-world.html', '_blank'); return false;"
1064+
onclick="event.stopPropagation(); window.open('https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/basics/hello-world.html', '_blank'); return false;"
10651065
>
10661066
<svg width="20" height="20" viewBox="0 0 16 16" fill="white">
10671067
<path
@@ -1106,6 +1106,48 @@
11061106
>
11071107
</div>
11081108

1109+
<!-- Hello World Samples -->
1110+
<div class="file">
1111+
<h3>
1112+
Hello World Samples <span class="sample-count">(3)</span>
1113+
</h3>
1114+
</div>
1115+
<div class="children">
1116+
<div class="file">
1117+
<span data-balloon-length="large" data-balloon-pos="down" aria-label="The simplest example to get started with barcode scanning. Continuously scans and collects multiple unique barcodes."
1118+
><a class="button title demo-link" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html" title="View live demo">Hello World (Scan Multiple Barcodes)</a
1119+
><a
1120+
class="button title source-link"
1121+
href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/basics/hello-world.html"
1122+
title="View source code on GitHub"
1123+
>Source</a
1124+
></span
1125+
>
1126+
</div>
1127+
<div class="file">
1128+
<span data-balloon-length="large" data-balloon-pos="down" aria-label="Scan and return only the first barcode detected."
1129+
><a class="button title demo-link" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/scan-a-single-barcode.html" title="View live demo">Scan a Single Barcode</a
1130+
><a
1131+
class="button title source-link"
1132+
href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/basics/scan-a-single-barcode.html"
1133+
title="View source code on GitHub"
1134+
>Source</a
1135+
></span
1136+
>
1137+
</div>
1138+
<div class="file">
1139+
<span data-balloon-length="large" data-balloon-pos="down" aria-label="Read barcodes from a static image file by uploading."
1140+
><a class="button title demo-link" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/read-an-image.html" title="View live demo">Read an Image</a
1141+
><a
1142+
class="button title source-link"
1143+
href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/main/basics/read-an-image.html"
1144+
title="View source code on GitHub"
1145+
>Source</a
1146+
></span
1147+
>
1148+
</div>
1149+
</div>
1150+
11091151
<!-- Framework Samples -->
11101152
<div class="file">
11111153
<h3>

programming/javascript/user-guide/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,15 @@ The complete code of the "Hello World" example is shown below
8484
```
8585
8686
<p align="center" style="text-align:center; white-space: normal; ">
87-
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.4.20/hello-world.html" title="Code in Github" style="text-decoration:none;">
87+
<a target="_blank" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/v11.4.20/basics/hello-world.html" title="Code in Github" style="text-decoration:none;">
8888
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/github.svg" alt="Code in Github" width="20" height="20" style="width:20px;height:20px;">
8989
</a>
9090
&nbsp;
9191
<a target="_blank" href="https://jsfiddle.net/DynamsoftTeam/csm2f9wb/" title="Run via JSFiddle" style="text-decoration:none;">
9292
<img src="https://cdn.jsdelivr.net/npm/simple-icons@3.0.1/icons/jsfiddle.svg" alt="Run via JSFiddle" width="20" height="20" style="width:20px;height:20px;" >
9393
</a>
9494
&nbsp;
95-
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/hello-world.html?ver=11.4.20&utm_source=guide" title="Run in Dynamsoft" style="text-decoration:none;">
95+
<a target="_blank" href="https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.4.20&utm_source=guide" title="Run in Dynamsoft" style="text-decoration:none;">
9696
<img src="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.0.0/svgs/solid/circle-play.svg" alt="Run in Dynamsoft" width="20" height="20" style="width:20px;height:20px;">
9797
</a>
9898
</p>
@@ -137,7 +137,7 @@ The complete code of the "Hello World" example is shown below
137137
138138
### Run the example
139139
140-
You can run the example deployed to [the Dynamsoft Demo Server](https://demo.dynamsoft.com/Samples/DBR/JS/hello-world.html?ver=11.4.20&utm_source=guide) or test it with [JSFiddle code editor](https://jsfiddle.net/DynamsoftTeam/csm2f9wb/).
140+
You can run the example deployed to [the Dynamsoft Demo Server](https://demo.dynamsoft.com/Samples/DBR/JS/basics/hello-world.html?ver=11.4.20&utm_source=guide) or test it with [JSFiddle code editor](https://jsfiddle.net/DynamsoftTeam/csm2f9wb/).
141141
142142
You will be asked to allow access to your camera, after which the video will be displayed on the page. After that, you can point the camera at a barcode to read it.
143143

programming/javascript/user-guide/zip-guide.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Dynamsoft provides a complimentary trial license for the SDK. When you download
4343

4444
## Quick Start
4545

46-
Double-click `samples/hello-world.html` to instantly see a fully functional web application that scans barcodes using your device's camera! You can also try `samples/read-an-image.html` to decode barcodes from an image file.
46+
Double-click `samples/basics/hello-world.html` to instantly see a fully functional web application that scans barcodes using your device's camera! You can also try `samples/basics/read-an-image.html` to decode barcodes from an image file.
4747

4848
>[!NOTE]
4949
> These samples load the SDK from a CDN so they can be opened directly as local files without a web server. An internet connection is required. To serve everything from the local `dist/` folder, see [Deploying to Your Server](#deploying-to-your-server).
@@ -57,7 +57,7 @@ Double-click `samples/hello-world.html` to instantly see a fully functional web
5757
After unzipping, you should see the following structure:
5858

5959
- `dist/` — All Barcode Reader JavaScript SDK resources (`.js`, `.wasm`, worker files, etc.)
60-
- `samples/` — Sample projects, including standalone examples (`hello-world.html`, `read-an-image.html`), framework integrations, and scenario demos
60+
- `samples/` — Sample projects, including basic examples, framework integrations, and scenario demos
6161
- `LICENSE` — Dynamsoft license terms
6262
- `LEGAL.txt` — Third-party license notices
6363

@@ -95,7 +95,9 @@ Here are a couple of easy ways to start a local web server:
9595

9696
## Sample Folders
9797

98-
The package includes two main sample directories:
98+
The package includes three main sample directories:
99+
100+
- **`basics/`** - Simple standalone examples to get started quickly, including `hello-world.html` (scan multiple barcodes from a live camera), `scan-a-single-barcode.html`, and `read-an-image.html` (decode barcodes from an image file).
99101

100102
- **`frameworks/`** - Framework-specific examples showing how to integrate the Dynamsoft Barcode Reader into common web and hybrid frameworks. Included frameworks: Angular, Blazor, Capacitor, Electron, ES6, Native TypeScript, Next.js, Nuxt, PWA, React, RequireJS, Svelte, Vue, and WebView.
101103

0 commit comments

Comments
 (0)