Skip to content

Commit 299134f

Browse files
Merge pull request #29 from Dynamsoft/_dev
Dev
2 parents 1f47e8c + 72b7e50 commit 299134f

8 files changed

Lines changed: 22 additions & 9 deletions

1.hello-world/9.read-video-electron/action.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ document.getElementById('readBarcode').onclick = async () => {
3131
alert(ex.message);
3232
throw ex;
3333
}
34-
};
34+
};

1.hello-world/9.read-video-electron/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
<body>
1313
<h1 style="font-size: 1.5em;">Hello World for Electron</h1>
1414
<button id='readBarcode'>Read Barcode via Camera</button>
15-
<div class="container">
15+
<div id="UIElement">
1616
<div id="barcodeScannerUI"></div>
1717
</div>
18+
<input id="resultText" type="text" readonly="true">
1819
<script src="./node_modules/dynamsoft-javascript-barcode/dist/dbr.js"></script>
1920
<script src="action.js"></script>
2021
</body>
Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
body {
23
text-align: center;
34
}
@@ -7,10 +8,21 @@ body {
78
height: 100%;
89
}
910

10-
.container {
11+
#UIElement {
1112
margin: 2vmin auto;
1213
text-align: center;
1314
font-size: medium;
14-
height: 60vh;
15+
height: 40vh;
16+
width: 80vw;
17+
}
18+
#resultText {
19+
display: block;
20+
margin: 0 auto;
21+
padding: 0.4rem 0.8rem;
22+
color: inherit;
1523
width: 80vw;
24+
border: none;
25+
font-size: 1rem;
26+
border-radius: 0.2rem;
27+
text-align: center;
1628
}

3.settings/1.barcodeFormats-expectedBarcodes.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
<meta name="description" content="Read barcodes from camera with Dynamsoft Barcode Reader and update simple runtime settings.">
88
<meta name="keywords" content="read barcode from camera, formats and count">
9-
<title>Dynamsoft Barcode Reader Sample - Using Runtime Settings</title>
9+
<title>Dynamsoft Barcode Reader Sample - Limit Barcode Formats or Count</title>
1010
<!--
1111
This sample makes use of the library hosted by the CDN jsDelivr. If you would rather use the
1212
library offline. Please see the guide on how to host the library:

3.settings/2.localizationModes-binarizationModes.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
<meta name="description" content="Read barcodes from camera with Dynamsoft Barcode Reader and update simple runtime settings.">
88
<meta name="keywords" content="read barcode from camera, formats and count">
9-
<title>Dynamsoft Barcode Reader Sample - Using Runtime Settings</title>
9+
<title>Dynamsoft Barcode Reader Sample - Blurred or Small Barcodes</title>
1010
<!--
1111
This sample makes use of the library hosted by the CDN jsDelivr. If you would rather use the
1212
library offline. Please see the guide on how to host the library:

3.settings/3.blurred-small-barcodes.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
<meta name="description" content="Read barcodes from camera with Dynamsoft Barcode Reader and update settings for blurry or small codes.">
88
<meta name="keywords" content="read barcode from camera, blurry, small">
9-
<title>Dynamsoft Barcode Reader Sample - Using Runtime Settings</title>
9+
<title>Dynamsoft Barcode Reader Sample - Blurred Small Barcodes</title>
1010
<!--
1111
This sample makes use of the library hosted by the CDN jsDelivr. If you would rather use the
1212
library offline. Please see the guide on how to host the library:

3.settings/4.deformed-incomplete-barcodes.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
<meta name="description" content="Read barcodes from camera with Dynamsoft Barcode Reader and update settings for deformed or incomplete codes.">
88
<meta name="keywords" content="read barcode from camera, deformed, incomplete">
9-
<title>Dynamsoft Barcode Reader Sample - Using Runtime Settings</title>
9+
<title>Dynamsoft Barcode Reader Sample - Deformed or Incomplete Barcodes</title>
1010
<!--
1111
This sample makes use of the library hosted by the CDN jsDelivr. If you would rather use the
1212
library offline. Please see the guide on how to host the library:

3.settings/5.regionOfInterest-regionPredetection.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
<meta name="description" content="Read barcodes from camera with Dynamsoft Barcode Reader, read only the area of interest.">
88
<meta name="keywords" content="read barcode from camera, region of interest">
9-
<title>Dynamsoft Barcode Reader Sample - Using Runtime Settings</title>
9+
<title>Dynamsoft Barcode Reader Sample - Region Definition or Pre-detection</title>
1010
<!--
1111
This sample makes use of the library hosted by the CDN jsDelivr. If you would rather use the
1212
library offline. Please see the guide on how to host the library:

0 commit comments

Comments
 (0)