try to prevent the need to click "toggle anthem" twice
parent
b229c06cab
commit
1f110e471e
|
@ -8,8 +8,14 @@ if (u_username)
|
|||
audio.loop=true;
|
||||
|
||||
function toggle() {
|
||||
if (audio.paused) audio.play()
|
||||
else audio.pause()
|
||||
if (audio.paused) {
|
||||
audio.play();
|
||||
audio.play();
|
||||
}
|
||||
else {
|
||||
audio.pause();
|
||||
audio.pause();
|
||||
}
|
||||
}
|
||||
|
||||
audio.play();
|
||||
|
|
Loading…
Reference in New Issue