diff --git a/public_html/assets/js/jarvis-app.js b/public_html/assets/js/jarvis-app.js index f93afaa..0712341 100644 --- a/public_html/assets/js/jarvis-app.js +++ b/public_html/assets/js/jarvis-app.js @@ -1784,6 +1784,9 @@ async function toggleKiosk() { try { _wakeLock = await navigator.wakeLock.request("screen"); } catch(e) {} } document.body.classList.add("kiosk-mode"); + if (typeof wakeFromSleep === "function" && isAsleep) wakeFromSleep(); + if (typeof enterVoiceMode === "function" && !voiceMode) enterVoiceMode(); + if (!isListening) { isListening = true; updateMicBtn(); try { recognition && recognition.start(); } catch(_) {} } if (btn) { btn.textContent = "⧞ EXIT"; btn.style.color = "var(--cyan)"; } } else { const ex = document.exitFullscreen || document.webkitExitFullscreen || document.mozCancelFullScreen || document.msExitFullscreen; diff --git a/public_html/assets/js/jarvis-overlays.js b/public_html/assets/js/jarvis-overlays.js index 18df4b7..70f0e0d 100644 --- a/public_html/assets/js/jarvis-overlays.js +++ b/public_html/assets/js/jarvis-overlays.js @@ -5,6 +5,7 @@ var _sleepRefreshTimer = null; var SLEEP_CMDS = /\b(good\s*night(\s*jarvis)?|go\s*to\s*sleep|sleep\s*mode|shut\s*(down|off)\s*(jarvis|for\s*the\s*night)|go\s*offline|going\s*offline|jarvis\s*(go\s*)?(offline|sleep|shutdown)|stand\s*by\s*mode|power\s*down(\s*jarvis)?|signing\s*off)\b/i; function enterSleepMode() { + if (document.body.classList.contains("kiosk-mode")) return; if (isAsleep) return; isAsleep = true; diff --git a/public_html/index.html b/public_html/index.html index 82c86f0..0950305 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -426,12 +426,12 @@ style="position:fixed;top:-9999px;left:-9999px;width:320px;height:240px"> - - - - - - + + + + + +