| 48 | |
| 49 | // function to play and pause sound |
| 50 | const checkPlaying = song => { |
| 51 | if (song.paused) { |
| 52 | song.play(); |
| 53 | video.play(); |
| 54 | play.src = "../assets/svg/pause.svg"; |
| 55 | } else { |
| 56 | |
| 57 | song.pause(); |
| 58 | video.pause(); |
| 59 | play.src = "../assets/svg/play.svg"; |
| 60 | } |
| 61 | }; |
| 62 | |
| 63 | // animate circle function |
| 64 | song.ontimeupdate = () => { |