Zwischenraum: eigene Vorsilbe bz- statt zr- – die Ziele-Vorschau war verschoben
Der Backstage-Zwischenraum (b44ae093) nutzte die Vorsilbe zr- – dieselbe
wie das Ziele-Formular der Regie (#zr-vorschau, zr-titel). Seine Regeln
(u. a. .zr-vorschau mit Spiegelung) verschoben die Ziele-Vorschau um 15 px;
gefunden von mess-serverziele, am Stand vor meinen Runden gegengemessen.
- 256 Stellen in zwischenraum.js/.css und ihren Prüfungen auf bz- umbenannt;
das Ziele-Formular selbst unverändert.
- Neue Wache in pruef-reaktion (Abschnitt 35): keine Element-Kennung darf
aus zwei Dateien der Saal-Seite kommen – abgeleitet aus reaktion.html und
seinen 46 Skripten; die echte Kollision von heute wird erkannt.
- pruef-reaktion 1104/0, mess-serverziele, zwischenraum-blick, mess-reaktion grün.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
(grün gut, bernstein knapp, gedämpftes Rot schwach, grau aus/offen),
|
||||
keine Signalflächen, nichts blinkt. Bewegt wird nichts.
|
||||
===================================================================== */
|
||||
.zr[hidden], .zr-regie[hidden], .zr-ohne[hidden], .zr-vorschau[hidden],
|
||||
.zr-draht__liste[hidden], .zr-sagt:empty, .zr-wie:empty, .zr-warte__alt:empty, .zr-warte__zuletzt:empty { display: none !important; }
|
||||
.bz[hidden], .bz-regie[hidden], .bz-ohne[hidden], .bz-vorschau[hidden],
|
||||
.bz-draht__liste[hidden], .bz-sagt:empty, .bz-wie:empty, .bz-warte__alt:empty, .bz-warte__zuletzt:empty { display: none !important; }
|
||||
|
||||
/* Die Chatspalte ist ein Raster (Kopf, Liste 1fr, Antwort, Feld). Steht
|
||||
der Zwischenraum darin, bekommt er eine eigene Reihe – sonst bekäme ER
|
||||
@@ -16,7 +16,7 @@
|
||||
und rollt in sich – der Chat behält mindestens 120 px. Gemessen vorher
|
||||
auf 390 × 844: 16 px Chat. */
|
||||
|
||||
.zr {
|
||||
.bz {
|
||||
display: grid; gap: 10px;
|
||||
padding: 12px 14px;
|
||||
border-bottom: 1px solid var(--rand);
|
||||
@@ -26,23 +26,23 @@
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
.zr-titel { margin: 0; font-size: .95rem; font-weight: 700; color: var(--schrift); }
|
||||
.zr-satz { margin: -4px 0 0; font-size: .8rem; line-height: 1.4; color: var(--schrift-leise); }
|
||||
.bz-titel { margin: 0; font-size: .95rem; font-weight: 700; color: var(--schrift); }
|
||||
.bz-satz { margin: -4px 0 0; font-size: .8rem; line-height: 1.4; color: var(--schrift-leise); }
|
||||
|
||||
.zr-oben { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 12px; align-items: start; }
|
||||
.zr-rahmen {
|
||||
.bz-oben { display: grid; grid-template-columns: minmax(0, 132px) minmax(0, 1fr); gap: 12px; align-items: start; }
|
||||
.bz-rahmen {
|
||||
aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
|
||||
background: #0d0b18; border: 1px solid var(--rand);
|
||||
display: grid; place-items: center;
|
||||
}
|
||||
/* Gespiegelt wie ein Spiegel – so erkennt man sich; hinaus geht das Bild
|
||||
ungespiegelt (das macht reaktion.js wie bisher). */
|
||||
.zr-vorschau { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
|
||||
.zr-ohne { margin: 0; padding: 6px; font-size: .72rem; line-height: 1.3; text-align: center; color: var(--schrift-leise); }
|
||||
.zr-rahmen { position: relative; }
|
||||
.zr-rahmen > .zr-vorschau, .zr-rahmen > .zr-ohne { grid-area: 1 / 1; }
|
||||
.bz-vorschau { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
|
||||
.bz-ohne { margin: 0; padding: 6px; font-size: .72rem; line-height: 1.3; text-align: center; color: var(--schrift-leise); }
|
||||
.bz-rahmen { position: relative; }
|
||||
.bz-rahmen > .bz-vorschau, .bz-rahmen > .bz-ohne { grid-area: 1 / 1; }
|
||||
/* Das Oval zum Ausrichten: eine feine Linie, die nichts verdeckt. */
|
||||
.zr-oval {
|
||||
.bz-oval {
|
||||
position: absolute; left: 50%; top: 50%;
|
||||
width: 38%; height: 78%;
|
||||
transform: translate(-50%, -52%);
|
||||
@@ -50,9 +50,9 @@
|
||||
border-radius: 50%;
|
||||
pointer-events: none;
|
||||
}
|
||||
.zr-rahmen:has(.zr-vorschau[hidden]) .zr-oval { display: none; }
|
||||
.bz-rahmen:has(.bz-vorschau[hidden]) .bz-oval { display: none; }
|
||||
/* Der Hinweis im Bild: unten, gedeckt, gut lesbar auf hellem wie dunklem Bild. */
|
||||
.zr-bildhinweis {
|
||||
.bz-bildhinweis {
|
||||
position: absolute; left: 4px; right: 4px; bottom: 4px;
|
||||
margin: 0; padding: 2px 6px;
|
||||
border-radius: 6px;
|
||||
@@ -60,62 +60,62 @@
|
||||
color: #f1dca0;
|
||||
font-size: .72rem; font-weight: 700; line-height: 1.3; text-align: center;
|
||||
}
|
||||
.zr-bildhinweis[hidden] { display: none !important; }
|
||||
.bz-bildhinweis[hidden] { display: none !important; }
|
||||
|
||||
.zr-schritte, .zr-werte, .zr-warten, .zr-draht__liste { list-style: none; margin: 0; padding: 0; }
|
||||
.zr-schritte { display: grid; gap: 5px; }
|
||||
.zr-schritt, .zr-wert { display: flex; align-items: baseline; gap: 8px; font-size: .8rem; line-height: 1.35; color: var(--schrift); }
|
||||
.zr-punkt { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #6d6a80; align-self: center; }
|
||||
[data-stufe="gut"] > .zr-punkt { background: #6fcf97; }
|
||||
[data-stufe="knapp"] > .zr-punkt { background: #e6c35c; }
|
||||
[data-stufe="schwach"] > .zr-punkt { background: #d98a8a; }
|
||||
[data-stufe="aus"] > .zr-schritt__text, [data-stufe="offen"] > .zr-schritt__text,
|
||||
[data-stufe="aus"] > .zr-wert__text, [data-stufe="offen"] > .zr-wert__text { color: var(--schrift-leise); }
|
||||
.bz-schritte, .bz-werte, .bz-warten, .bz-draht__liste { list-style: none; margin: 0; padding: 0; }
|
||||
.bz-schritte { display: grid; gap: 5px; }
|
||||
.bz-schritt, .bz-wert { display: flex; align-items: baseline; gap: 8px; font-size: .8rem; line-height: 1.35; color: var(--schrift); }
|
||||
.bz-punkt { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #6d6a80; align-self: center; }
|
||||
[data-stufe="gut"] > .bz-punkt { background: #6fcf97; }
|
||||
[data-stufe="knapp"] > .bz-punkt { background: #e6c35c; }
|
||||
[data-stufe="schwach"] > .bz-punkt { background: #d98a8a; }
|
||||
[data-stufe="aus"] > .bz-schritt__text, [data-stufe="offen"] > .bz-schritt__text,
|
||||
[data-stufe="aus"] > .bz-wert__text, [data-stufe="offen"] > .bz-wert__text { color: var(--schrift-leise); }
|
||||
|
||||
.zr-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
||||
.zr-wie, .zr-sagt { margin: 0; font-size: .78rem; line-height: 1.4; color: var(--schrift-leise); }
|
||||
.bz-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
||||
.bz-wie, .bz-sagt { margin: 0; font-size: .78rem; line-height: 1.4; color: var(--schrift-leise); }
|
||||
|
||||
.zr-draht { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--rand); }
|
||||
.zr-draht__titel { margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--schrift-leise); }
|
||||
.zr-draht__liste { display: grid; gap: 3px; max-height: 7.5em; overflow-y: auto; }
|
||||
.zr-draht__zeile { font-size: .8rem; line-height: 1.35; color: var(--schrift); overflow-wrap: anywhere; }
|
||||
.zr-draht__zeile strong { color: #8fd3ff; font-weight: 700; }
|
||||
.zr-draht__zeile[data-von="gast"] strong { color: #c9b8ff; }
|
||||
.zr-draht__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
|
||||
.zr-draht__feld {
|
||||
.bz-draht { display: grid; gap: 6px; padding-top: 8px; border-top: 1px solid var(--rand); }
|
||||
.bz-draht__titel { margin: 0; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--schrift-leise); }
|
||||
.bz-draht__liste { display: grid; gap: 3px; max-height: 7.5em; overflow-y: auto; }
|
||||
.bz-draht__zeile { font-size: .8rem; line-height: 1.35; color: var(--schrift); overflow-wrap: anywhere; }
|
||||
.bz-draht__zeile strong { color: #8fd3ff; font-weight: 700; }
|
||||
.bz-draht__zeile[data-von="gast"] strong { color: #c9b8ff; }
|
||||
.bz-draht__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
|
||||
.bz-draht__feld {
|
||||
min-height: 40px; min-width: 0; padding: 6px 10px;
|
||||
border-radius: 10px; border: 1px solid var(--rand-hell);
|
||||
background: rgba(255, 255, 255, .03); color: var(--schrift);
|
||||
font: inherit; font-size: .84rem;
|
||||
}
|
||||
.zr-draht__feld:focus-visible { outline: 2px solid #9ab7ff; outline-offset: 1px; }
|
||||
.bz-draht__feld:focus-visible { outline: 2px solid #9ab7ff; outline-offset: 1px; }
|
||||
|
||||
/* ---- Regie: im Cockpit ------------------------------------------- */
|
||||
.zr-regie { flex: 1 1 100%; display: grid; gap: 6px; }
|
||||
.zr-warten { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
|
||||
.zr-warte {
|
||||
.bz-regie { flex: 1 1 100%; display: grid; gap: 6px; }
|
||||
.bz-warten { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
|
||||
.bz-warte {
|
||||
display: grid; gap: 4px; padding: 6px 10px;
|
||||
border-radius: 12px; border: 1px solid var(--rand);
|
||||
background: rgba(255, 255, 255, .025);
|
||||
}
|
||||
.zr-warte[data-bereit="ja"] { border-color: rgba(111, 207, 151, .4); }
|
||||
.zr-warte__kopf { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
|
||||
.zr-punkte { display: inline-flex; gap: 4px; }
|
||||
.zr-punkte .zr-punkt[data-stufe="gut"] { background: #6fcf97; }
|
||||
.zr-punkte .zr-punkt[data-stufe="knapp"] { background: #e6c35c; }
|
||||
.zr-punkte .zr-punkt[data-stufe="schwach"] { background: #d98a8a; }
|
||||
.zr-warte__zuletzt { margin: 0; font-size: .78rem; color: var(--schrift); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.zr-warte__mehr { display: grid; gap: 6px; }
|
||||
.zr-warte__mehr[open] { padding-top: 2px; }
|
||||
.zr-warte__auf { cursor: pointer; font-size: .76rem; color: var(--schrift-leise); width: max-content; }
|
||||
.zr-warte__auf:focus-visible { outline: 2px solid #9ab7ff; outline-offset: 2px; border-radius: 4px; }
|
||||
.zr-warte__name { color: var(--schrift); }
|
||||
.zr-warte__bereit { color: var(--schrift-leise); font-size: .78rem; }
|
||||
.zr-warte[data-bereit="ja"] .zr-warte__bereit { color: #9fdcb9; font-weight: 700; }
|
||||
.zr-werte { display: flex; flex-wrap: wrap; gap: 3px 12px; }
|
||||
.zr-wert { font-size: .76rem; }
|
||||
.zr-warte__alt { margin: 0; font-size: .74rem; color: #e6c35c; }
|
||||
.zr-holen { margin-left: auto; }
|
||||
.bz-warte[data-bereit="ja"] { border-color: rgba(111, 207, 151, .4); }
|
||||
.bz-warte__kopf { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
|
||||
.bz-punkte { display: inline-flex; gap: 4px; }
|
||||
.bz-punkte .bz-punkt[data-stufe="gut"] { background: #6fcf97; }
|
||||
.bz-punkte .bz-punkt[data-stufe="knapp"] { background: #e6c35c; }
|
||||
.bz-punkte .bz-punkt[data-stufe="schwach"] { background: #d98a8a; }
|
||||
.bz-warte__zuletzt { margin: 0; font-size: .78rem; color: var(--schrift); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.bz-warte__mehr { display: grid; gap: 6px; }
|
||||
.bz-warte__mehr[open] { padding-top: 2px; }
|
||||
.bz-warte__auf { cursor: pointer; font-size: .76rem; color: var(--schrift-leise); width: max-content; }
|
||||
.bz-warte__auf:focus-visible { outline: 2px solid #9ab7ff; outline-offset: 2px; border-radius: 4px; }
|
||||
.bz-warte__name { color: var(--schrift); }
|
||||
.bz-warte__bereit { color: var(--schrift-leise); font-size: .78rem; }
|
||||
.bz-warte[data-bereit="ja"] .bz-warte__bereit { color: #9fdcb9; font-weight: 700; }
|
||||
.bz-werte { display: flex; flex-wrap: wrap; gap: 3px 12px; }
|
||||
.bz-wert { font-size: .76rem; }
|
||||
.bz-warte__alt { margin: 0; font-size: .74rem; color: #e6c35c; }
|
||||
.bz-holen { margin-left: auto; }
|
||||
|
||||
/* Im seitlichen Pult: Die Backstage-Zeile rollt in sich, und der
|
||||
Regie-Inhalt darunter behält mindestens 120 px. Gemessen vorher:
|
||||
@@ -129,11 +129,11 @@
|
||||
}
|
||||
|
||||
@media (pointer: coarse) {
|
||||
.zr-draht__feld, .zr-holen, .zr-warte .zr-draht__form .btn { min-height: 44px; }
|
||||
.bz-draht__feld, .bz-holen, .bz-warte .bz-draht__form .btn { min-height: 44px; }
|
||||
}
|
||||
@media (max-width: 420px) {
|
||||
/* Zwei Spalten auch am Handy: Die Vorschau wird kleiner, damit
|
||||
„Ich bin bereit“ ohne Rollen erreichbar bleibt. */
|
||||
.zr-oben { grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 10px; }
|
||||
.zr-satz { font-size: .76rem; }
|
||||
.bz-oben { grid-template-columns: minmax(0, 104px) minmax(0, 1fr); gap: 10px; }
|
||||
.bz-satz { font-size: .76rem; }
|
||||
}
|
||||
|
||||
@@ -132,51 +132,51 @@
|
||||
function tonSpur() { return strom()?.getAudioTracks?.().find((t) => t.readyState === 'live') || null; }
|
||||
|
||||
function feldBauen() {
|
||||
let f = $('zr-gast');
|
||||
let f = $('bz-gast');
|
||||
if (f) return f;
|
||||
const kopf = document.querySelector('#schiene .schiene__kopf');
|
||||
if (!kopf) return null;
|
||||
f = el('section', 'zr');
|
||||
f.id = 'zr-gast';
|
||||
f = el('section', 'bz');
|
||||
f.id = 'bz-gast';
|
||||
f.hidden = true;
|
||||
f.setAttribute('aria-labelledby', 'zr-titel');
|
||||
const titel = el('h3', 'zr-titel', 'Du bist im Backstage');
|
||||
titel.id = 'zr-titel';
|
||||
const satzP = el('p', 'zr-satz', 'Das Publikum sieht und hört dich noch nicht. Die Regie sieht deine Prüfwerte und holt dich auf die Bühne.');
|
||||
const oben = el('div', 'zr-oben');
|
||||
const vorschau = el('video', 'zr-vorschau');
|
||||
vorschau.id = 'zr-vorschau';
|
||||
f.setAttribute('aria-labelledby', 'bz-titel');
|
||||
const titel = el('h3', 'bz-titel', 'Du bist im Backstage');
|
||||
titel.id = 'bz-titel';
|
||||
const satzP = el('p', 'bz-satz', 'Das Publikum sieht und hört dich noch nicht. Die Regie sieht deine Prüfwerte und holt dich auf die Bühne.');
|
||||
const oben = el('div', 'bz-oben');
|
||||
const vorschau = el('video', 'bz-vorschau');
|
||||
vorschau.id = 'bz-vorschau';
|
||||
vorschau.muted = true; vorschau.playsInline = true; vorschau.autoplay = true;
|
||||
vorschau.setAttribute('aria-label', 'Deine Vorschau – so sähe dich das Publikum');
|
||||
const ohne = el('p', 'zr-ohne', 'Keine Kamera – das Publikum hört dich nur.');
|
||||
ohne.id = 'zr-ohne';
|
||||
const ohne = el('p', 'bz-ohne', 'Keine Kamera – das Publikum hört dich nur.');
|
||||
ohne.id = 'bz-ohne';
|
||||
ohne.hidden = true;
|
||||
const rahmen = el('div', 'zr-rahmen');
|
||||
const rahmen = el('div', 'bz-rahmen');
|
||||
/* Der Rahmen ist eine Hilfe zum Ausrichten, keine Behauptung: Ob das
|
||||
Gesicht darin ist, sagt nur die Erkennung – und nur, wenn es sie gibt. */
|
||||
const oval = el('i', 'zr-oval');
|
||||
const oval = el('i', 'bz-oval');
|
||||
oval.setAttribute('aria-hidden', 'true');
|
||||
const hinweis = el('p', 'zr-bildhinweis');
|
||||
hinweis.id = 'zr-bildhinweis';
|
||||
const hinweis = el('p', 'bz-bildhinweis');
|
||||
hinweis.id = 'bz-bildhinweis';
|
||||
hinweis.hidden = true;
|
||||
rahmen.append(vorschau, oval, hinweis, ohne);
|
||||
const liste = el('ul', 'zr-schritte');
|
||||
liste.id = 'zr-schritte';
|
||||
const liste = el('ul', 'bz-schritte');
|
||||
liste.id = 'bz-schritte';
|
||||
liste.setAttribute('aria-label', 'Prüfung');
|
||||
for (const [k, name] of SCHRITTE) {
|
||||
const li = el('li', 'zr-schritt');
|
||||
const li = el('li', 'bz-schritt');
|
||||
li.dataset.schritt = k;
|
||||
li.dataset.stufe = 'offen';
|
||||
const punkt = el('i', 'zr-punkt'); punkt.setAttribute('aria-hidden', 'true');
|
||||
const text = el('span', 'zr-schritt__text', `${name} …`);
|
||||
const punkt = el('i', 'bz-punkt'); punkt.setAttribute('aria-hidden', 'true');
|
||||
const text = el('span', 'bz-schritt__text', `${name} …`);
|
||||
li.append(punkt, text);
|
||||
liste.append(li);
|
||||
}
|
||||
oben.append(rahmen, liste);
|
||||
|
||||
const knoepfe = el('div', 'zr-knoepfe');
|
||||
const bereit = el('button', 'bs-knopf bs-knopf--bereit zr-bereit', 'Ich bin bereit');
|
||||
bereit.type = 'button'; bereit.id = 'zr-bereit';
|
||||
const knoepfe = el('div', 'bz-knoepfe');
|
||||
const bereit = el('button', 'bs-knopf bs-knopf--bereit bz-bereit', 'Ich bin bereit');
|
||||
bereit.type = 'button'; bereit.id = 'bz-bereit';
|
||||
bereit.setAttribute('aria-pressed', 'false');
|
||||
bereit.addEventListener('click', async () => {
|
||||
const soll = bereit.getAttribute('aria-pressed') !== 'true';
|
||||
@@ -187,31 +187,31 @@
|
||||
else sagen(satz(r.j?.fehler, 'Das ging gerade nicht.'));
|
||||
} catch { sagen('Das ging gerade nicht.'); } finally { bereit.disabled = false; gastZeichnen(); }
|
||||
});
|
||||
const neu = el('button', 'bs-knopf zr-neu', 'Leitung neu messen');
|
||||
neu.type = 'button'; neu.id = 'zr-leitung';
|
||||
const neu = el('button', 'bs-knopf bz-neu', 'Leitung neu messen');
|
||||
neu.type = 'button'; neu.id = 'bz-leitung';
|
||||
neu.addEventListener('click', () => leitungMessen(true));
|
||||
knoepfe.append(bereit, neu);
|
||||
|
||||
const wie = el('p', 'zr-wie');
|
||||
wie.id = 'zr-wie';
|
||||
const wie = el('p', 'bz-wie');
|
||||
wie.id = 'bz-wie';
|
||||
wie.setAttribute('role', 'status');
|
||||
wie.setAttribute('aria-live', 'polite');
|
||||
|
||||
const draht = el('div', 'zr-draht');
|
||||
const dTitel = el('p', 'zr-draht__titel', 'Kurzer Draht zur Regie');
|
||||
const dListe = el('ol', 'zr-draht__liste');
|
||||
dListe.id = 'zr-draht';
|
||||
const draht = el('div', 'bz-draht');
|
||||
const dTitel = el('p', 'bz-draht__titel', 'Kurzer Draht zur Regie');
|
||||
const dListe = el('ol', 'bz-draht__liste');
|
||||
dListe.id = 'bz-draht';
|
||||
dListe.setAttribute('role', 'log');
|
||||
dListe.setAttribute('aria-live', 'polite');
|
||||
dListe.setAttribute('aria-label', 'Nachrichten mit der Regie');
|
||||
const form = el('form', 'zr-draht__form');
|
||||
form.id = 'zr-draht-form';
|
||||
const eingabe = el('input', 'zr-draht__feld');
|
||||
eingabe.id = 'zr-draht-text';
|
||||
const form = el('form', 'bz-draht__form');
|
||||
form.id = 'bz-draht-form';
|
||||
const eingabe = el('input', 'bz-draht__feld');
|
||||
eingabe.id = 'bz-draht-text';
|
||||
eingabe.type = 'text'; eingabe.maxLength = 200; eingabe.autocomplete = 'off';
|
||||
eingabe.placeholder = 'Nur die Regie liest das';
|
||||
eingabe.setAttribute('aria-label', 'Nachricht an die Regie');
|
||||
const schick = el('button', 'bs-knopf zr-draht__senden', 'Senden');
|
||||
const schick = el('button', 'bs-knopf bz-draht__senden', 'Senden');
|
||||
schick.type = 'submit';
|
||||
form.append(eingabe, schick);
|
||||
form.addEventListener('submit', async (e) => {
|
||||
@@ -227,8 +227,8 @@
|
||||
});
|
||||
draht.append(dTitel, dListe, form);
|
||||
|
||||
const sagt = el('p', 'zr-sagt');
|
||||
sagt.id = 'zr-sagt';
|
||||
const sagt = el('p', 'bz-sagt');
|
||||
sagt.id = 'bz-sagt';
|
||||
sagt.setAttribute('role', 'status');
|
||||
f.append(titel, satzP, oben, knoepfe, wie, draht, sagt);
|
||||
/* Manche Browser (Safari am iPhone) starten die Tonmessung erst nach
|
||||
@@ -239,7 +239,7 @@
|
||||
}
|
||||
|
||||
function sagen(text) {
|
||||
const s = $('zr-sagt');
|
||||
const s = $('bz-sagt');
|
||||
if (!s) return;
|
||||
s.textContent = text;
|
||||
clearTimeout(sagen.uhr);
|
||||
@@ -265,7 +265,7 @@
|
||||
liste.textContent = '';
|
||||
liste.hidden = !l.length;
|
||||
for (const d of l) {
|
||||
const li = el('li', 'zr-draht__zeile');
|
||||
const li = el('li', 'bz-draht__zeile');
|
||||
li.dataset.von = d.von;
|
||||
li.append(el('strong', '', d.von === ich ? 'Du' : (andere || 'Regie')), document.createTextNode(` ${d.text}`));
|
||||
liste.append(li);
|
||||
@@ -338,7 +338,7 @@
|
||||
return { licht: Math.round(s / n), mitte: Math.round(sm / nm), rand: Math.round((s - sm) / (n - nm)) };
|
||||
}
|
||||
function lichtMessen() {
|
||||
const v = $('zr-vorschau');
|
||||
const v = $('bz-vorschau');
|
||||
const spur = bildSpur();
|
||||
if (!v || !spur || !spur.enabled || v.videoWidth === 0 || v.readyState < 2) { mess.licht = mess.mitte = mess.rand = null; return; }
|
||||
try {
|
||||
@@ -392,7 +392,7 @@
|
||||
async function leitungMessen(vonHand) {
|
||||
if (mess.misst) return;
|
||||
mess.misst = true;
|
||||
const knopf = $('zr-leitung');
|
||||
const knopf = $('bz-leitung');
|
||||
if (knopf) knopf.disabled = true;
|
||||
mess.leitung = null;
|
||||
mess.leitungGrund = 'Leitung wird gemessen …';
|
||||
@@ -461,13 +461,13 @@
|
||||
}
|
||||
|
||||
function gastZeichnen() {
|
||||
const f = $('zr-gast');
|
||||
const f = $('bz-gast');
|
||||
if (!f || f.hidden) return;
|
||||
const v = $('zr-vorschau');
|
||||
const v = $('bz-vorschau');
|
||||
const s = strom();
|
||||
if (v && v.srcObject !== s) { v.srcObject = s; if (s) v.play().catch(() => { /* stumm darf immer */ }); }
|
||||
const w = jetzigeWerte();
|
||||
$('zr-ohne').hidden = w.kamera;
|
||||
$('bz-ohne').hidden = w.kamera;
|
||||
v.hidden = !w.kamera;
|
||||
const b = bewerten(w);
|
||||
/* Schläft die Tonmessung (keine Berührung erlaubt sie noch), sagt das
|
||||
@@ -476,24 +476,24 @@
|
||||
b.ton = ['offen', 'Tippe kurz in dieses Feld – dann misst die Seite deinen Ton'];
|
||||
}
|
||||
const hin = bildHinweis(w);
|
||||
const hp = $('zr-bildhinweis');
|
||||
const hp = $('bz-bildhinweis');
|
||||
hp.hidden = !hin;
|
||||
hp.textContent = hin || '';
|
||||
for (const li of f.querySelectorAll('.zr-schritt')) {
|
||||
for (const li of f.querySelectorAll('.bz-schritt')) {
|
||||
const [stufe, text] = b[li.dataset.schritt];
|
||||
li.dataset.stufe = stufe;
|
||||
li.querySelector('.zr-schritt__text').textContent = text;
|
||||
li.querySelector('.bz-schritt__text').textContent = text;
|
||||
}
|
||||
const knopf = $('zr-bereit');
|
||||
const knopf = $('bz-bereit');
|
||||
knopf.setAttribute('aria-pressed', String(!!stand?.bereit));
|
||||
knopf.textContent = stand?.bereit ? 'Bereit ✓' : 'Ich bin bereit';
|
||||
knopf.setAttribute('aria-label', stand?.bereit ? 'Bereit gemeldet – tippen nimmt es zurück' : 'Ich bin bereit');
|
||||
const schwach = Object.values(b).some(([st]) => st === 'schwach');
|
||||
$('zr-wie').textContent = stand?.bereit
|
||||
$('bz-wie').textContent = stand?.bereit
|
||||
? 'Die Regie weiß, dass du bereit bist. Sie holt dich auf die Bühne – du musst nichts weiter tun.'
|
||||
: schwach ? 'Ein Punkt ist noch schwach – du kannst trotzdem „Ich bin bereit“ drücken.'
|
||||
: 'Sieht gut aus? Dann drück „Ich bin bereit“.';
|
||||
drahtZeichnen($('zr-draht'), stand?.draht, 'gast');
|
||||
drahtZeichnen($('bz-draht'), stand?.draht, 'gast');
|
||||
}
|
||||
|
||||
function gastAn() {
|
||||
@@ -518,13 +518,13 @@
|
||||
gastZeichnen();
|
||||
}
|
||||
function gastAus(naechster) {
|
||||
const f = $('zr-gast');
|
||||
const f = $('bz-gast');
|
||||
if (f) f.hidden = true;
|
||||
$('schiene')?.removeAttribute('data-zwischenraum');
|
||||
clearInterval(messUhr);
|
||||
messUhr = null;
|
||||
tonAb();
|
||||
const v = $('zr-vorschau');
|
||||
const v = $('bz-vorschau');
|
||||
if (v) v.srcObject = null;
|
||||
mess.leitung = null;
|
||||
/* Aus dem Backstage herausgenommen (nicht auf die Bühne geholt): Die
|
||||
@@ -534,19 +534,19 @@
|
||||
|
||||
/* ================================================= REGIE */
|
||||
function regieFeld() {
|
||||
let f = $('zr-regie');
|
||||
let f = $('bz-regie');
|
||||
if (f) return f;
|
||||
const zeile = $('cockpit-backstage');
|
||||
if (!zeile) return null;
|
||||
f = el('div', 'zr-regie');
|
||||
f.id = 'zr-regie';
|
||||
f = el('div', 'bz-regie');
|
||||
f.id = 'bz-regie';
|
||||
f.hidden = true;
|
||||
f.setAttribute('role', 'group');
|
||||
f.setAttribute('aria-label', 'Wartet im Backstage');
|
||||
const ul = el('ul', 'zr-warten');
|
||||
ul.id = 'zr-warten';
|
||||
const sagt = el('p', 'zr-sagt');
|
||||
sagt.id = 'zr-regie-sagt';
|
||||
const ul = el('ul', 'bz-warten');
|
||||
ul.id = 'bz-warten';
|
||||
const sagt = el('p', 'bz-sagt');
|
||||
sagt.id = 'bz-regie-sagt';
|
||||
sagt.setAttribute('role', 'status');
|
||||
f.append(ul, sagt);
|
||||
const vor = $('bs-haende') || $('cockpit-gaeste');
|
||||
@@ -554,7 +554,7 @@
|
||||
return f;
|
||||
}
|
||||
function regieSagen(text) {
|
||||
const s = $('zr-regie-sagt');
|
||||
const s = $('bz-regie-sagt');
|
||||
if (!s) return;
|
||||
s.textContent = text;
|
||||
clearTimeout(regieSagen.uhr);
|
||||
@@ -565,30 +565,30 @@
|
||||
ein Antwortfeld, das bei jedem Stand neu gebaut würde, verlöre den
|
||||
halb geschriebenen Satz und den Fokus. */
|
||||
function warteKarte(g) {
|
||||
const li = el('li', 'zr-warte');
|
||||
const li = el('li', 'bz-warte');
|
||||
li.dataset.id = String(g.id);
|
||||
/* KOMPAKT (gemessen 04.11.2026): Ausgeklappt nahm die Karte im
|
||||
seitlichen Pult 309 px, und der Regie-Inhalt darunter bekam 0 px.
|
||||
Oben steht deshalb nur, was zum Holen nötig ist – eine Zeile mit Name,
|
||||
„bereit ✓“, fünf Punkten und dem Knopf. Werte und Draht klappen auf. */
|
||||
const kopf = el('div', 'zr-warte__kopf');
|
||||
const punkte = el('span', 'zr-punkte');
|
||||
const kopf = el('div', 'bz-warte__kopf');
|
||||
const punkte = el('span', 'bz-punkte');
|
||||
punkte.setAttribute('role', 'img');
|
||||
for (const [k] of SCHRITTE) { const i = el('i', 'zr-punkt'); i.dataset.schritt = k; punkte.append(i); }
|
||||
kopf.append(el('strong', 'zr-warte__name', g.name), el('span', 'zr-warte__bereit'), punkte);
|
||||
const werte = el('ul', 'zr-werte');
|
||||
for (const [k] of SCHRITTE) { const i = el('i', 'bz-punkt'); i.dataset.schritt = k; punkte.append(i); }
|
||||
kopf.append(el('strong', 'bz-warte__name', g.name), el('span', 'bz-warte__bereit'), punkte);
|
||||
const werte = el('ul', 'bz-werte');
|
||||
for (const [k] of SCHRITTE) {
|
||||
const w = el('li', 'zr-wert');
|
||||
const w = el('li', 'bz-wert');
|
||||
w.dataset.schritt = k;
|
||||
const punkt = el('i', 'zr-punkt'); punkt.setAttribute('aria-hidden', 'true');
|
||||
w.append(punkt, el('span', 'zr-wert__text'));
|
||||
const punkt = el('i', 'bz-punkt'); punkt.setAttribute('aria-hidden', 'true');
|
||||
w.append(punkt, el('span', 'bz-wert__text'));
|
||||
werte.append(w);
|
||||
}
|
||||
const alt = el('p', 'zr-warte__alt');
|
||||
const dListe = el('ol', 'zr-draht__liste');
|
||||
const alt = el('p', 'bz-warte__alt');
|
||||
const dListe = el('ol', 'bz-draht__liste');
|
||||
dListe.setAttribute('aria-label', `Nachrichten mit ${g.name}`);
|
||||
const form = el('form', 'zr-draht__form');
|
||||
const eingabe = el('input', 'zr-draht__feld');
|
||||
const form = el('form', 'bz-draht__form');
|
||||
const eingabe = el('input', 'bz-draht__feld');
|
||||
eingabe.type = 'text'; eingabe.maxLength = 200; eingabe.autocomplete = 'off';
|
||||
eingabe.placeholder = `Kurz an ${g.name} …`;
|
||||
eingabe.setAttribute('aria-label', `Nachricht an ${g.name}`);
|
||||
@@ -606,7 +606,7 @@
|
||||
else regieSagen(satz(r.j?.fehler, 'Das ging gerade nicht hinaus.'));
|
||||
} catch { regieSagen('Das ging gerade nicht hinaus.'); } finally { schick.disabled = false; }
|
||||
});
|
||||
const holen = el('button', 'btn btn-klein btn-primaer zr-holen', 'Auf die Bühne');
|
||||
const holen = el('button', 'btn btn-klein btn-primaer bz-holen', 'Auf die Bühne');
|
||||
holen.type = 'button';
|
||||
holen.setAttribute('aria-label', `${g.name} auf die Bühne holen`);
|
||||
holen.addEventListener('click', async () => {
|
||||
@@ -624,9 +624,9 @@
|
||||
}
|
||||
});
|
||||
kopf.append(holen);
|
||||
const zuletzt = el('p', 'zr-warte__zuletzt');
|
||||
const mehr = el('details', 'zr-warte__mehr');
|
||||
const sum = el('summary', 'zr-warte__auf', 'Werte & Draht');
|
||||
const zuletzt = el('p', 'bz-warte__zuletzt');
|
||||
const mehr = el('details', 'bz-warte__mehr');
|
||||
const sum = el('summary', 'bz-warte__auf', 'Werte & Draht');
|
||||
mehr.append(sum, werte, dListe, form);
|
||||
li.append(kopf, alt, zuletzt, mehr);
|
||||
return li;
|
||||
@@ -635,34 +635,34 @@
|
||||
const c = g.check || {};
|
||||
const hat = !!g.check;
|
||||
li.dataset.bereit = g.bereit ? 'ja' : 'nein';
|
||||
const br = li.querySelector('.zr-warte__bereit');
|
||||
const br = li.querySelector('.bz-warte__bereit');
|
||||
br.textContent = g.bereit ? 'bereit ✓' : 'prüft noch';
|
||||
const b = hat ? bewerten(c) : null;
|
||||
const worte = [];
|
||||
for (const i of li.querySelectorAll('.zr-punkte .zr-punkt')) {
|
||||
for (const i of li.querySelectorAll('.bz-punkte .bz-punkt')) {
|
||||
const [stufe, text] = b ? b[i.dataset.schritt] : ['offen', 'noch keine Werte'];
|
||||
i.dataset.stufe = stufe;
|
||||
worte.push(text.split(' – ')[0]);
|
||||
}
|
||||
li.querySelector('.zr-punkte').setAttribute('aria-label', hat ? worte.join(', ') : 'noch keine Werte');
|
||||
li.querySelector('.zr-punkte').title = hat ? worte.join(' · ') : 'noch keine Werte';
|
||||
for (const w of li.querySelectorAll('.zr-wert')) {
|
||||
li.querySelector('.bz-punkte').setAttribute('aria-label', hat ? worte.join(', ') : 'noch keine Werte');
|
||||
li.querySelector('.bz-punkte').title = hat ? worte.join(' · ') : 'noch keine Werte';
|
||||
for (const w of li.querySelectorAll('.bz-wert')) {
|
||||
const [stufe, text] = b ? b[w.dataset.schritt] : ['offen', 'noch keine Werte'];
|
||||
w.dataset.stufe = stufe;
|
||||
/* Im Cockpit nur das erste Stück des Satzes – die Regie braucht den
|
||||
Befund, nicht die Anleitung. */
|
||||
w.querySelector('.zr-wert__text').textContent = text.split(' – ')[0];
|
||||
w.querySelector('.bz-wert__text').textContent = text.split(' – ')[0];
|
||||
w.title = text;
|
||||
}
|
||||
const altP = li.querySelector('.zr-warte__alt');
|
||||
const altP = li.querySelector('.bz-warte__alt');
|
||||
const seit = c.zeit ? Math.round((Date.now() - Date.parse(c.zeit)) / 1000) : null;
|
||||
altP.textContent = !hat ? 'Seine Seite hat noch nichts gemessen.'
|
||||
: seit != null && seit > 45 ? `Werte von vor ${seit < 120 ? `${seit} s` : `${Math.round(seit / 60)} min`} – ist die Seite noch offen?` : '';
|
||||
drahtZeichnen(li.querySelector('.zr-draht__liste'), g.draht, 'regie', g.name);
|
||||
drahtZeichnen(li.querySelector('.bz-draht__liste'), g.draht, 'regie', g.name);
|
||||
/* Der letzte Zuruf des Gastes steht auch zugeklappt da – sonst ginge er
|
||||
in der eingeklappten Karte unter. */
|
||||
const vomGast = (g.draht || []).filter((d) => d.von === 'gast').at(-1);
|
||||
li.querySelector('.zr-warte__zuletzt').textContent = vomGast ? `„${vomGast.text}“` : '';
|
||||
li.querySelector('.bz-warte__zuletzt').textContent = vomGast ? `„${vomGast.text}“` : '';
|
||||
}
|
||||
/* „Nachtfalter ist bereit.“ – einmal, wenn es WECHSELT. Wer schon bereit
|
||||
war, als die Regie ihn zum ersten Mal sah, wird nicht angesagt: Ein Satz,
|
||||
@@ -677,11 +677,11 @@
|
||||
warBereit.clear();
|
||||
for (const g of warten) warBereit.set(g.id, !!g.bereit);
|
||||
f.hidden = !warten.length;
|
||||
const ul = $('zr-warten');
|
||||
const ul = $('bz-warten');
|
||||
const da = new Set(warten.map((g) => String(g.id)));
|
||||
for (const li of [...ul.children]) if (!da.has(li.dataset.id)) li.remove();
|
||||
for (const g of warten) {
|
||||
let li = ul.querySelector(`.zr-warte[data-id="${Number(g.id)}"]`);
|
||||
let li = ul.querySelector(`.bz-warte[data-id="${Number(g.id)}"]`);
|
||||
if (!li) { li = warteKarte(g); ul.append(li); }
|
||||
warteFuellen(li, g);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user