AnshSinghSonkhia / 40Pie-Music-Player-Website

40π Music Player -- Using HTML5, CSS3 & JavaScript
https://anshsinghsonkhia.github.io/40Pie-Music-Player-Website
MIT License
21 stars 37 forks source link

Added New Songs #22

Closed AaryanSingh0017 closed 2 years ago

AaryanSingh0017 commented 2 years ago
AaryanSingh0017 commented 2 years ago

Plz Accep my PR under label Hacktoberfest and Hacktoberfest Accepted

AnshSinghSonkhia commented 2 years ago

script.js is not updated properly.

At the last, you will find two places where there is written a '12'. You have to change them to '13'.

AaryanSingh0017 commented 2 years ago

Sorry i didn't get you in script i guess 12 is at only one place and after that 13 that i made a change.

AnshSinghSonkhia commented 2 years ago

You will find these 2 codes at the bottom of script.js file.

document.getElementById("next").addEventListener("click", () => {
  if (songIndex >= 12) {
audioElement.onended = function() {
  // change the song index to the index of next song, if the song is the last one in the playlist then the next should be the first one
  if (songIndex >= 12)

Change 12 to 13 in them.

AaryanSingh0017 commented 2 years ago

Done 👍 plz add the hacktoberfest 2022 and hacktoberfest accepted label