I tried to keep jQuery to a minimum but used it to actually call the function, sorry, i’m not sorry JS purists. One that keeps track of the audio player actually playing audio (initPlayers function) and the other that is keeping track of the audio for the progress element (initProgressBar function). Note that their are two separate functions. If you’d like to play with the code, go for it! Unfortunately Codepen embeds aren't working for me so the link is below.Īnd below is the code. And the great thing is, HTML5 and browser capabilities make it easy to grab song lengths, current time and more. The
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |