Skip to content
This repository was archived by the owner on Dec 16, 2024. It is now read-only.

Commit 63363bb

Browse files
committed
added info-block to the scale page
1 parent 8fcad5b commit 63363bb

File tree

3 files changed

+60
-2
lines changed

3 files changed

+60
-2
lines changed

content-provider/frontend/html/css/scale.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,49 @@
168168
}
169169
}
170170

171+
#scale [info-block] {
172+
position: absolute;
173+
left: calc(50vw - 172px);
174+
bottom: 0px;
175+
width: 350px;
176+
height: 300px;
177+
color: white;
178+
font-size: 25px;
179+
opacity: 0;
180+
animation-name: info-block-animation;
181+
animation-fill-mode: forwards;
182+
animation-duration: 16s;
183+
}
184+
185+
#scale [info-block] tr:first-child td {
186+
text-align: center;
187+
}
188+
189+
#scale [info-block] tr:last-child td {
190+
text-align: center;
191+
}
192+
193+
#scale [info-block] tr:last-child td a:link {
194+
color: white;
195+
}
196+
197+
#scale [info-block] tr:last-child td a:visited {
198+
color: white;
199+
}
200+
201+
#scale [info-block] [line-break] {
202+
line-height: 0.7;
203+
}
204+
205+
@keyframes info-block-animation {
206+
0% {
207+
opacity: 0;
208+
}
209+
99% {
210+
opacity: 0;
211+
}
212+
100% {
213+
opacity: 1;
214+
}
215+
}
216+

content-provider/frontend/html/js/scale.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ function mklayout() {
1919

2020
var ncolumns=spec("ncols")?Math.floor((parseInt(spec("ncols"),10)+1)/2)*2:2;
2121
var nrows=spec("nrows")?parseInt(spec("nrows"),10):3;
22+
$("#scale [info-block] [channel]").text(nrows*ncolumns);
2223

2324
var header_height=144;
2425
var margin=5;

content-provider/frontend/html/scale.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,24 @@
3939
<img src="image/home-url.png" />
4040
</div>
4141

42+
<div info-block>
43+
<table><tbody>
44+
<tr><td colspan="2">AI-Based AD-Insertion</td></tr>
45+
<tr line-break><td colspan="2">&nbsp;</td></tr>
46+
<tr><td>Mode:</td><td mode>Object Detection</td></tr>
47+
<tr><td>Model:</td><td model>MobileNet SSD</td></tr>
48+
<tr><td>Precision:</td><td model>FP16</td></tr>
49+
<tr><td>Channel:</td><td channel>24</td></tr>
50+
<tr line-break><td colspan="2">&nbsp;</td></tr>
51+
<tr><td colspan="2"><a href="https://github.com/OpenVisualCloud/Dockerfiles">OpenVisualCloud Software Stack</a></td></tr>
52+
</tbody></table>
53+
</div>
54+
4255
</div>
4356

4457
<div id="template">
4558
<div signal>
4659
</div>
47-
48-
4960
</div>
5061

5162
</body>

0 commit comments

Comments
 (0)