Fix toggleRound: Pause Round now actually closes the round (not open)
This commit is contained in:
@@ -342,12 +342,12 @@ function broadcastTimerToPlayers(sec,running){
|
|||||||
// MOD ROUND CONTROL
|
// MOD ROUND CONTROL
|
||||||
// ══════════════════════════════════════════════════════
|
// ══════════════════════════════════════════════════════
|
||||||
function toggleRound(){
|
function toggleRound(){
|
||||||
// Reset buzzer and open round
|
// Close round (pause)
|
||||||
ws_send({type:'open_round'});
|
ws_send({type:'close_round'});
|
||||||
// Change button to pause state
|
// Change button to open state
|
||||||
const btn=document.getElementById('mod-round-btn');
|
const btn=document.getElementById('mod-round-btn');
|
||||||
btn.innerHTML='■ PAUSE ROUND';
|
btn.innerHTML='▶ OPEN ROUND';
|
||||||
btn.className='btn btn-red btn-full';
|
btn.className='btn btn-g btn-full';
|
||||||
}
|
}
|
||||||
|
|
||||||
function resumeRound(){
|
function resumeRound(){
|
||||||
|
|||||||
Reference in New Issue
Block a user