Skip to content

Commit bae54c8

Browse files
add google tag & replace demo license
1 parent deb6320 commit bae54c8

67 files changed

Lines changed: 1397 additions & 101 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

frameworks/angular/scan-using-foundational-api/src/app/dynamsoft.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CoreModule.engineResourcePaths.rootDirectory = 'https://cdn.jsdelivr.net/npm/';
77
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
88
*/
99

10-
LicenseManager.initLicense('DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9', { executeNow: true });
10+
LicenseManager.initLicense('DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLWRicl9qc19zYW1wbGVzIiwib3JnYW5pemF0aW9uSUQiOiIyMDAwMDAifQ==', { executeNow: true });
1111

1212
/**
1313
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=samples&product=dbr&package=js to get your own trial license good for 30 days.

frameworks/angular/scan-using-foundational-api/src/index.html

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
@@ -14,6 +14,33 @@
1414
<link rel="canonical" href="https://demo.dynamsoft.com/Samples/DBR/JS/frameworks/angular/scan-using-foundational-api/" />
1515
</head>
1616
<body>
17+
<noscript>
18+
<iframe
19+
src="https://www.googletagmanager.com/ns.html?id=GTM-538F83"
20+
height="0"
21+
width="0"
22+
style="display: none; visibility: hidden"
23+
></iframe>
24+
</noscript>
25+
<script>
26+
if (!navigator.webdriver) {
27+
setTimeout(() => {
28+
(function (w, d, s, l, i) {
29+
w[l] = w[l] || [];
30+
w[l].push({
31+
"gtm.start": new Date().getTime(),
32+
event: "gtm.js",
33+
});
34+
var f = d.getElementsByTagName(s)[0],
35+
j = d.createElement(s),
36+
dl = l != "dataLayer" ? "&l=" + l : "";
37+
j.async = true;
38+
j.src = "//www.googletagmanager.com/gtm.js?id=" + i + dl;
39+
f.parentNode.insertBefore(j, f);
40+
})(window, document, "script", "dataLayer", "GTM-538F83");
41+
}, 0);
42+
}
43+
</script>
1744
<app-root></app-root>
1845
</body>
1946
</html>

frameworks/angular/scan-using-rtu-api/src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export class AppComponent {
1616
async ngAfterViewInit(): Promise<void> {
1717
// Configuration object for initializing the BarcodeScanner instance
1818
const config: BarcodeScannerConfig = {
19-
license: "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", // Replace with your Dynamsoft license key
19+
license: "DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLWRicl9qc19zYW1wbGVzIiwib3JnYW5pemF0aW9uSUQiOiIyMDAwMDAifQ==", // Replace with your Dynamsoft license key
2020

2121
// Specify where to render the scanner UI
2222
// If container is not specified, the UI will take up the full screen
Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!doctype html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
@@ -7,6 +7,33 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1">
88
</head>
99
<body>
10+
<noscript>
11+
<iframe
12+
src="https://www.googletagmanager.com/ns.html?id=GTM-538F83"
13+
height="0"
14+
width="0"
15+
style="display: none; visibility: hidden"
16+
></iframe>
17+
</noscript>
18+
<script>
19+
if (!navigator.webdriver) {
20+
setTimeout(() => {
21+
(function (w, d, s, l, i) {
22+
w[l] = w[l] || [];
23+
w[l].push({
24+
"gtm.start": new Date().getTime(),
25+
event: "gtm.js",
26+
});
27+
var f = d.getElementsByTagName(s)[0],
28+
j = d.createElement(s),
29+
dl = l != "dataLayer" ? "&l=" + l : "";
30+
j.async = true;
31+
j.src = "//www.googletagmanager.com/gtm.js?id=" + i + dl;
32+
f.parentNode.insertBefore(j, f);
33+
})(window, document, "script", "dataLayer", "GTM-538F83");
34+
}, 0);
35+
}
36+
</script>
1037
<app-root></app-root>
1138
</body>
1239
</html>

frameworks/blazor/scan-using-foundational-api/hello-world-blazor/BlazorApp/wwwroot/index.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html lang="en">
33

44
<head>
@@ -13,6 +13,33 @@
1313
</head>
1414

1515
<body>
16+
<noscript>
17+
<iframe
18+
src="https://www.googletagmanager.com/ns.html?id=GTM-538F83"
19+
height="0"
20+
width="0"
21+
style="display: none; visibility: hidden"
22+
></iframe>
23+
</noscript>
24+
<script>
25+
if (!navigator.webdriver) {
26+
setTimeout(() => {
27+
(function (w, d, s, l, i) {
28+
w[l] = w[l] || [];
29+
w[l].push({
30+
"gtm.start": new Date().getTime(),
31+
event: "gtm.js",
32+
});
33+
var f = d.getElementsByTagName(s)[0],
34+
j = d.createElement(s),
35+
dl = l != "dataLayer" ? "&l=" + l : "";
36+
j.async = true;
37+
j.src = "//www.googletagmanager.com/gtm.js?id=" + i + dl;
38+
f.parentNode.insertBefore(j, f);
39+
})(window, document, "script", "dataLayer", "GTM-538F83");
40+
}, 0);
41+
}
42+
</script>
1643
<div id="app">
1744
<svg class="loading-progress">
1845
<circle r="40%" cx="50%" cy="50%" />
@@ -35,7 +62,7 @@
3562
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
3663
*/
3764

