Custom Music Player - Play song where it left off after Page Refresh
Hi, I don't know much about JS so i have a piece of JavaScript code used for a Custom Music Player that was created with ChatGPT. But ChatGPT seem to have some limit for how long code it can write because when i ask to fix so the song will keep playing after i refresh the page, it stops generating the code pretty much in the middle of the script...
So i hope that someone here can help me fix this. I do know that localStorage needs to be used. But i dont know exactly how to do it.
The script is too long to paste here in the chat so i have to upload it to pastebin... https://pastebin.com/60BhnxPz