From 6f0459be85b6d980c4ec61e4d3e19d46f84dc221 Mon Sep 17 00:00:00 2001 From: Myron Blair Date: Sun, 21 Jun 2026 05:17:55 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20kiosk=20auto-starts=20voice=20mode=20an?= =?UTF-8?q?d=20blocks=20sleep=20=E2=80=94=20isolated=20patches=20only?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_html/assets/js/jarvis-app.js | 3 +++ public_html/assets/js/jarvis-overlays.js | 1 + public_html/index.html | 12 ++++++------ 3 files changed, 10 insertions(+), 6 deletions(-) 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"> - - - - - - + + + + + +