From 444292757c1befb97ae80e0a762c209ca9c579ee Mon Sep 17 00:00:00 2001 From: Dogfather Date: Tue, 27 Oct 2026 22:06:55 +0100 Subject: [PATCH] Ziel-Karte am Handy: schlanke Zeile, weicht Ton-Knopf aus, quer klein Co-Authored-By: Claude Opus 5.5 --- server/mess-zocken.mjs | 82 +++++++++++++++++++++++---- workspace/anleitung.html | 28 ++++----- workspace/anruf-probe.html | 10 ++-- workspace/assets/css/serverziel.css | 22 +++++--- workspace/assets/js/serverziel.js | 88 ++++++++++++++++++++--------- workspace/aufgaben.html | 38 ++++++------- workspace/automation.html | 32 +++++------ workspace/befinden.html | 34 +++++------ workspace/bereich.html | 48 ++++++++-------- workspace/bewerben.html | 38 ++++++------- workspace/bewerbungen.html | 36 ++++++------ workspace/buehne.html | 6 +- workspace/calls.html | 34 +++++------ workspace/chat.html | 44 +++++++-------- workspace/content.html | 34 +++++------ workspace/crew-index.html | 12 ++-- workspace/dateien.html | 34 +++++------ workspace/entwicklung.html | 36 ++++++------ workspace/hilfe.html | 30 +++++----- workspace/index.html | 10 ++-- workspace/kalender.html | 34 +++++------ workspace/leistung.html | 32 +++++------ workspace/manager-ziele.html | 30 +++++----- workspace/material.html | 32 +++++------ workspace/notizen.html | 28 ++++----- workspace/personen.html | 32 +++++------ workspace/profil.html | 36 ++++++------ workspace/reaktion-foyer.html | 34 +++++------ workspace/reaktion.html | 54 +++++++++--------- workspace/rechte.html | 34 +++++------ workspace/report.html | 36 ++++++------ workspace/scouting.html | 32 +++++------ workspace/start.html | 38 ++++++------- workspace/startcheck.html | 34 +++++------ workspace/steckbrief.html | 36 ++++++------ workspace/support.html | 32 +++++------ workspace/tafel.html | 10 ++-- workspace/talente.html | 36 ++++++------ workspace/team.html | 32 +++++------ workspace/teamlage.html | 34 +++++------ workspace/teilen.html | 30 +++++----- workspace/treff-moderation.html | 32 +++++------ workspace/treff-regeln.html | 32 +++++------ workspace/uebersicht.html | 32 +++++------ workspace/unsere-seiten.html | 30 +++++----- workspace/unterstuetzen.html | 32 +++++------ workspace/werdegang.html | 32 +++++------ workspace/willkommen.html | 2 +- workspace/wissen.html | 34 +++++------ 49 files changed, 860 insertions(+), 758 deletions(-) diff --git a/server/mess-zocken.mjs b/server/mess-zocken.mjs index 930bd541..93dee4ec 100644 --- a/server/mess-zocken.mjs +++ b/server/mess-zocken.mjs @@ -206,6 +206,11 @@ const BEOBACHTER = ` gar nicht an die Tonsender, und die Wache bliebe ungeprueft. (Hier KEINE Backticks: Dieser Text steht in einem Template-Literal, und ein Backtick wuerde es beenden.) */ +/* NUR LEBENDE LEITUNGEN ZAEHLEN (27.10.2026). Jede Abfrage unten + filtert geschlossene Leitungen heraus: Seit die Handy-Proben der + Ziel-Karte als Zuschauer kommen und gehen, stand an erster Stelle + eine TOTE Leitung -- und vier Messungen lasen deren leere Parameter + als „(keine)". Gemessen wurde dann der Pruefaufbau, nicht die Seite. */ window.__pcs = []; const __PC = RTCPeerConnection; window.RTCPeerConnection = function (...a) { @@ -611,6 +616,63 @@ ok(kam, "beim Zuschauer kommt ein Bild an (videoWidth > 0)"); ok(m.gedraengt === "nein", `${wer}: das Spielbild zaehlt nicht als Hindernis (gedraengt=${m.gedraengt})`); } await gast.seite.screenshot({ path: join(HIER, "mess-zocken-ziel.png") }); + + /* ==== AM HANDY: HOCH UND QUER (27.10.2026) ========================== + Filipe: „am handy muss auch alles perfekt sein". Zwei Lagen, weil + ein Zockabend am Handy oft quer geschaut wird. Gefragt wird nicht + nur „liegt sie obenauf", sondern auch: ganz im Bild, auf keinem + anderen Bedienelement, und keine Schrift unter 11 Punkten. */ + for (const [lage, b, h] of [["hoch", 390, 844], ["schmal", 360, 780], ["quer", 844, 390]]) { + const hy = await alsWer("gast", false, b, h); + await hy.seite.goto(`${BASIS}/workspace/reaktion.html`, { waitUntil: "domcontentloaded" }); + const da = await warteBis(() => hy.seite.evaluate(() => + !!document.querySelector('.sziel[data-an="ja"] .szk[data-sichtbar="ja"]') + && Number(getComputedStyle(document.querySelector(".sziel")).opacity) > 0.95 + && (document.querySelector("#kameras .kamera video")?.videoWidth || 0) > 0), 20_000); + ok(da, `Handy ${lage}: Karte und Spielbild kommen an`); + const m = await obenauf(hy.seite); + const extra = await hy.seite.evaluate(() => { + const karte = document.querySelector('.sziel .szk[data-sichtbar="ja"]'); + if (!karte) return null; + const r = karte.getBoundingClientRect(); + const imFenster = r.left >= 0 && r.top >= 0 && r.right <= innerWidth && r.bottom <= innerHeight; + const klein = karte.closest(".sziel").dataset.klein; + let kleinste = 99; + for (const e of karte.querySelectorAll("*")) { + if (!e.childNodes.length || ![...e.childNodes].some((n) => n.nodeType === 3 && n.textContent.trim())) continue; + const c = getComputedStyle(e); + if (c.display === "none" || c.visibility === "hidden") continue; + const er = e.getBoundingClientRect(); + if (er.width < 1 || er.height < 1) continue; + kleinste = Math.min(kleinste, parseFloat(c.fontSize)); + } + const stoert = []; + for (const sel of ["#schild", "#ton-an", '.kino[data-art="spiel"] #kameras .kamera[data-host="nein"]', + ".werbung__band", ".werbung__ecke"]) { + for (const e of document.querySelectorAll(sel)) { + const c = getComputedStyle(e); + const er = e.getBoundingClientRect(); + if (er.width < 2 || er.height < 2 || c.visibility === "hidden" || Number(c.opacity) < 0.05) continue; + if (!(r.right <= er.left || r.left >= er.right || r.bottom <= er.top || r.top >= er.bottom)) stoert.push(sel); + } + } + const lw = document.getElementById("leinwand").getBoundingClientRect(); + return { imFenster, klein, kleinste, stoert, + anteil: Math.round((r.width * r.height) / Math.max(1, lw.width * lw.height) * 100), + karte: [Math.round(r.left), Math.round(r.top), Math.round(r.width), Math.round(r.height)], + leinwand: [Math.round(lw.left), Math.round(lw.top), Math.round(lw.width), Math.round(lw.height)] }; + }); + console.log(` Handy ${lage}:`, JSON.stringify({ ...m, ...extra })); + ok(m.karte && m.art === "spiel" && m.oben, `Handy ${lage}: die Karte liegt OBENAUF (${(m.wer || []).join(" | ")})`); + ok(m.drin && !!extra?.imFenster, `Handy ${lage}: ganz in der Leinwand und ganz im Fenster`); + ok(!!extra && extra.stoert.length === 0, `Handy ${lage}: liegt auf keinem Bedienelement (${extra?.stoert.join(", ") || "frei"})`); + ok(!!extra && extra.kleinste >= 11, `Handy ${lage}: kleinste Schrift ${extra?.kleinste} px (mindestens 11)`); + /* Die Karte darf das Spiel nicht zudecken: hoechstens ein Viertel + der Leinwand. */ + ok(!!extra && extra.anteil <= 25, `Handy ${lage}: deckt ${extra?.anteil} % der Leinwand (hoechstens 25)`); + await hy.seite.screenshot({ path: join(HIER, `mess-zocken-ziel-handy-${lage}.png`) }); + await hy.kontext.close(); + } /* Wieder aus -- die Messungen danach sollen das Spielbild so sehen wie vorher. */ const aus = await roh("/workspace/api/serverziele/anzeige", { method: "POST", keks: k.admin, @@ -790,7 +852,7 @@ ok(kam, "beim Zuschauer kommt ein Bild an (videoWidth > 0)"); Begleitsatz einer Messung ist gefaehrlicher als keine Messung (Hausregel 21.10.2026). */ const luecken = await gast.seite.evaluate(async () => { - for (const pc of (window.__pcs || [])) { + for (const pc of (window.__pcs || []).filter((pc) => pc.signalingState !== "closed")) { const stat = await pc.getStats(); let w = null; stat.forEach((z) => { @@ -825,7 +887,7 @@ ok(kam, "beim Zuschauer kommt ein Bild an (videoWidth > 0)"); spur = (window.__zockStrom ? window.__zockStrom.getAudioTracks()[0] : null) || null; } else { - for (const pc of (window.__pcs || [])) { + for (const pc of (window.__pcs || []).filter((pc) => pc.signalingState !== "closed")) { for (const s of pc.getSenders()) { if (s.track && s.track.kind === "audio") spur = s.track; } @@ -1046,7 +1108,7 @@ async function bildFenster(seite, sekunden) { return seite.evaluate(async (sek) => { const lies = async () => { const je = []; - for (const pc of (window.__pcs || [])) { + for (const pc of (window.__pcs || []).filter((pc) => pc.signalingState !== "closed")) { const r = { hinein: 0, kodiert: 0, not: 0, da: false }; const stat = await pc.getStats(); stat.forEach((z) => { @@ -1170,7 +1232,7 @@ const fensterText = (f) => `${f.kodiert.toFixed(1)} von ${f.hinein.toFixed(1)} B Trennung entscheidet, wen man fragen muss -- die Quelle oder uns (Lehre vom 16.10.2026). */ let hinein = 0; - for (const pc of (window.__pcs || [])) { + for (const pc of (window.__pcs || []).filter((pc) => pc.signalingState !== "closed")) { const stat = await pc.getStats(); stat.forEach((z) => { if (z.type === "media-source" && z.kind === "video") { @@ -1253,7 +1315,7 @@ melde("=== Die Schaerfe: Aufloesung, Codec, Kontrollbild ==="); steht hier VP8. Gefragt wird deshalb die Verbindung, nicht unsere Absicht. */ const ausgehandelt = await host.seite.evaluate(async () => { - for (const pc of (window.__pcs || [])) { + for (const pc of (window.__pcs || []).filter((pc) => pc.signalingState !== "closed")) { const stat = await pc.getStats(); const codecs = new Map(); stat.forEach((z) => { if (z.type === "codec") codecs.set(z.id, z); }); @@ -1278,7 +1340,7 @@ melde("=== Die Schaerfe: Aufloesung, Codec, Kontrollbild ==="); laeuft NUR bei `maintain-framerate` und `balanced`. Genau das war die Ursache fuer Filipes verschwommenes Bild. */ const vorzug = await host.seite.evaluate(() => { - for (const pc of (window.__pcs || [])) { + for (const pc of (window.__pcs || []).filter((pc) => pc.signalingState !== "closed")) { for (const s of pc.getSenders()) { if (s.track && s.track.kind === "video") { return s.getParameters().degradationPreference || "(keine)"; @@ -1292,7 +1354,7 @@ melde("=== Die Schaerfe: Aufloesung, Codec, Kontrollbild ==="); /* ---- Der Deckel ---- */ const deckel = await host.seite.evaluate(() => { - for (const pc of (window.__pcs || [])) { + for (const pc of (window.__pcs || []).filter((pc) => pc.signalingState !== "closed")) { for (const s of pc.getSenders()) { if (s.track && s.track.kind === "video") { const e = s.getParameters().encodings || []; @@ -1409,7 +1471,7 @@ melde("=== Die Schaerfe: Aufloesung, Codec, Kontrollbild ==="); einen Knopf, der erst beim naechsten Zuschauer gilt. */ await host.seite.click('#guetewahl [data-guete="fluessig"]'); const nachher = await warteBis(() => host.seite.evaluate(() => { - for (const pc of (window.__pcs || [])) { + for (const pc of (window.__pcs || []).filter((pc) => pc.signalingState !== "closed")) { for (const s of pc.getSenders()) { if (s.track && s.track.kind === "video") { return s.getParameters().degradationPreference === "maintain-framerate"; @@ -1623,7 +1685,7 @@ melde("=== Die Tonwache: schweigt im Normalfall, spricht im Ernstfall ==="); etwas zu sagen. */ const sabotiert = await host.seite.evaluate(() => { let n = 0; - for (const pc of (window.__pcs || [])) { + for (const pc of (window.__pcs || []).filter((pc) => pc.signalingState !== "closed")) { for (const s of pc.getSenders()) { if (s.track && s.track.kind === "audio") { s.track.enabled = false; n++; } } @@ -1648,7 +1710,7 @@ melde("=== Die Tonwache: schweigt im Normalfall, spricht im Ernstfall ==="); Eine Warnung, die stehen bleibt, nachdem der Fehler weg ist, ist dieselbe Sorte Schaden wie eine, die immer kommt. */ await host.seite.evaluate(() => { - for (const pc of (window.__pcs || [])) { + for (const pc of (window.__pcs || []).filter((pc) => pc.signalingState !== "closed")) { for (const s of pc.getSenders()) { if (s.track && s.track.kind === "audio") s.track.enabled = true; } diff --git a/workspace/anleitung.html b/workspace/anleitung.html index e9b4b28b..426b878c 100644 --- a/workspace/anleitung.html +++ b/workspace/anleitung.html @@ -7,17 +7,17 @@ - - - - - + + + + + - - + + @@ -289,16 +289,16 @@ Und anleitung.js braucht es doppelt: Symbol, Farbe, Name und Adresse jeder Karte kommen von dort, nicht vom Server. --> - + - - - - - - + + + + + + diff --git a/workspace/anruf-probe.html b/workspace/anruf-probe.html index 32832a22..22aaf849 100644 --- a/workspace/anruf-probe.html +++ b/workspace/anruf-probe.html @@ -16,8 +16,8 @@ verdeckt. Gefunden hat es pruef-struktur. Richtig sind `gate.css` (die Farbwerte des Hauses) und `haus.css`. --> - - + + - +