Autosave: 20260322-150724

This commit is contained in:
Flatlogic Bot 2026-03-22 15:07:24 +00:00
parent 04bd70e7d8
commit a03fa77672

View File

@ -169,9 +169,6 @@ try {
<div class="header"> <div class="header">
<h1 class="m-0"><i class="bi bi-hospital"></i> Hospital Queue Status / حالة انتظار المستشفى</h1> <h1 class="m-0"><i class="bi bi-hospital"></i> Hospital Queue Status / حالة انتظار المستشفى</h1>
<div class="clock" id="clock">00:00:00</div> <div class="clock" id="clock">00:00:00</div>
<button id="audioBtn" class="btn btn-warning position-absolute top-0 start-0 m-3" style="z-index: 1001;" onclick="enableAudio()">
<i class="bi bi-volume-mute-fill"></i> Enable Sound
</button>
</div> </div>
<div class="container-fluid p-4"> <div class="container-fluid p-4">
@ -188,17 +185,9 @@ try {
</div> </div>
<script> <script>
let audioEnabled = false; let audioEnabled = true;
const announcedIds = new Set(); const announcedIds = new Set();
let isFirstRun = true; let isFirstRun = true;
function enableAudio() {
audioEnabled = true;
document.getElementById('audioBtn').style.display = 'none';
// Play a silent utterance to unlock audio context on mobile
const u = new SpeechSynthesisUtterance('');
window.speechSynthesis.speak(u);
}
function updateClock() { function updateClock() {
const now = new Date(); const now = new Date();