MCPcopy
hub / github.com/bradtraversy/vanillawebprojects / playSong

Function playSong

music-player/script.js:31–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29
30// Play song
31function playSong() {
32 musicContainer.classList.add('play');
33 playBtn.querySelector('i.fas').classList.remove('fa-play');
34 playBtn.querySelector('i.fas').classList.add('fa-pause');
35
36 audio.play();
37}
38
39// Pause song
40function pauseSong() {

Callers 3

prevSongFunction · 0.85
nextSongFunction · 0.85
script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected