Remove reset buzzer button — Open Round now resets and becomes Pause Round

This commit is contained in:
2026-04-08 19:05:36 -05:00
parent e318a2c058
commit 462979e6f7
2 changed files with 12 additions and 12 deletions

View File

@@ -186,7 +186,6 @@
<div class="side-btn-group"> <div class="side-btn-group">
<button class="btn btn-g btn-full" id="mod-round-btn" onclick="toggleRound()">▶ OPEN ROUND</button> <button class="btn btn-g btn-full" id="mod-round-btn" onclick="toggleRound()">▶ OPEN ROUND</button>
<button class="btn btn-ghost btn-full" id="mod-resume-btn" style="display:none;" onclick="resumeRound()">▶ RESUME ROUND</button> <button class="btn btn-ghost btn-full" id="mod-resume-btn" style="display:none;" onclick="resumeRound()">▶ RESUME ROUND</button>
<button class="btn btn-yellow btn-full" onclick="resetBuzzer()">↺ RESET BUZZER</button>
</div> </div>
</div> </div>

View File

@@ -342,11 +342,12 @@ function broadcastTimerToPlayers(sec,running){
// MOD ROUND CONTROL // MOD ROUND CONTROL
// ══════════════════════════════════════════════════════ // ══════════════════════════════════════════════════════
function toggleRound(){ function toggleRound(){
if(room.buzzerState.roundOpen){ // Reset buzzer and open round
ws_send({type:'close_round'}); ws_send({type:'open_round'});
} else { // Change button to pause state
ws_send({type:'open_round'}); const btn=document.getElementById('mod-round-btn');
} btn.innerHTML='■ PAUSE ROUND';
btn.className='btn btn-red btn-full';
} }
function resumeRound(){ function resumeRound(){
@@ -354,16 +355,16 @@ function resumeRound(){
} }
function renderRoundButtons(){ function renderRoundButtons(){
const openBtn=document.getElementById('mod-round-btn'); const btn=document.getElementById('mod-round-btn');
const resumeBtn=document.getElementById('mod-resume-btn'); const resumeBtn=document.getElementById('mod-resume-btn');
if(room.buzzerState.roundOpen){ if(room.buzzerState.roundOpen){
openBtn.innerHTML='■ CLOSE ROUND'; btn.innerHTML='■ PAUSE ROUND';
openBtn.className='btn btn-red btn-full'; btn.className='btn btn-red btn-full';
resumeBtn.style.display='block'; resumeBtn.style.display='none';
} else { } else {
openBtn.innerHTML='▶ OPEN ROUND'; btn.innerHTML='▶ OPEN ROUND';
openBtn.className='btn btn-g btn-full'; btn.className='btn btn-g btn-full';
resumeBtn.style.display='none'; resumeBtn.style.display='none';
} }
} }