Gast-Backstage (Neuplan C5): bereit, Hand heben, „Die Regie sieht dich“
Der Gast auf der Bühne meldet „Ich bin bereit“ und hebt die Hand; die Regie sieht beides in der Backstage-Zeile des Cockpits und nimmt Hände herunter. Ob die Regie ihn sieht, meldet ihr Gerät (Videospur lebt, liefert Bilder, Kamera nicht aus, Seite vor Augen) – ohne frische Meldung sagt der Gast ehrlich „noch keine Bestätigung“. Server: workspace-backstage.js, Spalten bereit_am/hand_am an reaktion_gaeste, Rundruf nur an Regie und Gast. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,68 @@
|
||||
/* =====================================================================
|
||||
DIE BACKSTAGE (04.11.2026) – siehe backstage.js
|
||||
|
||||
Die Karte des Gastes steht oben in der Chatspalte, nie über dem Video.
|
||||
Ruhig: ein Punkt sagt den Stand (grün = sieht dich, bernstein = hört
|
||||
dich, grau = noch nicht), keine Signalflächen, nichts blinkt.
|
||||
===================================================================== */
|
||||
.bs-karte[hidden], .bs-haende[hidden], .bs-sagt:empty { display: none !important; }
|
||||
|
||||
/* Die Chatspalte ist ein Raster aus vier Reihen (Kopf, Liste 1fr, Antwort,
|
||||
Feld). Steht die Karte darin, bekommt sie eine eigene Reihe – sonst
|
||||
bekäme SIE das 1fr der Liste. Gesetzt von backstage.js. */
|
||||
#schiene[data-backstage="ja"] { grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
|
||||
|
||||
.bs-karte {
|
||||
display: grid; gap: 8px;
|
||||
padding: 10px 14px 10px;
|
||||
border-bottom: 1px solid var(--rand);
|
||||
background: rgba(143, 211, 255, .035);
|
||||
}
|
||||
.bs-sicht {
|
||||
display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
|
||||
margin: 0; font-size: .82rem; line-height: 1.35;
|
||||
}
|
||||
.bs-sicht__punkt {
|
||||
width: 9px; height: 9px; flex: none; border-radius: 50%;
|
||||
background: #6d6a80; align-self: center;
|
||||
}
|
||||
.bs-sicht[data-sieht="ja"] .bs-sicht__punkt { background: #6fcf97; }
|
||||
.bs-sicht[data-sieht="hoert"] .bs-sicht__punkt { background: #e6c35c; }
|
||||
.bs-sicht__wort { color: var(--schrift); font-weight: 700; }
|
||||
.bs-sicht__grund { color: var(--schrift-leise); flex-basis: 100%; padding-left: 17px; font-size: .78rem; }
|
||||
.bs-sicht__grund:empty { display: none; }
|
||||
|
||||
.bs-knoepfe { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
|
||||
.bs-knopf {
|
||||
appearance: none; cursor: pointer;
|
||||
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
|
||||
min-height: 40px; padding: 6px 12px;
|
||||
border-radius: 12px; border: 1px solid var(--rand-hell);
|
||||
background: rgba(255, 255, 255, .035); color: var(--schrift);
|
||||
font: inherit; font-size: .86rem; font-weight: 700;
|
||||
}
|
||||
.bs-knopf:focus-visible { outline: 2px solid #9ab7ff; outline-offset: 2px; }
|
||||
.bs-knopf:disabled { opacity: .6; cursor: default; }
|
||||
.bs-knopf--bereit[aria-pressed="true"] { border-color: rgba(111, 207, 151, .5); background: rgba(111, 207, 151, .1); color: #b9efcf; }
|
||||
.bs-knopf--hand[aria-pressed="true"] { border-color: rgba(230, 195, 92, .55); background: rgba(230, 195, 92, .12); color: #f1dca0; }
|
||||
.bs-knopf__zeichen { font-size: 1rem; line-height: 1; }
|
||||
.bs-sagt { margin: 0; font-size: .78rem; color: var(--schrift-leise); }
|
||||
|
||||
/* Im Einladungsdialog: ein Satz, keine Fläche. */
|
||||
.bs-vorraum {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
margin: 6px 0 0; font-size: .82rem; color: var(--schrift-leise, #a9a3bd);
|
||||
}
|
||||
.bs-vorraum .bs-sicht__punkt { background: #6d6a80; }
|
||||
|
||||
/* ---- Regie: im Cockpit ------------------------------------------- */
|
||||
.bs-marke { color: var(--schrift-leise); }
|
||||
.bs-marke--bereit { color: #9fdcb9; font-weight: 700; }
|
||||
.bs-marke--hand { font-size: .95rem; line-height: 1; }
|
||||
.cockpit-backstage__person[data-hand="ja"] strong { color: #f1dca0; }
|
||||
.bs-haende { display: flex; flex-wrap: wrap; gap: 6px; }
|
||||
#cockpit-backstage .bs-runter { border-color: rgba(230, 195, 92, .45); color: #f1dca0; }
|
||||
|
||||
@media (pointer: coarse) {
|
||||
.bs-knopf, #cockpit-backstage .bs-runter { min-height: 44px; }
|
||||
}
|
||||
@@ -0,0 +1,306 @@
|
||||
/* =====================================================================
|
||||
DIE BACKSTAGE (04.11.2026, Neuplan C5.5/C5.6 – Server: workspace-backstage.js)
|
||||
|
||||
FÜR DEN GAST, solange er auf der Bühne steht, eine kleine Karte oben in
|
||||
der Chatspalte – nie über dem Video:
|
||||
· „Ich bin bereit“ – erst dann steht er im Cockpit als „bereit ✓“,
|
||||
· „Hand heben“ – die Regie sieht ✋ mit Namen und nimmt sie herunter,
|
||||
· und jederzeit der Satz, ob die Regie ihn SIEHT. Der kommt nicht aus
|
||||
einer Vermutung, sondern aus der Meldung ihres Geräts (siehe unten).
|
||||
Im Einladungsdialog steht dazu, dass ihn noch niemand sieht – dort
|
||||
geht auch nichts hinaus, bevor er zusagt.
|
||||
|
||||
FÜR DIE REGIE:
|
||||
· ihr Gerät meldet alle paar Sekunden, von welchem Gast WIRKLICH Bild
|
||||
ankommt (Videospur lebt, liefert Bilder, hat eine Größe) und ob der
|
||||
Saal vor Augen ist – daraus entsteht der Satz beim Gast,
|
||||
· in der Backstage-Zeile des Cockpits stehen „bereit ✓“ und ✋, und je
|
||||
erhobener Hand ein Knopf, der sie herunternimmt.
|
||||
|
||||
Eigene Datei wegen der 200-KB-Grenze von reaktion.js; liest den Stand
|
||||
über `saal:lage`/`saal:strom` und baut nichts nach, was es schon gibt.
|
||||
===================================================================== */
|
||||
(() => {
|
||||
'use strict';
|
||||
const $ = (id) => document.getElementById(id);
|
||||
const el = (tag, cls, text) => { const e = document.createElement(tag); if (cls) e.className = cls; if (text != null) e.textContent = text; return e; };
|
||||
const API = '/workspace/api/reaktion/backstage';
|
||||
let lage = null;
|
||||
let stand = null; /* Antwort des Servers: { rolle, … } */
|
||||
let holt = false;
|
||||
let nochmal = false;
|
||||
let handVorher = null;
|
||||
|
||||
async function holen() {
|
||||
if (holt) { nochmal = true; return; }
|
||||
holt = true;
|
||||
try {
|
||||
const a = await fetch(API, { credentials: 'same-origin', cache: 'no-store' });
|
||||
const j = await a.json().catch(() => null);
|
||||
if (a.ok && j) { stand = j; zeichnen(); }
|
||||
} catch { /* der nächste Takt holt es */ } finally {
|
||||
holt = false;
|
||||
if (nochmal) { nochmal = false; holen(); }
|
||||
}
|
||||
}
|
||||
async function senden(pfad, rumpf) {
|
||||
const a = await fetch(`${API}${pfad}`, {
|
||||
method: 'POST', credentials: 'same-origin',
|
||||
headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(rumpf || {}),
|
||||
});
|
||||
const j = await a.json().catch(() => null);
|
||||
return { ok: a.ok, j };
|
||||
}
|
||||
|
||||
/* ================================================= GAST: die Karte */
|
||||
const SAETZE = {
|
||||
ja: () => ['Die Regie sieht dich', ''],
|
||||
hoert: () => ['Die Regie hört dich', lage?.ich?.kamera_aus ? 'Deine Kamera ist aus – Bild kommt keins an.' : 'Dein Bild kommt bei ihr gerade nicht an.'],
|
||||
nein: (g) => ['Regie sieht dich noch nicht', {
|
||||
regie_weg: 'Die Regie ist gerade nicht im Saal.',
|
||||
regie_schaut_weg: 'Ihr Saal ist gerade nicht im Vordergrund.',
|
||||
noch_nicht_zugesagt: 'Erst wenn du zusagst, geht dein Bild hinaus.',
|
||||
kommt_nicht_an: lage?.ich?.kamera_aus && lage?.ich?.mikro_aus ? 'Deine Kamera und dein Mikro sind aus.' : 'Bei ihr kommt noch kein Bild an – die Verbindung baut sich auf.',
|
||||
}[g] || ''],
|
||||
unbekannt: () => ['Regie sieht dich noch nicht', 'Ihr Gerät hat noch keine Bestätigung geschickt.'],
|
||||
};
|
||||
|
||||
function karteBauen() {
|
||||
let karte = $('bs-karte');
|
||||
if (karte) return karte;
|
||||
const kopf = document.querySelector('#schiene .schiene__kopf');
|
||||
if (!kopf) return null;
|
||||
karte = el('section', 'bs-karte');
|
||||
karte.id = 'bs-karte';
|
||||
karte.hidden = true;
|
||||
karte.setAttribute('aria-label', 'Backstage');
|
||||
const sicht = el('p', 'bs-sicht');
|
||||
sicht.id = 'bs-sicht';
|
||||
sicht.setAttribute('role', 'status');
|
||||
sicht.setAttribute('aria-live', 'polite');
|
||||
const punkt = el('i', 'bs-sicht__punkt');
|
||||
punkt.setAttribute('aria-hidden', 'true');
|
||||
const wort = el('strong', 'bs-sicht__wort');
|
||||
wort.id = 'bs-sicht-wort';
|
||||
const grund = el('span', 'bs-sicht__grund');
|
||||
grund.id = 'bs-sicht-grund';
|
||||
sicht.append(punkt, wort, document.createTextNode(' '), grund);
|
||||
const knoepfe = el('div', 'bs-knoepfe');
|
||||
const bereit = el('button', 'bs-knopf bs-knopf--bereit', 'Ich bin bereit');
|
||||
bereit.type = 'button';
|
||||
bereit.id = 'bs-bereit';
|
||||
bereit.setAttribute('aria-pressed', 'false');
|
||||
bereit.addEventListener('click', async () => {
|
||||
const soll = bereit.getAttribute('aria-pressed') !== 'true';
|
||||
bereit.disabled = true;
|
||||
try {
|
||||
const r = await senden('/bereit', { bereit: soll });
|
||||
if (r.ok && stand?.rolle === 'gast') stand.bereit = r.j.bereit;
|
||||
else sagen(r.j?.fehler === 'zu_schnell' ? 'Einen Moment – zu oft gedrückt.' : 'Das ging gerade nicht.');
|
||||
} catch { sagen('Das ging gerade nicht.'); } finally { bereit.disabled = false; zeichnen(); }
|
||||
});
|
||||
const hand = el('button', 'bs-knopf bs-knopf--hand');
|
||||
hand.type = 'button';
|
||||
hand.id = 'bs-hand';
|
||||
hand.setAttribute('aria-pressed', 'false');
|
||||
const handZeichen = el('span', 'bs-knopf__zeichen', '✋');
|
||||
handZeichen.setAttribute('aria-hidden', 'true');
|
||||
hand.append(handZeichen, el('span', 'bs-knopf__wort', 'Hand heben'));
|
||||
hand.addEventListener('click', async () => {
|
||||
const soll = hand.getAttribute('aria-pressed') !== 'true';
|
||||
hand.disabled = true;
|
||||
try {
|
||||
const r = await senden('/hand', { oben: soll });
|
||||
if (r.ok && stand?.rolle === 'gast') { stand.hand = r.j.hand; handVorher = r.j.hand; }
|
||||
else sagen(r.j?.fehler === 'zu_schnell' ? 'Einen Moment – zu oft gedrückt.' : 'Das ging gerade nicht.');
|
||||
} catch { sagen('Das ging gerade nicht.'); } finally { hand.disabled = false; zeichnen(); }
|
||||
});
|
||||
knoepfe.append(bereit, hand);
|
||||
const sagt = el('p', 'bs-sagt');
|
||||
sagt.id = 'bs-sagt';
|
||||
sagt.setAttribute('role', 'status');
|
||||
karte.append(sicht, knoepfe, sagt);
|
||||
kopf.after(karte);
|
||||
return karte;
|
||||
}
|
||||
function sagen(text) {
|
||||
const s = $('bs-sagt');
|
||||
if (!s) return;
|
||||
s.textContent = text;
|
||||
clearTimeout(sagen.uhr);
|
||||
sagen.uhr = setTimeout(() => { s.textContent = ''; }, 4000);
|
||||
}
|
||||
|
||||
function karteZeichnen() {
|
||||
const istGast = stand?.rolle === 'gast' && stand.stand === 'dabei';
|
||||
const karte = istGast ? karteBauen() : $('bs-karte');
|
||||
if (!karte) return;
|
||||
karte.hidden = !istGast;
|
||||
const schiene = $('schiene');
|
||||
if (schiene) { if (istGast) schiene.dataset.backstage = 'ja'; else delete schiene.dataset.backstage; }
|
||||
if (!istGast) { handVorher = null; return; }
|
||||
const r = stand.regie || { sieht: 'unbekannt', grund: '' };
|
||||
const [wort, grund] = (SAETZE[r.sieht] || SAETZE.unbekannt)(r.grund);
|
||||
$('bs-sicht').dataset.sieht = r.sieht;
|
||||
$('bs-sicht-wort').textContent = wort;
|
||||
$('bs-sicht-grund').textContent = grund;
|
||||
const b = $('bs-bereit');
|
||||
b.setAttribute('aria-pressed', String(!!stand.bereit));
|
||||
b.textContent = stand.bereit ? 'Bereit ✓' : 'Ich bin bereit';
|
||||
b.setAttribute('aria-label', stand.bereit ? 'Bereit gemeldet – tippen nimmt es zurück' : 'Ich bin bereit');
|
||||
const h = $('bs-hand');
|
||||
h.setAttribute('aria-pressed', String(!!stand.hand));
|
||||
h.querySelector('.bs-knopf__wort').textContent = stand.hand ? 'Hand senken' : 'Hand heben';
|
||||
/* Die Hand ging herunter, ohne dass ich es war: Das war die Regie –
|
||||
sie hat sie gesehen. Das gehört gesagt, sonst wirkt es wie ein Fehler. */
|
||||
if (handVorher === true && stand.hand === false) sagen('Die Regie hat deine Hand gesehen.');
|
||||
handVorher = !!stand.hand;
|
||||
}
|
||||
|
||||
/* Im Einladungsdialog: Hinaus geht erst etwas, wenn man zusagt
|
||||
(`binSender` ist bis dahin falsch). Das steht dort jetzt auch. */
|
||||
function vorraumSatz() {
|
||||
const satz = $('vorraum-satz');
|
||||
if (!satz || $('bs-vorraum')) return;
|
||||
const p = el('p', 'bs-vorraum');
|
||||
p.id = 'bs-vorraum';
|
||||
const knopf = ($('vorraum-ja')?.textContent || 'Dabei sein').trim();
|
||||
const punkt = el('i', 'bs-sicht__punkt');
|
||||
punkt.setAttribute('aria-hidden', 'true');
|
||||
p.append(punkt, document.createTextNode(`Regie sieht dich noch nicht – erst wenn du „${knopf}“ drückst.`));
|
||||
satz.after(p);
|
||||
}
|
||||
|
||||
/* ================================================= REGIE: Cockpit */
|
||||
function schmuecken(li, p) {
|
||||
if (stand?.rolle !== 'regie' || p?.art !== 'dabei') return;
|
||||
const g = (stand.gaeste || []).find((x) => x.id === p.id);
|
||||
if (!g) return;
|
||||
li.dataset.bereit = g.bereit ? 'ja' : 'nein';
|
||||
li.append(el('span', g.bereit ? 'bs-marke bs-marke--bereit' : 'bs-marke', g.bereit ? 'bereit ✓' : 'noch nicht bereit'));
|
||||
if (g.hand) {
|
||||
li.dataset.hand = 'ja';
|
||||
const h = el('span', 'bs-marke bs-marke--hand', '✋');
|
||||
h.setAttribute('aria-label', 'hebt die Hand');
|
||||
h.setAttribute('role', 'img');
|
||||
li.prepend(h);
|
||||
}
|
||||
}
|
||||
|
||||
let haendeSchluessel = '';
|
||||
function haendeZeichnen() {
|
||||
const zeile = $('cockpit-backstage');
|
||||
if (!zeile) return;
|
||||
let f = $('bs-haende');
|
||||
if (!f) {
|
||||
f = el('div', 'bs-haende');
|
||||
f.id = 'bs-haende';
|
||||
f.setAttribute('role', 'group');
|
||||
f.setAttribute('aria-label', 'Erhobene Hände');
|
||||
const verwalten = $('cockpit-gaeste');
|
||||
if (verwalten) verwalten.before(f); else zeile.append(f);
|
||||
}
|
||||
const haende = stand?.rolle === 'regie' ? (stand.gaeste || []).filter((g) => g.hand)
|
||||
.sort((a, b) => (b.hand_seit_sek || 0) - (a.hand_seit_sek || 0)) : [];
|
||||
const schluessel = haende.map((g) => `${g.id}:${g.name}`).join('|');
|
||||
f.hidden = !haende.length;
|
||||
/* NUR BEI EINER ÄNDERUNG NEU BAUEN – ein Knopf, der zwischen Drücken
|
||||
und Loslassen ersetzt wird, verliert den Klick. */
|
||||
if (schluessel === haendeSchluessel) return;
|
||||
haendeSchluessel = schluessel;
|
||||
f.textContent = '';
|
||||
for (const g of haende) {
|
||||
const k = el('button', 'btn btn-klein btn-sekundaer bs-runter');
|
||||
k.type = 'button';
|
||||
k.dataset.gast = String(g.id);
|
||||
k.setAttribute('aria-label', `Hand von ${g.name} herunternehmen`);
|
||||
const z = el('span', '', '✋');
|
||||
z.setAttribute('aria-hidden', 'true');
|
||||
k.append(z, document.createTextNode(` ${g.name} · runter`));
|
||||
k.addEventListener('click', async () => {
|
||||
k.disabled = true;
|
||||
try { await senden(`/hand/${g.id}/runter`); } catch { /* holen zeigt den Stand */ }
|
||||
await holen();
|
||||
});
|
||||
f.append(k);
|
||||
}
|
||||
}
|
||||
|
||||
/* ---- Was bei der Regie wirklich ankommt -------------------------
|
||||
Bild = eine lebende Videospur, die gerade Bilder liefert (`muted`
|
||||
heißt bei einer fremden Spur: es kommt nichts an) und eine Größe hat.
|
||||
Ton = eine lebende, nicht stumme Tonspur. Gemeldet wird nur, was sich
|
||||
geändert hat, sonst alle 8 s als Lebenszeichen. */
|
||||
const MELDE_TAKT = 3000;
|
||||
const LEBENSZEICHEN = 8000;
|
||||
let gemeldet = '';
|
||||
let gemeldetUm = 0;
|
||||
function empfangMessen() {
|
||||
return (lage?.gaeste || []).map((g) => {
|
||||
const fenster = [...document.querySelectorAll(`.kamera[data-wer="${Number(g.id)}"] video`)];
|
||||
let bild = false;
|
||||
let ton = false;
|
||||
for (const v of fenster) {
|
||||
const s = v.srcObject;
|
||||
const vt = s?.getVideoTracks?.().find((t) => t.readyState === 'live');
|
||||
const at = s?.getAudioTracks?.().find((t) => t.readyState === 'live');
|
||||
/* Kamera aus heißt: Es kommen schwarze Bilder an – gemessen wäre das
|
||||
„Bild da“. Ob die Kamera aus ist, sagt der Stand (`kamera_aus`). */
|
||||
if (vt && !vt.muted && v.videoWidth > 0 && v.readyState >= 2 && !g.kamera_aus) bild = true;
|
||||
if (at && !at.muted && at.enabled) ton = true;
|
||||
}
|
||||
return { id: g.id, bild, ton };
|
||||
});
|
||||
}
|
||||
async function empfangMelden(sofort) {
|
||||
if (!lage?.ich?.host || lage.stand === 'zu' || !(lage.gaeste || []).length) return null;
|
||||
const rumpf = { sichtbar: document.visibilityState === 'visible', gaeste: empfangMessen() };
|
||||
const text = JSON.stringify(rumpf);
|
||||
if (!sofort && text === gemeldet && Date.now() - gemeldetUm < LEBENSZEICHEN) return null;
|
||||
gemeldet = text;
|
||||
gemeldetUm = Date.now();
|
||||
try {
|
||||
const a = await fetch(`${API}/empfang`, {
|
||||
method: 'POST', credentials: 'same-origin',
|
||||
headers: { 'Content-Type': 'application/json' }, body: text,
|
||||
});
|
||||
await a.arrayBuffer().catch(() => { });
|
||||
return a.ok ? rumpf : null;
|
||||
} catch { return null; }
|
||||
}
|
||||
|
||||
/* ================================================= Zeichnen + Takt */
|
||||
function zeichnen() {
|
||||
karteZeichnen();
|
||||
haendeZeichnen();
|
||||
window.Cockpit?.backstageZeichnen?.();
|
||||
window.dispatchEvent(new CustomEvent('backstage:stand', { detail: stand }));
|
||||
}
|
||||
|
||||
let gaesteSchluessel = '';
|
||||
function lageAnwenden(l) {
|
||||
const war = lage;
|
||||
lage = l;
|
||||
vorraumSatz();
|
||||
const schl = `${l?.ich?.id}|${l?.ich?.host}|${l?.ich?.gast}|${!!l?.ich?.einladung}|${(l?.gaeste || []).map((g) => g.id).join(',')}|${l?.stand}`;
|
||||
if (schl !== gaesteSchluessel) { gaesteSchluessel = schl; holen(); }
|
||||
if (l?.ich?.host && (war?.gaeste || []).length !== (l.gaeste || []).length) empfangMelden(true);
|
||||
}
|
||||
function relevant() { return !!(lage?.ich?.host || lage?.ich?.gast || lage?.ich?.einladung || stand?.rolle === 'gast'); }
|
||||
|
||||
window.addEventListener('saal:lage', (e) => lageAnwenden(e.detail));
|
||||
window.addEventListener('saal:strom', (e) => {
|
||||
const w = e.detail?.was;
|
||||
if (w === 'backstage' || w === 'gaeste' || w === 'du_bist_gast' || w === 'du_bist_kein_gast' || w === 'einladung_beantwortet') holen();
|
||||
});
|
||||
document.addEventListener('visibilitychange', () => { empfangMelden(true); if (document.visibilityState === 'visible' && relevant()) holen(); });
|
||||
setInterval(() => { empfangMelden(false); }, MELDE_TAKT);
|
||||
setInterval(() => { if (relevant() && document.visibilityState === 'visible') holen(); }, 10_000);
|
||||
|
||||
window.Backstage = {
|
||||
schmuecken, holen, empfangMessen, empfangMelden,
|
||||
stand: () => stand,
|
||||
haende: () => (stand?.rolle === 'regie' ? (stand.gaeste || []).filter((g) => g.hand).map((g) => g.name) : []),
|
||||
bereite: () => (stand?.rolle === 'regie' ? (stand.gaeste || []).filter((g) => g.bereit).map((g) => g.name) : []),
|
||||
};
|
||||
})();
|
||||
@@ -230,7 +230,7 @@
|
||||
const liste = $('cockpit-backstage-liste');
|
||||
if (!zeile || !lage) return;
|
||||
const leute = [
|
||||
...(lage.gaeste || []).map((g) => ({ name: g.name, wort: g.stumm ? 'auf der Bühne · stumm' : 'auf der Bühne', art: 'dabei' })),
|
||||
...(lage.gaeste || []).map((g) => ({ id: g.id, name: g.name, wort: g.stumm ? 'auf der Bühne · stumm' : 'auf der Bühne', art: 'dabei' })),
|
||||
...(lage.einladungen || []).map((e) => ({
|
||||
name: e.name,
|
||||
wort: e.stand === 'gefragt' ? `gefragt · ${Math.floor(e.noch_sek / 60)}:${String(e.noch_sek % 60).padStart(2, '0')}`
|
||||
@@ -244,6 +244,9 @@
|
||||
const li = el('li', 'cockpit-backstage__person');
|
||||
li.dataset.art = p.art;
|
||||
li.append(el('strong', '', p.name), el('span', '', p.wort));
|
||||
/* backstage.js ergänzt „bereit ✓“ und ✋ (nur Text, keine Knöpfe –
|
||||
die Liste wird alle 2 s neu gebaut). */
|
||||
window.Backstage?.schmuecken?.(li, p);
|
||||
liste.append(li);
|
||||
}
|
||||
}
|
||||
@@ -373,5 +376,5 @@
|
||||
}
|
||||
|
||||
window.addEventListener('saal:lage', (e) => lageAnwenden(e.detail));
|
||||
window.Cockpit = { moment, technikMelden, lage: () => lage, proben: () => proben.slice() };
|
||||
window.Cockpit = { moment, technikMelden, backstageZeichnen, lage: () => lage, proben: () => proben.slice() };
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user