mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
fixed playpause visual bug I think
This commit is contained in:
@@ -144,11 +144,16 @@ function onPlayerStateChange(newState) {
|
|||||||
beginning = false;
|
beginning = false;
|
||||||
}
|
}
|
||||||
if(newState.data == 1 || newState.data == 2)
|
if(newState.data == 1 || newState.data == 2)
|
||||||
|
{
|
||||||
|
activeButton = document.getElementById("playpause").className;
|
||||||
|
console.log(activeButton);
|
||||||
|
if((newState.data == 2 && activeButton == "pause") || (newState.data == 1 && activeButton == "play"))
|
||||||
{
|
{
|
||||||
$("#playpause").toggleClass("play");
|
$("#playpause").toggleClass("play");
|
||||||
$("#playpause").toggleClass("pause");
|
$("#playpause").toggleClass("pause");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function checkEnd()
|
function checkEnd()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user