Files
django5-genial-daneben-archiv/quiz/templates/quiz/spielen_runde.html
T
H4nSoloandClaude Opus 5.5 03085f9062 Neues Testmodul Quiz: Quiz spielen und Streamer-Modus mit OBS-Overlay
- neue App quiz unter /quiz/, Menüpunkt in der Navigation
- Sparte 1 (öffentlich): Fragen als Bauchbinde, Auflösung mit
  Gelöst/Nicht gelöst, Countdown; Zufall (Anzahl, Jahr, Kategorie)
  oder alle Fragen einer echten Folge
- Sparte 2 (nur Admins): Einstellungen mit Panel (1-8 Namen),
  Moderator-Steuerung (Countdown inkl. Pause, Bauchbinden, Löser-
  Auswahl, Tastenkürzel, Live-Vorschau), Auswertung pro Person
- OBS-Overlay über geheimen Token, transparenter Hintergrund, fragt den
  Zustand jede Sekunde ab, Antwort erst nach Einblenden
- Migration quiz 0001 (unabhängig von gd 0011), 19 neue Tests (70)
- README und Changelog ergänzt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 22:05:38 +02:00

68 lines
3.2 KiB
HTML
Raw 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.
{% extends 'base.html' %}
{% load static %}
{% block content %}
<link rel="stylesheet" href="{% static 'vendor/montserrat/montserrat.css' %}">
<link rel="stylesheet" href="{% static 'quiz/quiz.css' %}">
<nav aria-label="breadcrumb">
<ol class="breadcrumb mb-2">
<li class="breadcrumb-item"><a href="{% url 'quiz:start' %}">Quiz</a></li>
<li class="breadcrumb-item"><a href="{% url 'quiz:spielen' %}">Quiz spielen</a></li>
<li class="breadcrumb-item active">Runde</li>
</ol>
</nav>
<div class="quiz-buehne mb-3" id="quiz-buehne">
<img src="{% static 'quiz/logo.png' %}" alt="Genial daneben" class="quiz-logo">
<div class="quiz-countdown" id="quiz-countdown" role="timer" aria-label="Countdown">--:--</div>
<div class="quiz-fortschritt" id="quiz-fortschritt"></div>
<div class="quiz-bildschirm" id="quiz-start">
<div>{{ fragen|length }} Fragen · {{ countdown_minuten }} Minuten</div>
<button type="button" class="quiz-knopf quiz-knopf--start" id="quiz-start-knopf">
<i class="bi bi-play-fill"></i> Runde starten
</button>
</div>
<div class="quiz-bildschirm" id="quiz-ende" hidden>
<div>Runde beendet – danke fürs Mitraten!</div>
<div class="d-flex gap-2">
<a href="" class="quiz-knopf quiz-knopf--start text-decoration-none">Neue Runde</a>
<a href="{% url 'quiz:spielen' %}" class="quiz-knopf quiz-knopf--aufloesen text-decoration-none">Einstellungen</a>
</div>
</div>
<div class="quiz-bauchbinden" aria-live="polite">
<div class="quiz-bauchbinde quiz-bauchbinde--frage" id="quiz-frage">
<span class="quiz-bauchbinde-label" id="quiz-frage-label">Frage</span>
<span class="quiz-bauchbinde-text"></span>
</div>
<div class="quiz-antwort-zeile">
<div class="quiz-bauchbinde quiz-bauchbinde--antwort" id="quiz-antwort">
<span class="quiz-bauchbinde-label">Auflösung</span>
<span class="quiz-bauchbinde-text"></span>
</div>
<div class="quiz-bewertung" id="quiz-aufloesen-feld">
<button type="button" class="quiz-knopf quiz-knopf--aufloesen" id="quiz-aufloesen" hidden>Auflösen</button>
</div>
<div class="quiz-bewertung" id="quiz-bewertung" hidden>
<button type="button" class="quiz-knopf quiz-knopf--geloest" id="quiz-geloest">✔ Gelöst</button>
<button type="button" class="quiz-knopf quiz-knopf--nicht" id="quiz-nicht-geloest">✘ Nicht gelöst</button>
</div>
</div>
</div>
</div>
<div class="d-flex flex-wrap justify-content-between align-items-center gap-2 small text-muted">
<span id="quiz-herkunft"></span>
<span>Tasten: <kbd>Leertaste</kbd> Auflösen · <kbd>J</kbd> Gelöst · <kbd>N</kbd> Nicht gelöst · <kbd>P</kbd> Pause</span>
<button type="button" class="btn btn-sm btn-outline-secondary" id="quiz-pause" disabled>Countdown pausieren</button>
</div>
{{ fragen|json_script:"quiz-fragen" }}
{{ countdown_dauer|json_script:"quiz-countdown-dauer" }}
<script src="{% static 'quiz/buehne.js' %}"></script>
<script src="{% static 'quiz/spielen.js' %}"></script>
{% endblock %}