Files
mmintel 1bc282e585 Twitch-Lehr-Sendung aufs main: fertige, baubare Schicht (Python + Swift), ohne Engine-niveau-WIP
Die Sendung aus dem Cockpit (Plan 2026-11-06 twitch-sendung): Buehnenbild, Namensschilder, OBS-Szenen
als Plan, Chat (Gruss, Moderation nach Entscheid, Pokerfragen), Twitch-Anmeldung, Cockpit-Bereich.
- Python: sendung/ (twitch, obs, moderator, chat, einblendung, fragen, gruss, schilder, wsklient),
  betrieb/ (lehrer, sprecher, sprachmodell, anbieter, rueckblick, umschreiber), sicht/ (sendung_knoepfe,
  anbieter_knoepfe, aufsicht, sendung_seiten, server, ws). Alle 17 Sendung-Specs + die zwei Knopf-Specs gruen.
- Swift: Cockpit-Modelle Anbieter/Sendung, Editoren, SendungSpec. Mac baut, 152 Pruefung-Tests gruen.
- Ohne die Engine-niveau-Arbeit (src/*.rs, benchmarks) - die bleibt auf ablage.

Offen (Owner): OBS installieren, Twitch-Geraetecode-Anmeldung, Feinmessung der Namensstellen am Streambild.
Bekannt (vorbestehend, nicht aus dieser Arbeit): tests/cfr_multi.rs Frozen-Chart-Test rot seit dem
Abnahme-Stand - die eingefrorene src/preflop/generated_charts_multi.rs weicht vom Generator ab.
2026-11-06 15:32:18 +01:00

76 lines
3.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Sendung – Pause</title>
<!-- Pausenbild der Sendung (plans/2026-11-06_00-20_twitch-sendung): durchsichtig ueber dem Hintergrund in der
Szene "Pause". "Kurze Pause", die Uhr bis zum Ende der Pause des Zeitplans und ein Tipp des Lehrers, der
wechselt - alles aus /api/sendung (sicht/sendung_seiten.py). Texte nur als Text. -->
<style>
:root { --tinte: #eef6f4; --leise: #a7c7c0; --tuerkis: #2fc6ad; }
html, body { margin: 0; width: 1920px; height: 1080px; overflow: hidden; background: transparent; }
body { display: grid; place-items: center; font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif; color: var(--tinte); }
.karte {
width: 1040px; padding: 64px 80px 56px; box-sizing: border-box; text-align: center; border-radius: 36px;
background: linear-gradient(180deg, rgba(10, 34, 36, 0.86), rgba(5, 16, 18, 0.9));
border: 1px solid rgba(47, 198, 173, 0.28); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.tasse { font-size: 72px; line-height: 1; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)); }
h1 { margin: 22px 0 6px; font-size: 76px; font-weight: 750; letter-spacing: -0.01em; }
.uhr { font-size: 112px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tuerkis); line-height: 1.1; }
.unter { margin-top: 8px; font-size: 28px; color: var(--leise); }
.tipp {
margin-top: 44px; padding: 22px 30px; border-radius: 22px; background: rgba(255, 255, 255, 0.05);
font-size: 27px; line-height: 1.45; text-align: left; transition: opacity 0.6s ease;
}
.tipp b { color: var(--tuerkis); font-weight: 650; margin-right: 8px; }
.still { opacity: 0; }
</style>
</head>
<body>
<div class="karte">
<div class="tasse">☕</div>
<h1>Kurze Pause</h1>
<div class="uhr" id="uhr"></div>
<div class="unter" id="unter">Gleich geht's weiter – hier spielt ein Programm, nur mit Spielgeld.</div>
<div class="tipp still" id="tipp"><b>Tipp</b><span></span></div>
</div>
<script>
const TAKT_MS = 1000;
const uhrEl = document.getElementById("uhr");
const tippEl = document.getElementById("tipp");
let pauseBis = null;
function uhrStellen() {
if (!pauseBis) { uhrEl.textContent = ""; return; }
const rest = Math.max(0, Math.round(pauseBis - Date.now() / 1000));
uhrEl.textContent = `noch ${Math.floor(rest / 60)}:${String(rest % 60).padStart(2, "0")}`;
}
function tippZeigen(text) {
const span = tippEl.lastElementChild;
if (!text || span.textContent === text) { tippEl.classList.toggle("still", !text); return; }
tippEl.classList.add("still");
setTimeout(() => { span.textContent = text; tippEl.classList.remove("still"); }, 600);
}
async function holen() {
try {
const antwort = await fetch("/api/sendung", { cache: "no-store" });
if (antwort.ok) {
const d = await antwort.json();
pauseBis = d.pause ? d.pause_bis : null;
tippZeigen(d.tipp);
}
} catch (_) {
// Server gerade weg: Uhr und Tipp bleiben stehen
} finally {
uhrStellen();
setTimeout(holen, TAKT_MS);
}
}
holen();
</script>
</body>
</html>