Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
3d0c02a
1
Parent(s):
144b33b
new ui
Browse files- index.html +19 -12
index.html
CHANGED
|
@@ -207,6 +207,10 @@
|
|
| 207 |
background: #57534e;
|
| 208 |
}
|
| 209 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 210 |
/* Main App Layout */
|
| 211 |
header {
|
| 212 |
text-align: center;
|
|
@@ -334,6 +338,7 @@
|
|
| 334 |
border-radius: 12px;
|
| 335 |
font-size: 0.75rem;
|
| 336 |
font-weight: 500;
|
|
|
|
| 337 |
}
|
| 338 |
|
| 339 |
.status-connected {
|
|
@@ -748,12 +753,6 @@
|
|
| 748 |
<div>
|
| 749 |
<span id="statusPill" class="status-pill status-disconnected">Disconnected</span>
|
| 750 |
<span style="margin-left: 15px;">Frames: <strong id="frameCount">0</strong> / <strong id="maxFrames">474</strong></span>
|
| 751 |
-
<button id="replayBtn" class="btn btn-secondary hidden" onclick="app.replayVideo()" style="margin-left: 15px; padding: 4px 12px; font-size: 0.75rem;">
|
| 752 |
-
Replay
|
| 753 |
-
</button>
|
| 754 |
-
<button id="downloadBtn" class="btn btn-secondary hidden" onclick="app.downloadVideo()" style="margin-left: 10px; padding: 4px 12px; font-size: 0.75rem;">
|
| 755 |
-
Download
|
| 756 |
-
</button>
|
| 757 |
</div>
|
| 758 |
<div>
|
| 759 |
<label style="display: inline; margin: 0;">Playback:</label>
|
|
@@ -762,6 +761,16 @@
|
|
| 762 |
</div>
|
| 763 |
</div>
|
| 764 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 765 |
<div class="progress-bar">
|
| 766 |
<div id="progressFill" class="progress-fill"></div>
|
| 767 |
</div>
|
|
@@ -1416,11 +1425,10 @@
|
|
| 1416 |
this.allFrames = [];
|
| 1417 |
this.updateUI();
|
| 1418 |
|
| 1419 |
-
// Show spinner, hide placeholder
|
| 1420 |
document.getElementById('spinner').classList.remove('hidden');
|
| 1421 |
document.getElementById('placeholder').style.display = 'none';
|
| 1422 |
-
document.getElementById('
|
| 1423 |
-
document.getElementById('downloadBtn').classList.add('hidden');
|
| 1424 |
|
| 1425 |
// Start recording
|
| 1426 |
this.startRecording();
|
|
@@ -1600,9 +1608,8 @@
|
|
| 1600 |
statusPill.className = 'status-pill status-finished';
|
| 1601 |
statusPill.textContent = 'Finished';
|
| 1602 |
|
| 1603 |
-
// Show replay and download
|
| 1604 |
-
document.getElementById('
|
| 1605 |
-
document.getElementById('downloadBtn').classList.remove('hidden');
|
| 1606 |
|
| 1607 |
// Disconnect to clean up (will trigger onclose which resets UI)
|
| 1608 |
setTimeout(() => {
|
|
|
|
| 207 |
background: #57534e;
|
| 208 |
}
|
| 209 |
|
| 210 |
+
#spinner, #placeholder {
|
| 211 |
+
position: absolute;
|
| 212 |
+
}
|
| 213 |
+
|
| 214 |
/* Main App Layout */
|
| 215 |
header {
|
| 216 |
text-align: center;
|
|
|
|
| 338 |
border-radius: 12px;
|
| 339 |
font-size: 0.75rem;
|
| 340 |
font-weight: 500;
|
| 341 |
+
display: none;
|
| 342 |
}
|
| 343 |
|
| 344 |
.status-connected {
|
|
|
|
| 753 |
<div>
|
| 754 |
<span id="statusPill" class="status-pill status-disconnected">Disconnected</span>
|
| 755 |
<span style="margin-left: 15px;">Frames: <strong id="frameCount">0</strong> / <strong id="maxFrames">474</strong></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 756 |
</div>
|
| 757 |
<div>
|
| 758 |
<label style="display: inline; margin: 0;">Playback:</label>
|
|
|
|
| 761 |
</div>
|
| 762 |
</div>
|
| 763 |
|
| 764 |
+
<!-- Video Controls (Replay & Download) -->
|
| 765 |
+
<div id="videoControls" class="hidden" style="display: flex; gap: 10px; margin-top: 10px;">
|
| 766 |
+
<button id="replayBtn" class="btn btn-secondary" onclick="app.replayVideo()" style="flex: 1;">
|
| 767 |
+
Replay
|
| 768 |
+
</button>
|
| 769 |
+
<button id="downloadBtn" class="btn btn-secondary" onclick="app.downloadVideo()" style="flex: 1;">
|
| 770 |
+
Download
|
| 771 |
+
</button>
|
| 772 |
+
</div>
|
| 773 |
+
|
| 774 |
<div class="progress-bar">
|
| 775 |
<div id="progressFill" class="progress-fill"></div>
|
| 776 |
</div>
|
|
|
|
| 1425 |
this.allFrames = [];
|
| 1426 |
this.updateUI();
|
| 1427 |
|
| 1428 |
+
// Show spinner, hide placeholder and video controls
|
| 1429 |
document.getElementById('spinner').classList.remove('hidden');
|
| 1430 |
document.getElementById('placeholder').style.display = 'none';
|
| 1431 |
+
document.getElementById('videoControls').classList.add('hidden');
|
|
|
|
| 1432 |
|
| 1433 |
// Start recording
|
| 1434 |
this.startRecording();
|
|
|
|
| 1608 |
statusPill.className = 'status-pill status-finished';
|
| 1609 |
statusPill.textContent = 'Finished';
|
| 1610 |
|
| 1611 |
+
// Show video controls (replay and download)
|
| 1612 |
+
document.getElementById('videoControls').classList.remove('hidden');
|
|
|
|
| 1613 |
|
| 1614 |
// Disconnect to clean up (will trigger onclose which resets UI)
|
| 1615 |
setTimeout(() => {
|