Sync from GitHub via hub-sync
Browse files- port_hf.js +4 -0
- style.css +7 -2
port_hf.js
CHANGED
|
@@ -534,6 +534,8 @@ async function setupRobot() {
|
|
| 534 |
robot.addEventListener('streaming', async () => {
|
| 535 |
isStreaming = true;
|
| 536 |
showRVState('rv-monitoring');
|
|
|
|
|
|
|
| 537 |
populatePersonalities();
|
| 538 |
startStreakTimer();
|
| 539 |
if (!rvModel) await initModel();
|
|
@@ -543,6 +545,8 @@ async function setupRobot() {
|
|
| 543 |
isStreaming = false;
|
| 544 |
stopMonitoring();
|
| 545 |
if (detachVideo) { detachVideo(); detachVideo = null; }
|
|
|
|
|
|
|
| 546 |
showRVState('rv-picker');
|
| 547 |
});
|
| 548 |
|
|
|
|
| 534 |
robot.addEventListener('streaming', async () => {
|
| 535 |
isStreaming = true;
|
| 536 |
showRVState('rv-monitoring');
|
| 537 |
+
const placeholder = document.getElementById('rv-video-placeholder');
|
| 538 |
+
if (placeholder) placeholder.style.display = 'none';
|
| 539 |
populatePersonalities();
|
| 540 |
startStreakTimer();
|
| 541 |
if (!rvModel) await initModel();
|
|
|
|
| 545 |
isStreaming = false;
|
| 546 |
stopMonitoring();
|
| 547 |
if (detachVideo) { detachVideo(); detachVideo = null; }
|
| 548 |
+
const placeholder = document.getElementById('rv-video-placeholder');
|
| 549 |
+
if (placeholder) placeholder.style.display = '';
|
| 550 |
showRVState('rv-picker');
|
| 551 |
});
|
| 552 |
|
style.css
CHANGED
|
@@ -1177,7 +1177,7 @@ section {
|
|
| 1177 |
aspect-ratio: 4/3;
|
| 1178 |
}
|
| 1179 |
|
| 1180 |
-
#webcam, #canvas {
|
| 1181 |
position: absolute;
|
| 1182 |
top: 0;
|
| 1183 |
left: 0;
|
|
@@ -1186,6 +1186,11 @@ section {
|
|
| 1186 |
object-fit: cover;
|
| 1187 |
}
|
| 1188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1189 |
#canvas {
|
| 1190 |
z-index: 2;
|
| 1191 |
background: transparent; /* Don't block background color */
|
|
@@ -2415,7 +2420,7 @@ h4, h5, h6, strong {
|
|
| 2415 |
|
| 2416 |
@media (min-width: 901px) {
|
| 2417 |
.rv-personality-toggle { display: none; }
|
| 2418 |
-
.rv-personality-collapsible { display:
|
| 2419 |
}
|
| 2420 |
|
| 2421 |
.rv-panel-title { font-size: 1.1rem; font-weight: 700; }
|
|
|
|
| 1177 |
aspect-ratio: 4/3;
|
| 1178 |
}
|
| 1179 |
|
| 1180 |
+
#webcam, #canvas, #rv-video, #rv-canvas {
|
| 1181 |
position: absolute;
|
| 1182 |
top: 0;
|
| 1183 |
left: 0;
|
|
|
|
| 1186 |
object-fit: cover;
|
| 1187 |
}
|
| 1188 |
|
| 1189 |
+
#rv-canvas {
|
| 1190 |
+
z-index: 2;
|
| 1191 |
+
background: transparent;
|
| 1192 |
+
}
|
| 1193 |
+
|
| 1194 |
#canvas {
|
| 1195 |
z-index: 2;
|
| 1196 |
background: transparent; /* Don't block background color */
|
|
|
|
| 2420 |
|
| 2421 |
@media (min-width: 901px) {
|
| 2422 |
.rv-personality-toggle { display: none; }
|
| 2423 |
+
.rv-personality-collapsible { display: flex; flex-direction: column; gap: 0.5rem; }
|
| 2424 |
}
|
| 2425 |
|
| 2426 |
.rv-panel-title { font-size: 1.1rem; font-weight: 700; }
|