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">
<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-yellow btn-full" onclick="resetBuzzer()">↺ RESET BUZZER</button>
</div>
</div>

View File

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