Update demo.html to hide the nav bar when showing the transcript overlay and restore it when hiding the overlay.

This commit is contained in:
penghanyuan
2026-01-05 21:57:33 +01:00
parent 182af280d9
commit a233e0f7b9

View File

@@ -1621,8 +1621,9 @@
recordHint.style.display = 'none';
timerDisplay.classList.add('visible');
// Show transcript overlay
// Show transcript overlay and hide nav bar
transcriptOverlay.classList.add('visible');
document.querySelector('.nav-bar').style.display = 'none';
transcriptContent.innerHTML = '';
// Start timer
@@ -1656,8 +1657,9 @@
recordHint.style.display = 'block';
timerDisplay.classList.remove('visible');
// Hide transcript overlay
// Hide transcript overlay and show nav bar
transcriptOverlay.classList.remove('visible');
document.querySelector('.nav-bar').style.display = 'flex';
// Show session summary
document.getElementById('summaryDuration').textContent = formatTime(sessionDuration).replace(':', '分') + '秒';