38-
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", { executeNow: true });
65+
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLWRicl9qc19zYW1wbGVzIiwib3JnYW5pemF0aW9uSUQiOiIyMDAwMDAifQ==", { executeNow: true });
3966

4067
/**
4168
* 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.

frameworks/blazor/scan-using-rtu-api/wwwroot/index.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html lang="en">
33

44
<head>
@@ -9,6 +9,33 @@
99
</head>
1010

1111
<body>
12+
<noscript>
13+
<iframe
14+
src="https://www.googletagmanager.com/ns.html?id=GTM-538F83"
15+
height="0"
16+
width="0"
17+
style="display: none; visibility: hidden"
18+
></iframe>
19+
</noscript>
20+
<script>
21+
if (!navigator.webdriver) {
22+
setTimeout(() => {
23+
(function (w, d, s, l, i) {
24+
w[l] = w[l] || [];
25+
w[l].push({
26+
"gtm.start": new Date().getTime(),
27+
event: "gtm.js",
28+
});
29+
var f = d.getElementsByTagName(s)[0],
30+
j = d.createElement(s),
31+
dl = l != "dataLayer" ? "&l=" + l : "";
32+
j.async = true;
33+
j.src = "//www.googletagmanager.com/gtm.js?id=" + i + dl;
34+
f.parentNode.insertBefore(j, f);
35+
})(window, document, "script", "dataLayer", "GTM-538F83");
36+
}, 0);
37+
}
38+
</script>
1239
<div id="app">
1340
</div>
1441

@@ -28,7 +55,7 @@
2855

2956
// Configuration object for initializing the BarcodeScanner instance. Refer to https://www.dynamsoft.com/barcode-reader/docs/web/programming/javascript/api-reference/barcode-scanner.html#barcodescannerconfig
3057
let config = {
31-
license: "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", // Replace with your Dynamsoft license key
58+
license: "DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLWRicl9qc19zYW1wbGVzIiwib3JnYW5pemF0aW9uSUQiOiIyMDAwMDAifQ==", // Replace with your Dynamsoft license key
3259
container: document.querySelector(".barcode-scanner-view"), // Specify where to render the scanner UI
3360

3461
// Specify the path for the definition file "barcode-scanner.ui.xml" for the scanner view.

frameworks/capacitor/scan-using-rtu-api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { BarcodeScanner, BarcodeScannerConfig } from "dynamsoft-barcode-reader-b
22

33
// Configuration object for initializing the BarcodeScanner instance
44
const config: BarcodeScannerConfig = {
5-
license: "DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", // Replace with your Dynamsoft license key
5+
license: "DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLWRicl9qc19zYW1wbGVzIiwib3JnYW5pemF0aW9uSUQiOiIyMDAwMDAifQ==", // Replace with your Dynamsoft license key
66

77
// Specify where to render the scanner UI
88
// If container is not specified, the UI will take up the full screen

frameworks/capacitor/scan-using-rtu-api/public/index.html

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html lang="en">
33

44
<head>
@@ -8,6 +8,33 @@
88
</head>
99

1010
<body>
11+
<noscript>
12+
<iframe
13+
src="https://www.googletagmanager.com/ns.html?id=GTM-538F83"
14+
height="0"
15+
width="0"
16+
style="display: none; visibility: hidden"
17+
></iframe>
18+
</noscript>
19+
<script>
20+
if (!navigator.webdriver) {
21+
setTimeout(() => {
22+
(function (w, d, s, l, i) {
23+
w[l] = w[l] || [];
24+
w[l].push({
25+
"gtm.start": new Date().getTime(),
26+
event: "gtm.js",
27+
});
28+
var f = d.getElementsByTagName(s)[0],
29+
j = d.createElement(s),
30+
dl = l != "dataLayer" ? "&l=" + l : "";
31+
j.async = true;
32+
j.src = "//www.googletagmanager.com/gtm.js?id=" + i + dl;
33+
f.parentNode.insertBefore(j, f);
34+
})(window, document, "script", "dataLayer", "GTM-538F83");
35+
}, 0);
36+
}
37+
</script>
1138
<h1>Hello World (Scan One Single Barcode via Camera)</h1>
1239
<div class="barcode-scanner-view" style="width: 100%; height: 80vh"></div>
1340

frameworks/electron/scan-using-foundational-api/action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Dynamsoft.Core.CoreModule.engineResourcePaths = {
77
* To use the library, you need to first specify a license key using the API "initLicense()" as shown below.
88
*/
99

