diff --git a/public_html/assets/js/jarvis-app.js b/public_html/assets/js/jarvis-app.js index 0712341..fcdec9d 100644 --- a/public_html/assets/js/jarvis-app.js +++ b/public_html/assets/js/jarvis-app.js @@ -1784,9 +1784,10 @@ async function toggleKiosk() { try { _wakeLock = await navigator.wakeLock.request("screen"); } catch(e) {} } document.body.classList.add("kiosk-mode"); + // Kiosk: silently activate mic + voice mode (no TTS greeting) if (typeof wakeFromSleep === "function" && isAsleep) wakeFromSleep(); - if (typeof enterVoiceMode === "function" && !voiceMode) enterVoiceMode(); - if (!isListening) { isListening = true; updateMicBtn(); try { recognition && recognition.start(); } catch(_) {} } + voiceMode = true; voiceMuted = false; voiceLastCmd = Date.now(); updateMicBtn(); + if (typeof startListening === "function" && !isListening) startListening(); 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/index.html b/public_html/index.html index 0950305..3771494 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"> - - - - - - + + + + + +