Compare commits

..

4 Commits

4 changed files with 15 additions and 5 deletions

12
.gitignore vendored
View File

@ -1 +1,11 @@
*/ # Ignore everthing
*
# Only include project files
!/installation/*
!/installation/
!/audioPlayer.js
!/index.html
!/musicList.js
!/README.md
!/styles.css

View File

@ -52,7 +52,7 @@ function audioPlayer()
aCoverArt.src = musicList[idx][4] aCoverArt.src = musicList[idx][4]
if (doplay === true) if (doplay === true)
{ {
aPlay.play(); aPlay.play()
} }
} }
@ -60,12 +60,12 @@ function audioPlayer()
const el = appendMusicList(aList, value[1], value[3]) const el = appendMusicList(aList, value[1], value[3])
el.addEventListener("click", () => { el.addEventListener("click", () => {
// el.preventDefault(); // el.preventDefault();
changeSong(index); changeSong(index)
}); });
}) })
aPlay.addEventListener("ended", function(){ aPlay.addEventListener("ended", function(){
changeSong(currentSong + 1); changeSong(currentSong + 1)
}) })
changeSong(0, false); changeSong(0, false);
} }

View File

@ -5,6 +5,6 @@
<title>Music Player</title> <title>Music Player</title>
<link rel="stylesheet" href="styles.css"> <link rel="stylesheet" href="styles.css">
</head> </head>
<iframe scrolling="no" src=music.example.tld width=100% height=307px frameborder="no"> <iframe scrolling="no" src=example.tld width=100% height=307px frameborder="no">
</iframe> </iframe>
</html> </html>