Skip to content

Commit c1ccf98

Browse files
committed
remove webpack sample; update index.html;
1 parent e018265 commit c1ccf98

8 files changed

Lines changed: 14 additions & 88 deletions

File tree

1.hello-world/12.read-video-webpack/index.html

Lines changed: 0 additions & 17 deletions
This file was deleted.

1.hello-world/12.read-video-webpack/package.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

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

Lines changed: 0 additions & 39 deletions
This file was deleted.

1.hello-world/12.read-video-webpack/webpack.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

4.use-case/1.fill-a-form-with-barcode-reading.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h3>Click each input box to fill in!</h3>
5454
scanner.hide();
5555
document.getElementById('UIElement').hidden = true;
5656
};
57-
await settings = scanner.getRuntimeSettings();
57+
settings = await scanner.getRuntimeSettings();
5858
settings.region = {
5959
regionLeft: 5,
6060
regionTop: 5,

4.use-case/2.read-a-drivers-license.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ <h1 id='header'>Read A Driver's License <a href="#" id='readAgain' hidden onclic
7474
// decode video from camera
7575
showScannerBtn.addEventListener('click', async () => {
7676
showScannerBtn.hidden = true;
77-
await startScanning(false);
77+
startScanning(false);
7878
});
7979
function backToHome() {
8080
showScannerBtn.hidden = false;
@@ -126,7 +126,7 @@ <h1 id='header'>Read A Driver's License <a href="#" id='readAgain' hidden onclic
126126
document.getElementById("confirm_btn").addEventListener("click", () => {
127127
backToHome();
128128
showScannerBtn.hidden = false;
129-
await startScanning(true);
129+
startScanning(true);
130130
document.getElementById("dialog").hidden = true;
131131
});
132132
document.getElementById("cancel_btn").addEventListener("click", () => {

index.html

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
</head>
1111

1212
<body>
13-
<!--The original doc is hosted here => https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/master/index.html -->
1413
<div class="filetree">
1514
<div class="ds-logo"></div>
1615
<div class="file">
@@ -125,6 +124,11 @@ <h3>Barcode Reader Samples</h3>
125124
RequireJS</a><span id="icon011" class="tooltipIcon"></span>
126125
<a class="github" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/master/1.hello-world/11.read-video-requirejs.html" title="Check code on GitHub"></a>
127126
</div>
127+
<div class="file"><a data-balloon-length="fit" data-balloon-pos="down" aria-label="Decode video stream from a USB-connected or built-in camera (mobile or desktop) in a web application that uses ES6." class="button title" target="_blank" href="https://www.dynamsoft.com/barcode-reader/programming/javascript/samples-demos/helloworld-es6.html">Hello
128+
World with
129+
ES6</a><span id="icon012" class="tooltipIcon"></span>
130+
<a class="github" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/tree/master/1.hello-world/12.minimum-code-es6.html" title="Check code on GitHub"></a>
131+
</div>
128132
</div>
129133
<div class="file">Customize Camera UI</div>
130134
<div class="children">
@@ -150,6 +154,12 @@ <h3>Barcode Reader Samples</h3>
150154
Video Stream</a><span id="icon024" class="tooltipIcon"></span>
151155
<a class="github" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/master/2.ui-tweaking/4.difference-video-size.html" title="Check code on GitHub"></a>
152156
</div>
157+
<div class="file"><a data-balloon-length="fit" data-balloon-pos="down" aria-label="Show the custom camera UI to decode video stream
158+
from a USB-connected or built-in camera (mobile or desktop)." class="button title" href="2.ui-tweaking/5.read-video-with-custom-default-ui.html">Customize
159+
the
160+
Camera UI</a><span id="icon025" class="tooltipIcon"></span>
161+
<a class="github" href="https://github.com/Dynamsoft/barcode-reader-javascript-samples/blob/master/2.ui-tweaking/5.read-video-with-custom-default-ui.html" title="Check code on GitHub"></a>
162+
</div>
153163
</div>
154164
<div class="file">Parameter Settings</div>
155165
<div class="children">

0 commit comments

Comments
 (0)