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

Function prevSong

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

Source from the content-addressed store, hash-verified

47
48// Previous song
49function prevSong() {
50 songIndex--;
51
52 if (songIndex < 0) {
53 songIndex = songs.length - 1;
54 }
55
56 loadSong(songs[songIndex]);
57
58 playSong();
59}
60
61// Next song
62function nextSong() {

Callers

nothing calls this directly

Calls 2

loadSongFunction · 0.85
playSongFunction · 0.85

Tested by

no test coverage detected