Spaces:
Runtime error
Runtime error
HuggingFace-SK
commited on
Commit
·
b39a45e
1
Parent(s):
09a166a
update style
Browse files- static/browser_detect.css +14 -1
- templates/browser-detect.html +5 -3
static/browser_detect.css
CHANGED
|
@@ -69,7 +69,7 @@ body {
|
|
| 69 |
.canvas_wrapper{
|
| 70 |
position: relative;
|
| 71 |
text-align: left;
|
| 72 |
-
height:
|
| 73 |
background-color: #F3F3F3;
|
| 74 |
box-shadow: 0px 4px 20px 4px rgba(0, 0, 0, 0.38);
|
| 75 |
margin:10px;
|
|
@@ -93,4 +93,17 @@ overflow: hidden;
|
|
| 93 |
font-size: large;
|
| 94 |
border: none;
|
| 95 |
color:#d3d3d3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
}
|
|
|
|
| 69 |
.canvas_wrapper{
|
| 70 |
position: relative;
|
| 71 |
text-align: left;
|
| 72 |
+
height:300px;
|
| 73 |
background-color: #F3F3F3;
|
| 74 |
box-shadow: 0px 4px 20px 4px rgba(0, 0, 0, 0.38);
|
| 75 |
margin:10px;
|
|
|
|
| 93 |
font-size: large;
|
| 94 |
border: none;
|
| 95 |
color:#d3d3d3
|
| 96 |
+
}
|
| 97 |
+
#webcamButton{
|
| 98 |
+
margin: 0;
|
| 99 |
+
position: absolute;
|
| 100 |
+
top: 50%;
|
| 101 |
+
left: 50%;
|
| 102 |
+
-ms-transform: translate(-50%, -50%);
|
| 103 |
+
transform: translate(-50%, -50%);
|
| 104 |
+
padding:10px;
|
| 105 |
+
border:none;
|
| 106 |
+
border-radius: 12.25px;
|
| 107 |
+
background-color: #f2f2f2;
|
| 108 |
+
box-shadow: 0px 4px 20px 4px rgba(0, 0, 0, 0.38);
|
| 109 |
}
|
templates/browser-detect.html
CHANGED
|
@@ -30,13 +30,15 @@
|
|
| 30 |
<video id="webcam" style="display:none" autoplay="" playsinline=""></video>
|
| 31 |
<div class="canvas_wrapper">
|
| 32 |
<canvas class="output_canvas" id="output_canvas" width="100%" height="300%"></canvas>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
</div>
|
| 34 |
</div>
|
| 35 |
<center>
|
| 36 |
<img id="output_image" style="display:none"></img>
|
| 37 |
-
<button id="webcamButton">
|
| 38 |
-
<span>ENABLE WEBCAM</span>
|
| 39 |
-
</button>
|
| 40 |
<div class="wrapper_result">
|
| 41 |
<div id="predicted_result">></div>
|
| 42 |
</div>
|
|
|
|
| 30 |
<video id="webcam" style="display:none" autoplay="" playsinline=""></video>
|
| 31 |
<div class="canvas_wrapper">
|
| 32 |
<canvas class="output_canvas" id="output_canvas" width="100%" height="300%"></canvas>
|
| 33 |
+
<center>
|
| 34 |
+
<button id="webcamButton">
|
| 35 |
+
<span>ENABLE WEBCAM</span>
|
| 36 |
+
</button>
|
| 37 |
+
</center>
|
| 38 |
</div>
|
| 39 |
</div>
|
| 40 |
<center>
|
| 41 |
<img id="output_image" style="display:none"></img>
|
|
|
|
|
|
|
|
|
|
| 42 |
<div class="wrapper_result">
|
| 43 |
<div id="predicted_result">></div>
|
| 44 |
</div>
|