From a2d4ecf2b8cbe34904b5635da2a7a5169c0a61f3 Mon Sep 17 00:00:00 2001 From: felixindrawan Date: Mon, 17 Jun 2024 12:21:22 -0700 Subject: [PATCH] fix: match hello-world js to sample on docs --- hello-world/es6.html | 169 ++++++++++++++++---------------- hello-world/hello-world.html | 143 +++++++++++++-------------- hello-world/requirejs.html | 185 +++++++++++++++++------------------ 3 files changed, 251 insertions(+), 246 deletions(-) diff --git a/hello-world/es6.html b/hello-world/es6.html index 01317f0c..76afac3a 100644 --- a/hello-world/es6.html +++ b/hello-world/es6.html @@ -1,96 +1,101 @@ + + + + + + + Dynamsoft Barcode Reader Sample - Hello World for ES6 (Decode via Camera) + - - - - - - - Dynamsoft Barcode Reader Sample - Hello World for ES6 (Decode via Camera) - + +

Hello World for ES6 (Decode via Camera)

+
+ Results:
+
+ - - - \ No newline at end of file + // Open camera and start scanning single barcode. + await cameraEnhancer.open(); + await cvRouter.startCapturing("ReadSingleBarcode"); + } catch (ex) { + let errMsg = ex.message || ex; + console.error(errMsg); + alert(errMsg); + } + })(); + + + diff --git a/hello-world/hello-world.html b/hello-world/hello-world.html index 394bc99f..fbf84256 100644 --- a/hello-world/hello-world.html +++ b/hello-world/hello-world.html @@ -1,84 +1,85 @@ - - - - - - - Dynamsoft Barcode Reader Sample - Hello World (Decode via Camera) - + + + + + + + Dynamsoft Barcode Reader Sample - Hello World (Decode via Camera) + - -

Hello World (Decode via Camera)

-
- Results:
-
- - + - + // Open camera and start scanning single barcode. + await cameraEnhancer.open(); + await cvRouter.startCapturing("ReadSingleBarcode"); + } catch (ex) { + let errMsg = ex.message || ex; + console.error(errMsg); + alert(errMsg); + } + })(); + + diff --git a/hello-world/requirejs.html b/hello-world/requirejs.html index 68e95224..c6640347 100644 --- a/hello-world/requirejs.html +++ b/hello-world/requirejs.html @@ -1,106 +1,105 @@ + + + + + + + Dynamsoft Barcode Reader Sample - Hello World for RequireJS (Decode via Camera) + + - - - - - - - Dynamsoft Barcode Reader Sample - Hello World for RequireJS (Decode via Camera) - - + +

Hello World for RequireJS (Decode via Camera)

+
+ Results: +
+
+ - - - \ No newline at end of file + // Open camera and start scanning single barcode. + await cameraEnhancer.open(); + await cvRouter.startCapturing("ReadSingleBarcode"); + } catch (ex) { + let errMsg = ex.message || ex; + console.error(errMsg); + alert(errMsg); + } + })(); + } + ); + + +