fix toggle player button icon play / pause
This commit is contained in:
parent
c812e5b0f8
commit
1707ed2c8d
@ -90,7 +90,10 @@ $(function(){
|
||||
var music = document.getElementById('player');
|
||||
if (music.paused && $("#player").attr("src") != "") {
|
||||
music.play();
|
||||
|
||||
} else {
|
||||
$('#playbutton').removeClass("pause");
|
||||
$('#playbutton').addClass("play");
|
||||
music.pause();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user