Compare commits
4 Commits
dbe93cb6e5
...
05051f04d8
Author | SHA1 | Date | |
---|---|---|---|
05051f04d8 | |||
eda4ec0340 | |||
9f39cec039 | |||
eb4494e3e6 |
12
.gitignore
vendored
12
.gitignore
vendored
@ -1 +1,11 @@
|
|||||||
*/
|
# Ignore everthing
|
||||||
|
*
|
||||||
|
|
||||||
|
# Only include project files
|
||||||
|
!/installation/*
|
||||||
|
!/installation/
|
||||||
|
!/audioPlayer.js
|
||||||
|
!/index.html
|
||||||
|
!/musicList.js
|
||||||
|
!/README.md
|
||||||
|
!/styles.css
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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>
|
Loading…
Reference in New Issue
Block a user