Skip to content

Commit

Permalink
fix(ui): updated workerLocation property in the UI demo
Browse files Browse the repository at this point in the history
  • Loading branch information
vjekoart committed Jul 8, 2022
1 parent c18d0e0 commit bdf1239
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions ui/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,15 @@
if (window.location.hostname === 'blinkid.github.io') {
window.licenseKey = "sRwAAAYRYmxpbmtpZC5naXRodWIuaW+qBF9heYYlTvZbvpaBIIDkJA/XQU6HolX+MNqSLG1m/fFMC1qqUZmBFli7qQfYreJbTgbHVh6giiJyVG43gHYPLatYM8ObP/ebmC3OYDUMf8bT/jFWQ6bNQ5bmJN3CdrdoZd/pJebqI+ZJDMDSL4Hs9KKOSseAkLQmpuxG6yQUhYaxLJvE02xXx0gr/tNFnH0bp2iaEHNlYhHlwFP7XVfZSKY3TFzu";
}
window.engineLocation = "https://blinkid-imagecapture.github.io/blinkid-imagecapture-in-browser/resources";
window.engineLocation = "https://blinkid.github.io/blinkid-imagecapture-in-browser/resources";
window.workerLocation = "https://blinkid.github.io/blinkid-imagecapture-in-browser/resources/BlinkIDImageCaptureWasmSDK.worker.min.js";
</script>
</head>
<body>
<header>
<h1>BlinkID ImageCapture UI: examples</h1>
<p>The goal of this page is to display minimal example and features of BlinkID ImageCapture UI component.</p>
<p><em><strong>Important:</strong> to use BlinkID ImageCapture UI component it&apos;s required to have a valid license key. It&apos;s possible to obtain a free trial license key by registering to <a href="https://microblink.com/login" target="_blank">Microblink dashboard.</a></em></p>
<p><em><strong>Important:</strong> to use BlinkID ImageCapture UI component it&apos;s required to have a valid license key. It&apos;s possible to request a free trial license key, after you register, at <a href="https://account.microblink.com/signin" target="_blank">Microblink Developer Hub</a>.</em></p>
</header>

<section id="example-minimal">
Expand All @@ -174,6 +175,7 @@ <h2>Minimal example</h2>
const el = document.querySelector('#example-minimal blinkid-imagecapture-in-browser');

el.engineLocation = window.engineLocation;
el.workerLocation = window.workerLocation;
el.licenseKey = window.licenseKey;
el.recognizers = ['BlinkIdImageCaptureRecognizer'];

Expand Down Expand Up @@ -258,6 +260,7 @@ <h2>Scan both sides</h2>
const el = document.querySelector('#example-combined blinkid-imagecapture-in-browser');

el.engineLocation = window.engineLocation;
el.workerLocation = window.workerLocation;
el.licenseKey = window.licenseKey;

el.recognizers = ['BlinkIdImageCaptureRecognizer'];
Expand Down Expand Up @@ -374,6 +377,7 @@ <h2>Custom messages</h2>
const el = document.querySelector('#example-localization blinkid-imagecapture-in-browser');

el.engineLocation = window.engineLocation;
el.workerLocation = window.workerLocation;
el.licenseKey = window.licenseKey;
el.recognizers = ['BlinkIdImageCaptureRecognizer'];
window.setTimeout(() => {
Expand Down Expand Up @@ -471,6 +475,7 @@ <h2>RTL support</h2>
const el = document.querySelector('#example-localization-rtl blinkid-imagecapture-in-browser');

el.engineLocation = window.engineLocation;
el.workerLocation = window.workerLocation;
el.licenseKey = window.licenseKey;
el.recognizers = ['BlinkIdImageCaptureRecognizer'];

Expand Down Expand Up @@ -615,6 +620,7 @@ <h3>CSS variables</h3>
const el = document.querySelector('#example-customization blinkid-imagecapture-in-browser');

el.engineLocation = window.engineLocation;
el.workerLocation = window.workerLocation;
el.licenseKey = window.licenseKey;
el.recognizers = ['BlinkIdImageCaptureRecognizer'];

Expand Down Expand Up @@ -761,4 +767,4 @@ <h3>CSS variables</h3>
</script>

</body>
</html>
</html>

0 comments on commit bdf1239

Please sign in to comment.