Skip to content

Commit 91010a2

Browse files
committed
2 parents 11eb306 + f753475 commit 91010a2

File tree

21 files changed

+140
-166
lines changed

21 files changed

+140
-166
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ <h1 style="font-size: 1.5em;">Read Barcodes from a Camera</h1>
1515
<button id="btn-show-scanner">Show Barcode Scanner</button>
1616
<script>
1717
/** LICENSE ALERT - README
18+
*
1819
* The library requires a license to work.
1920
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
2021
* Note that network connection is required for the public license to work.
@@ -25,10 +26,7 @@ <h1 style="font-size: 1.5em;">Read Barcodes from a Camera</h1>
2526

2627
// Dynamsoft.DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
2728

28-
29-
30-
31-
29+
/** LICENSE ALERT - THE END */
3230

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ <h1 style="font-size: 1.5em;">Hello World for PWA</h1>
1616
<button id='readBarcode'>Read Barcode via Camera</button>
1717
<script>
1818
/** LICENSE ALERT - README
19+
*
1920
* The library requires a license to work.
2021
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
2122
* Note that network connection is required for the public license to work.
@@ -25,6 +26,8 @@ <h1 style="font-size: 1.5em;">Hello World for PWA</h1>
2526
/* When using your own license, uncomment the following line and specify your license. */
2627

2728
// 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 */
2831

