diff --git a/server/pruef-saal-handy.mjs b/server/pruef-saal-handy.mjs index d29ed07c..35499f62 100644 --- a/server/pruef-saal-handy.mjs +++ b/server/pruef-saal-handy.mjs @@ -229,6 +229,24 @@ melde("\n=== Handy hochkant (390 × 844) ==="); `statt des Schilds: „LIVE“ mit rotem Punkt im Chat-Kopf, ${m.chatZahl} dabei (Schild sagte „${m.schildZahl}“)`); ok(m.chatH >= 250, `der Chat behält Platz (${m.chatH} px)`); ok(m.breit, "nichts läuft seitlich hinaus"); + /* HOCHKANT AUCH FREI (03.11.2026, Filipe: „falls das noch nicht + perfektioniert ist mach es“): Kamera-Kacheln und „Ton einschalten“ + stehen in der Info-Zeile unter dem Video – nicht auf dem Player – und + decken dort weder Ziel-Karte noch Band zu. */ + const hochZeile = await s.seite.evaluate(() => { + const r = (e) => e && e.getBoundingClientRect(); + const deckt = (a, b) => !!a && !!b && b.width > 2 && Math.min(a.right, b.right) - Math.max(a.left, b.left) > 2 && Math.min(a.bottom, b.bottom) - Math.max(a.top, b.top) > 2; + const ziel = r(document.querySelector("#saalinfo .szk[data-sichtbar='ja']")); + const band = r(document.querySelector("#saalinfo .werbung__band")); + const kams = [...document.querySelectorAll("#kameras .kamera")].map(r).filter((x) => x && x.width > 2); + return { n: kams.length, kleinste: kams.length ? Math.round(Math.min(...kams.map((k) => k.height))) : 0, + decktInfo: kams.filter((k) => deckt(k, ziel) || deckt(k, band)).length, + imFenster: kams.every((k) => k.left >= 0 && k.right <= innerWidth + 1) }; + }); + ok(m.kamR.length > 0 && m.kamAufVideo === 0 && !m.tonAufVideo, + `hochkant: Kamera-Kacheln und „Ton einschalten“ liegen nicht auf dem YouTube-Bild (${m.kamAufVideo} darauf, Ton darauf: ${m.tonAufVideo})`); + ok(hochZeile.n > 0 && hochZeile.decktInfo === 0 && hochZeile.imFenster && hochZeile.kleinste >= 36, + `hochkant: die Kacheln stehen in der Info-Zeile, ganz im Bild, mindestens 36 px hoch, ohne Karte oder Band zu decken (${JSON.stringify(hochZeile)})`); ok(s.konsole.length === 0, `keine Fehler in der Konsole (${s.konsole.slice(0, 3).join(" | ") || "keine"})`); await s.seite.screenshot({ path: join(HIER, "pruef-saal-handy-hoch.png") }); /* DREHEN: quer wandert alles zurück über das Bild — ohne Neuladen. */ diff --git a/workspace/anleitung.html b/workspace/anleitung.html index 233550d1..f34c9c45 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. --> - + - - - - - - + + + + + +