Skip to content

Commit b12aa03

Browse files
committed
2 parents 8826a67 + 6501c35 commit b12aa03

22 files changed

Lines changed: 219 additions & 240 deletions

File tree

1.hello-world/1.minimum-code.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,18 @@ <h1 style="font-size: 1.5em;">Read Barcodes from a Camera</h1>
1515
<!-- <script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/dbr.js"></script> -->
1616
<script src="https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220317102136.0/dist/dbr.js"></script>
1717
<script>
18-
/** LICENSE ALERT - README
19-
*
20-
* The library requires a license to work.
21-
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
22-
* Note that network connection is required for the public license to work.
23-
* For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com.
18+
/** LICENSE ALERT - README
19+
* To use the library, you need to first specify a license key using the API "license" as shown below.
2420
*/
2521

26-
/* When using your own license, uncomment the following line and specify your license. */
22+
Dynamsoft.DBR.BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
2723

28-
// Dynamsoft.DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
29-
30-
/** LICENSE ALERT - THE END */
24+
/**
25+
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
26+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
27+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.0.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
28+
* LICENSE ALERT - THE END
29+
*/
3130

3231
let pScanner = null;
3332
document.getElementById('btn-show-scanner').onclick = async function() {

1.hello-world/10.read-video-pwa/helloworld-pwa.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,18 @@ <h1 style="font-size: 1.5em;">Hello World for PWA</h1>
1515
<button id='readBarcode'>Read Barcode via Camera</button>
1616
<script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/dbr.js"></script>
1717
<script>
18-
/** LICENSE ALERT - README
19-
*
20-
* The library requires a license to work.
21-
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
22-
* Note that network connection is required for the public license to work.
23-
* For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com.
18+
/** LICENSE ALERT - README
19+
* To use the library, you need to first specify a license key using the API "license" as shown below.
2420
*/
2521

26-
/* When using your own license, uncomment the following line and specify your license. */
27-
28-
// Dynamsoft.DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
22+
Dynamsoft.DBR.BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
2923

30-
/** LICENSE ALERT - THE END */
24+
/**
25+
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
26+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
27+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.0.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
28+
* LICENSE ALERT - THE END
29+
*/
3130

3231
let pScanner = null;
3332
let latestResult = null;

1.hello-world/11.read-video-requirejs.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,18 @@ <h1 style="font-size: 1.5em;">Hello World for RequireJS</h1>
1717
BarcodeReader,
1818
BarcodeScanner
1919
}) {
20-
/** LICENSE ALERT - README
21-
*
22-
* The library requires a license to work.
23-
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
24-
* Note that network connection is required for the public license to work.
25-
* For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com.
20+
/** LICENSE ALERT - README
21+
* To use the library, you need to first specify a license key using the API "license" as shown below.
2622
*/
2723

28-
/* When using your own license, uncomment the following line and specify your license. */
29-
30-
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
24+
BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
3125

32-
/** LICENSE ALERT - THE END */
26+
/**
27+
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
28+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
29+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.0.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
30+
* LICENSE ALERT - THE END
31+
*/
3332

3433
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220318174621.0/dist/";
3534
let pScanner = null;

1.hello-world/12.read-video-webpack/src/index.js

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
import DBR from "dynamsoft-javascript-barcode";
1+
import { BarcodeReader } from "dynamsoft-javascript-barcode";
22

3-
/** LICENSE ALERT - README
4-
*
5-
* The library requires a license to work.
6-
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
7-
* Note that network connection is required for the public license to work.
8-
* For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com.
3+
/** LICENSE ALERT - README
4+
* To use the library, you need to first specify a license key using the API "license" as shown below.
95
*/
106

11-
/* When using your own license, uncomment the following line and specify your license. */
12-
13-
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
14-
15-
/** LICENSE ALERT - THE END */
7+
BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
8+
9+
/**
10+
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
11+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
12+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.0.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
13+
* LICENSE ALERT - THE END
14+
*/
1615

17-
DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
16+
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
1817

1918
let pScanner = null;
2019
if (document.getElementById('readBarcode')) {
2120
document.getElementById('readBarcode').onclick = async function() {
2221
try {
23-
const scanner = await (pScanner = pScanner || DBR.BarcodeScanner.createInstance());
22+
const scanner = await (pScanner = pScanner || BarcodeScanner.createInstance());
2423
scanner.onFrameRead = results => {
2524
console.log("Barcodes on one frame:");
2625
for (let result of results) {

1.hello-world/13.minimum-code-es6.html

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,18 @@ <h1 style="font-size: 1.5em;">Read Barcodes from a Camera</h1>
1414
<button id="btn-show-scanner">Show Barcode Scanner</button>
1515
<script type="module">
1616
import { BarcodeReader, BarcodeScanner } from 'https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/dbr.mjs';
17-
/** LICENSE ALERT - README
18-
*
19-
* The library requires a license to work.
20-
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
21-
* Note that network connection is required for the public license to work.
22-
* For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com.
17+
/** LICENSE ALERT - README
18+
* To use the library, you need to first specify a license key using the API "license" as shown below.
2319
*/
2420

25-
/* When using your own license, uncomment the following line and specify your license. */
26-
27-
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
28-
29-
/** LICENSE ALERT - THE END */
21+
BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
22+
23+
/**
24+
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
25+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
26+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.0.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
27+
* LICENSE ALERT - THE END
28+
*/
3029

3130
// DBR.productKeys = "PRODUCT-KEYS";
3231

1.hello-world/2.read-an-image.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,18 @@ <h1 style="font-size: 1.5em;">Read Barcode from Images</h1>
2727
<!-- <script src="https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/dbr.js"></script> -->
2828
<script src="https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220317102136.0/dist/dbr.js"></script>
2929
<script>
30-
/** LICENSE ALERT - README
31-
*
32-
* The library requires a license to work.
33-
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
34-
* Note that network connection is required for the public license to work.
35-
* For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com.
30+
/** LICENSE ALERT - README
31+
* To use the library, you need to first specify a license key using the API "license" as shown below.
3632
*/
3733

38-
/* When using your own license, uncomment the following line and specify your license. */
34+
Dynamsoft.DBR.BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
3935

40-
// Dynamsoft.DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
41-
42-
/** LICENSE ALERT - THE END */
36+
/**
37+
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
38+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
39+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.0.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
40+
* LICENSE ALERT - THE END
41+
*/
4342

4443
// Load the library on page load to speed things up.
4544
(async() => {
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import { BarcodeReader } from 'keillion-dynamsoft-javascript-barcode';
22

3-
/** LICENSE ALERT - README
4-
*
5-
* The library requires a license to work.
6-
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
7-
* Note that network connection is required for the public license to work.
8-
* For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com.
3+
/** LICENSE ALERT - README
4+
* To use the library, you need to first specify a license key using the API "license" as shown below.
95
*/
106

11-
/* When using your own license, uncomment the following line and specify your license. */
12-
13-
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
14-
15-
/** LICENSE ALERT - THE END */
7+
BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
8+
9+
/**
10+
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
11+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
12+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.0.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
13+
* LICENSE ALERT - THE END
14+
*/
1615

1716
BarcodeReader.engineResourcePath = 'https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220318155126.0/dist/';
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import { BarcodeReader } from "keillion-dynamsoft-javascript-barcode";
22

3-
/** LICENSE ALERT - README
4-
*
5-
* The library requires a license to work.
6-
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
7-
* Note that network connection is required for the public license to work.
8-
* For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com.
3+
/** LICENSE ALERT - README
4+
* To use the library, you need to first specify a license key using the API "license" as shown below.
95
*/
106

11-
/* When using your own license, uncomment the following line and specify your license. */
12-
13-
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
14-
15-
/** LICENSE ALERT - THE END */
7+
BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
8+
9+
/**
10+
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
11+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
12+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.0.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
13+
* LICENSE ALERT - THE END
14+
*/
1615

1716
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220318155126.0/dist/";
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import { BarcodeReader } from "keillion-dynamsoft-javascript-barcode";
22

3-
/** LICENSE ALERT - README
4-
*
5-
* The library requires a license to work.
6-
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
7-
* Note that network connection is required for the public license to work.
8-
* For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com.
3+
/** LICENSE ALERT - README
4+
* To use the library, you need to first specify a license key using the API "license" as shown below.
95
*/
106

11-
/* When using your own license, uncomment the following line and specify your license. */
12-
13-
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
14-
15-
/** LICENSE ALERT - THE END */
7+
BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
8+
9+
/**
10+
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
11+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
12+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.0.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
13+
* LICENSE ALERT - THE END
14+
*/
1615

1716
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220318174621.0/dist/";
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
import { BarcodeReader } from "keillion-dynamsoft-javascript-barcode";
22

3-
/** LICENSE ALERT - README
4-
*
5-
* The library requires a license to work.
6-
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
7-
* Note that network connection is required for the public license to work.
8-
* For more info, please check https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=8.8.7&utm_source=github#specify-the-license or contact support@dynamsoft.com.
3+
/** LICENSE ALERT - README
4+
* To use the library, you need to first specify a license key using the API "license" as shown below.
95
*/
106

11-
/* When using your own license, uncomment the following line and specify your license. */
12-
13-
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
14-
15-
/** LICENSE ALERT - THE END */
7+
BarcodeReader.license = 'DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9';
8+
9+
/**
10+
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=github&product=dbr&package=js to get your own trial license good for 30 days.
11+
* Note that if you downloaded this sample from Dynamsoft while logged in, the above license key may already be your own 30-day trial license.
12+
* For more information, see https://www.dynamsoft.com/barcode-reader/programming/javascript/user-guide/?ver=9.0.0&utm_source=github#specify-the-license or contact support@dynamsoft.com.
13+
* LICENSE ALERT - THE END
14+
*/
1615

1716
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220318174621.0/dist/";

0 commit comments

Comments
 (0)