You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2.ui-tweaking/1.read-video-show-result.html
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,14 @@
11
11
</head>
12
12
13
13
<body>
14
+
<script>
15
+
if(location.protocol==="file:"){
16
+
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
17
+
console.warn(message);
18
+
alert(message);
19
+
}
20
+
</script>
21
+
14
22
<h1style="font-size: 1.5em;">Use the Default Built-in UI</h1>
15
23
<inputtype="text" id="result" title="Double click to clear!" readonly="true" class="latest-result" placeholder="The Last Read Barcode">
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
28
-
console.warn(message);
29
-
alert(message);
30
-
}
31
-
</script>
32
33
<script>
33
34
/** LICENSE ALERT - README
34
35
* To use the library, you need to first specify a license key using the API "license" as shown below.
Copy file name to clipboardExpand all lines: 2.ui-tweaking/2.read-video-no-extra-control.html
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,14 @@
11
11
</head>
12
12
13
13
<body>
14
+
<script>
15
+
if(location.protocol==="file:"){
16
+
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
26
-
console.warn(message);
27
-
alert(message);
28
-
}
29
-
</script>
30
31
<script>
31
32
/** LICENSE ALERT - README
32
33
* To use the library, you need to first specify a license key using the API "license" as shown below.
Copy file name to clipboardExpand all lines: 2.ui-tweaking/3.read-video-with-external-control.html
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,14 @@
11
11
</head>
12
12
13
13
<body>
14
+
<script>
15
+
if(location.protocol==="file:"){
16
+
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
76
-
console.warn(message);
77
-
alert(message);
78
-
}
79
-
</script>
80
81
<script>
81
82
/** LICENSE ALERT - README
82
83
* To use the library, you need to first specify a license key using the API "license" as shown below.
Copy file name to clipboardExpand all lines: 2.ui-tweaking/4.difference-video-size.html
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,14 @@
10
10
</head>
11
11
12
12
<body>
13
+
<script>
14
+
if(location.protocol==="file:"){
15
+
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
16
+
console.warn(message);
17
+
alert(message);
18
+
}
19
+
</script>
20
+
13
21
<h1style="font-size: 1.5em;">Enlarge the Video Stream</h1>
14
22
<br/>
15
23
<buttonid="backToNormal" hidden>Exit Full Screen</button>
@@ -25,13 +33,6 @@ <h1 style="font-size: 1.5em;">Enlarge the Video Stream</h1>
25
33
<br/>
26
34
<inputtype="text" id="result" readonly="true" class="latest-result" placeholder="The Last Read Barcode">
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
31
-
console.warn(message);
32
-
alert(message);
33
-
}
34
-
</script>
35
36
<script>
36
37
/** LICENSE ALERT - README
37
38
* To use the library, you need to first specify a license key using the API "license" as shown below.
Copy file name to clipboardExpand all lines: 2.ui-tweaking/5.read-video-with-custom-default-ui.html
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,14 @@
10
10
</head>
11
11
12
12
<body>
13
+
<script>
14
+
if(location.protocol==="file:"){
15
+
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
16
+
console.warn(message);
17
+
alert(message);
18
+
}
19
+
</script>
20
+
13
21
<h1>Customized Default UI</h1>
14
22
<divclass="controler">
15
23
<divclass="selector">
@@ -50,13 +58,6 @@ <h1>Customized Default UI</h1>
50
58
<br/>
51
59
<inputtype="text" id="result" title="Double click to clear!" readonly="true" class="latest-result" placeholder="The Last Read Barcode">
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
56
-
console.warn(message);
57
-
alert(message);
58
-
}
59
-
</script>
60
61
<script>
61
62
/** LICENSE ALERT - README
62
63
* To use the library, you need to first specify a license key using the API "license" as shown below.
Copy file name to clipboardExpand all lines: 4.use-case/2.read-a-drivers-license.html
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,14 @@
11
11
</head>
12
12
13
13
<body>
14
+
<script>
15
+
if(location.protocol==="file:"){
16
+
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
17
+
console.warn(message);
18
+
alert(message);
19
+
}
20
+
</script>
21
+
14
22
<spanid="hintMSG" class="hintMSG">Aim at the barcode on the driver's license.</span>
15
23
<h1id='header'>Read A Driver's License <ahref="javascript:void(0)" id='readAgain' hiddenonclick="backToHome()">Retry</a></h1>
constmessage=`The page is opened via file:// and "BarcodeScanner" may not work properly. Please open the page via https:// or host it on "http://localhost/".`;
44
-
console.warn(message);
45
-
alert(message);
46
-
}
47
-
</script>
48
49
<script>
49
50
/** LICENSE ALERT - README
50
51
* To use the library, you need to first specify a license key using the API "license" as shown below.
0 commit comments