Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/bradtraversy/vanillawebprojects
/ nextSong
Function
nextSong
music-player/script.js:62–72 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
60
61
// Next song
62
function
nextSong() {
63
songIndex++;
64
65
if
(songIndex > songs.length - 1) {
66
songIndex = 0;
67
}
68
69
loadSong(songs[songIndex]);
70
71
playSong();
72
}
73
74
// Update progress bar
75
function
updateProgress(e) {
Callers
nothing calls this directly
Calls
2
loadSong
Function · 0.85
playSong
Function · 0.85
Tested by
no test coverage detected