diff --git a/queue_display.php b/queue_display.php index 4aa503e..1140adf 100644 --- a/queue_display.php +++ b/queue_display.php @@ -211,6 +211,9 @@ try {

Hospital Queue Status / حالة انتظار المستشفى

+ @@ -254,6 +257,18 @@ try { } } + function toggleFullScreen() { + if (!document.fullscreenElement) { + document.documentElement.requestFullscreen().catch(err => { + console.log(`Error attempting to enable full-screen mode: ${err.message} (${err.name})`); + }); + } else { + if (document.exitFullscreen) { + document.exitFullscreen(); + } + } + } + function toggleSound(e) { if (e) e.stopPropagation(); // Prevent body onclick audioEnabled = !audioEnabled;