2932
let pScanner = null;
3033
let latestResult = null;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ <h1 style="font-size: 1.5em;">Hello World for RequireJS</h1>
1919
BarcodeScanner
2020
}) {
2121
/** LICENSE ALERT - README
22+
*
2223
* The library requires a license to work.
2324
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
2425
* Note that network connection is required for the public license to work.
@@ -28,6 +29,8 @@ <h1 style="font-size: 1.5em;">Hello World for RequireJS</h1>
2829
/* When using your own license, uncomment the following line and specify your license. */
2930

3031
// BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
32+
33+
/** LICENSE ALERT - THE END */
3134

3235
BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
3336
let pScanner = null;

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

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
import DBR from "dynamsoft-javascript-barcode";
22

33
/** LICENSE ALERT - README
4-
* The library requires a license to work, you use the API organizationID to tell the program where to fetch your license.
5-
* If the Organizaion ID is not specified, a 7-day (public) trial license will be used by default which is the case in this sample.
6-
* Note that network connection is required for this license to work.
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.
79
*/
810

9-
/* When using your own license, uncomment the following line and specify your Organization ID. */
11+
/* When using your own license, uncomment the following line and specify your license. */
1012

11-
// Dynamsoft.DBR.organizationID = "YOUR-ORGANIZATION-ID";
12-
13-
/* If you don't have a license yet, you can request a trial on this page: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&package=js&utm_source=samples */
14-
/* For more information, please refer to https://www.dynamsoft.com/license-server/docs/about/licensefaq.html?ver=latest#how-to-use-a-trackable-license. */
15-
16-
/* The API "productKeys" is an alternative way to license the library, the major difference is that it does not require a network. Contact support@dynamsoft.com for more information. */
17-
18-
// Dynamsoft.DBR.productKeys = "YOUR-PRODUCT-KEY";
13+
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1914

2015
/** LICENSE ALERT - THE END */
2116

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

2419
let pScanner = null;
2520
if (document.getElementById('readBarcode')) {

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,21 @@ <h1 style="font-size: 1.5em;">Read Barcode from Images</h1>
2727
</style>
2828
<script>
2929
/** LICENSE ALERT - README
30+
*
3031
* The library requires a license to work.
3132
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
3233
* Note that network connection is required for the public license to work.
3334
* 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.
3435
*/
3536

3637
/* When using your own license, uncomment the following line and specify your license. */
37-
38-
// Dynamsoft.DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
39-
4038

39+
// Dynamsoft.DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
4140

41+
/** LICENSE ALERT - THE END */
4242

4343
// Load the library on page load to speed things up.
44-
(async()=>{
44+
(async() => {
4545
try {
4646
await Dynamsoft.DBR.BarcodeReader.loadWasm();
4747
document.getElementById('p-loading').style.display = 'none';

1.hello-world/3.read-video-angular/src/app/dbr.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import DBR from "dynamsoft-javascript-barcode";
22

33
/** LICENSE ALERT - README
4+
*
45
* The library requires a license to work.
56
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
67
* Note that network connection is required for the public license to work.
@@ -11,6 +12,8 @@ import DBR from "dynamsoft-javascript-barcode";
1112

1213
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1314

15+
/** LICENSE ALERT - THE END */
16+
1417
DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
1518

1619
export default DBR;

1.hello-world/4.read-video-react/src/dbr.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import DBR from "dynamsoft-javascript-barcode";
22

33
/** LICENSE ALERT - README
4+
*
45
* The library requires a license to work.
56
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
67
* Note that network connection is required for the public license to work.
@@ -11,6 +12,8 @@ import DBR from "dynamsoft-javascript-barcode";
1112

1213
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1314

15+
/** LICENSE ALERT - THE END */
16+
1417
DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
1518

1619
export default DBR;

1.hello-world/5.read-video-vue/src/dbr.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import DBR from "dynamsoft-javascript-barcode";
22

33
/** LICENSE ALERT - README
4+
*
45
* The library requires a license to work.
56
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
67
* Note that network connection is required for the public license to work.
@@ -11,6 +12,8 @@ import DBR from "dynamsoft-javascript-barcode";
1112

1213
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1314

15+
/** LICENSE ALERT - THE END */
16+
1417
DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
1518

1619
export default DBR;

1.hello-world/6.read-video-vue3/src/dbr.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import DBR from "dynamsoft-javascript-barcode";
22

33
/** LICENSE ALERT - README
4+
*
45
* The library requires a license to work.
56
* If the license is not specified, a free public trial license will be used by default which is the case in this sample.
67
* Note that network connection is required for the public license to work.
@@ -11,6 +12,8 @@ import DBR from "dynamsoft-javascript-barcode";
1112

1213
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1314

15+
/** LICENSE ALERT - THE END */
16+
1417
DBR.BarcodeReader.engineResourcePath = "https://cdn.jsdelivr.net/npm/dynamsoft-javascript-barcode@8.8.7/dist/";
1518

1619
export default DBR;

1.hello-world/7.read-video-nextjs/dbr.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,16 @@
11
import DBR from "dynamsoft-javascript-barcode";
22

33
/** LICENSE ALERT - README
4-
* The library requires a license to work, you use the API organizationID to tell the program where to fetch your license.
5-
* If the Organizaion ID is not specified, a 7-day (public) trial license will be used by default which is the case in this sample.
6-
* Note that network connection is required for this license to work.
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.
79
*/
810

9-
/* When using your own license, uncomment the following line and specify your Organization ID. */
11+
/* When using your own license, uncomment the following line and specify your license. */
1012

11-
// DBR.organizationID = "YOUR-ORGANIZATION-ID";
12-
13-
/* If you don't have a license yet, you can request a trial on this page: https://www.dynamsoft.com/customer/license/trialLicense?product=dbr&package=js&utm_source=samples */
14-
/* For more information, please refer to https://www.dynamsoft.com/license-server/docs/about/licensefaq.html?ver=latest#how-to-use-a-trackable-license. */
15-
16-
/* The API "productKeys" is an alternative way to license the library, the major difference is that it does not require a network. Contact support@dynamsoft.com for more information. */
17-
18-
// DBR.productKeys = "YOUR-PRODUCT-KEY";
13+
// DBR.BarcodeReader.license = "YOUR-ORGANIZATION-ID or YOUR-HANDSHAKECODE or AN-OFFLINE-LICENSE or ANY-OTHER-TYPE-OF-SUPPORTED-LICENSE-STRING";
1914

2015
/** LICENSE ALERT - THE END */
2116

0 commit comments

Comments
 (0)