Skip to content

Commit 3ee2cac

Browse files
committed
2 parents 77ec044 + d016323 commit 3ee2cac

5 files changed

Lines changed: 664 additions & 433 deletions

2.ui-tweaking/1.read-video-show-result.html

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,15 @@
44
<head>
55
<meta charset="utf-8">
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7-
<meta name="description"
8-
content="Read barcode from a video input. This sample demonstrates the default built-in UI.">
7+
<meta name="description" content="Read barcode from a video input. This sample demonstrates the default built-in UI.">
98
<meta name="keywords" content="read barcode from video, built-in ui">
109
<title>Dynamsoft Barcode Reader Sample - Video Decoding with Default UI</title>
1110
</head>
1211

1312
<body>
14-
<h1 style="font-size: 1.5em;">Use the Default Built-in UI</h1>
15-
<div id="UIElement">
16-
<button id="showScanner">Show The Scanner</button>
13+
<h1>Use the Default Built-in UI</h1>
14+
<div id="UIElement" class="UIElement">
15+
<button id="showScanner" class="showScanner">Show The Scanner</button>
1716
</div>
1817
<script src="https://cdn.jsdelivr.net/npm/keillion-dynamsoft-javascript-barcode@0.20220318174621.0/dist/dbr.js"></script>
1918
<script>
@@ -61,12 +60,6 @@ <h1 style="font-size: 1.5em;">Use the Default Built-in UI</h1>
6160
padding: 0;
6261
}
6362

64-
button#showScanner {
65-
position: absolute;
66-
width: 50%;
67-
left: 25%;
68-
}
69-
7063
body {
7164
display: flex;
7265
flex-direction: column;
@@ -78,17 +71,27 @@ <h1 style="font-size: 1.5em;">Use the Default Built-in UI</h1>
7871
color: #455A64;
7972
}
8073

74+
h1 {
75+
font-size: 1.5em;
76+
}
77+
8178
button {
82-
font-size: 1.5rem;
8379
margin-bottom: 2vh;
80+
font-size: 1.5rem;
8481
}
8582

86-
#UIElement {
83+
.UIElement {
84+
height: 60vh;
85+
width: 80vw;
8786
margin: 2vmin auto;
8887
text-align: center;
8988
font-size: medium;
90-
height: 60vh;
91-
width: 60vw;
89+
}
90+
91+
.showScanner {
92+
position: absolute;
93+
width: 50%;
94+
left: 25%;
9295
}
9396
</style>
9497

0 commit comments

Comments
 (0)