10-
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", { executeNow: true });
10+
Dynamsoft.License.LicenseManager.initLicense("DLS2eyJoYW5kc2hha2VDb2RlIjoiMjAwMDAwLWRicl9qc19zYW1wbGVzIiwib3JnYW5pemF0aW9uSUQiOiIyMDAwMDAifQ==", { executeNow: true });
1111

1212
/**
1313
* You can visit https://www.dynamsoft.com/customer/license/trialLicense?utm_source=samples&product=dbr&package=js to get your own trial license good for 30 days.

frameworks/electron/scan-using-foundational-api/index.html

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html>
33
<head>
44
<meta charset="UTF-8" />
@@ -12,6 +12,33 @@
1212
<script src="./node_modules/dynamsoft-barcode-reader-bundle/dist/dbr.bundle.js"></script>
1313
</head>
1414
<body style="text-align: center">
15+
<noscript>
16+
<iframe
17+
src="https://www.googletagmanager.com/ns.html?id=GTM-538F83"
18+
height="0"
19+
width="0"
20+
style="display: none; visibility: hidden"
21+
></iframe>
22+
</noscript>
23+
<script>
24+
if (!navigator.webdriver) {
25+
setTimeout(() => {
26+
(function (w, d, s, l, i) {
27+
w[l] = w[l] || [];
28+
w[l].push({
29+
"gtm.start": new Date().getTime(),
30+
event: "gtm.js",
31+
});
32+
var f = d.getElementsByTagName(s)[0],
33+
j = d.createElement(s),
34+
dl = l != "dataLayer" ? "&l=" + l : "";
35+
j.async = true;
36+
j.src = "//www.googletagmanager.com/gtm.js?id=" + i + dl;
37+
f.parentNode.insertBefore(j, f);
38+
})(window, document, "script", "dataLayer", "GTM-538F83");
39+
}, 0);
40+
}
41+
</script>
1542
<h1>Hello World for Electron</h1>
1643
<div id="camera-view-container" style="width: 100%; height: 80vh"></div>
1744
<br />

0 commit comments

Comments
 (0)