Comment changer l'icône du jeu à la pause en javascript
<script>
function toggleSound() {
var audioElem = document.getElementById('player');
if (audioElem.paused) {
audioElem.className = "fa fa-play";
audioElem.play();
} else {
audioElem.className = "fa fa-pause";
audioElem.pause();
}
}
</script>
Bloody Bee