1<script>
2 function toggleSound() {
3 var audioElem = document.getElementById('player');
4 if (audioElem.paused) {
5 audioElem.className = "fa fa-play";
6 audioElem.play();
7 } else {
8 audioElem.className = "fa fa-pause";
9 audioElem.pause();
10 }
11 }
12</script>
13