modified: app.py
new file: templates/buzzer_settings.html modified: templates/playerselect.html modified: templates/quiz_buzzer.html new file: templates/quiz_buzzer_multiplayer.html
This commit is contained in:
@@ -216,9 +216,9 @@
|
||||
let buzzTimer = null;
|
||||
let startTime = null;
|
||||
let buzzTime = null;
|
||||
let maxPoints = {{ max_points | default(1000) }};
|
||||
let gracePeriod = {{ grace_period | default(5) }}; // Sekunden
|
||||
let decayRate = {{ decay_rate | default(50) }}; // Punkte pro Sekunde nach Grace Period
|
||||
let maxPoints = parseInt(localStorage.getItem('buzzer_max_points')) || {{ max_points | default(1000) }};
|
||||
let gracePeriod = parseInt(localStorage.getItem('buzzer_grace_period')) || {{ grace_period | default(5) }}; // Sekunden
|
||||
let decayRate = parseInt(localStorage.getItem('buzzer_decay_rate')) || {{ decay_rate | default(50) }}; // Punkte pro Sekunde nach Grace Period
|
||||
let hasBuzzed = false;
|
||||
let gameStarted = false;
|
||||
|
||||
@@ -503,6 +503,12 @@
|
||||
|
||||
window.onload = function() {
|
||||
document.getElementById('startPosition').value = getOption('startPosition', 'start');
|
||||
|
||||
// Lade Einstellungen und zeige initial an
|
||||
maxPoints = parseInt(localStorage.getItem('buzzer_max_points')) || 1000;
|
||||
gracePeriod = parseInt(localStorage.getItem('buzzer_grace_period')) || 5;
|
||||
decayRate = parseInt(localStorage.getItem('buzzer_decay_rate')) || 50;
|
||||
document.getElementById('pointsDisplay').textContent = maxPoints + ' Punkte';
|
||||
};
|
||||
</script>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
Reference in New Issue
Block a user