From 89d29cc12b6cbd97c25388ca6a86c7dd925bd136 Mon Sep 17 00:00:00 2001 From: E Date: Fri, 2 Oct 2026 16:23:29 -0400 Subject: [PATCH] live: header says "a visitor's run" instead of "run ?" (visitor runs have no cycle number); plain-words voice off by default while it's tested (?voice=1 to see it) Co-Authored-By: Claude Opus 5.5 --- site/live.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/site/live.html b/site/live.html index f6dbfdc..da7c147 100644 --- a/site/live.html +++ b/site/live.html @@ -743,7 +743,9 @@ function nameFor(n){ } function headerFor(n){ const nick = nameFor(n); - return "the subject" + (nick ? ` ("${nick}")` : "") + " · run " + (n ?? "?"); + // visitor-triggered runs carry no cycle number (n is null): say so + return "the subject" + (nick ? ` ("${nick}")` : "") + + (n == null ? " · a visitor's run" : " · run " + n); } const API = (new URLSearchParams(location.search)).get("api") || "/chamber"; const cardsEl = document.getElementById("cards"); @@ -910,8 +912,10 @@ function clearVoice(outEl){ const v = outEl && outEl.nextElementSibling; if (v && v.classList.contains("voice")) v.remove(); } +// under test: off unless the page is opened with ?voice=1 +const VOICE_ON = new URLSearchParams(location.search).get("voice") === "1"; function showVoice(outEl, text){ - if (!outEl || !text || text.trim().length < 30) return; + if (!VOICE_ON || !outEl || !text || text.trim().length < 30) return; const esc = t => String(t ?? "").replace(/[&<>"]/g, c => ({"&":"&","<":"<",">":">",'"':"""}[c])); let v = outEl.nextElementSibling;