thought i fixed the alertbug but idk

This commit is contained in:
dylan-fournier 2024-06-10 13:21:52 -04:00
parent 776462147a
commit f31746ae47
2 changed files with 4 additions and 2 deletions

View file

@ -4,8 +4,10 @@ async function alertText(text="Song Added!") {
alertbox = document.getElementById("alert"); alertbox = document.getElementById("alert");
alertbox.innerHTML = text; alertbox.innerHTML = text;
await new Promise(r => setTimeout(r, alertTime*1000)); await new Promise(r => setTimeout(r, alertTime*1000));
if (alertbox.innerHTML == text) {
alertbox.innerHTML = "" alertbox.innerHTML = ""
} }
}
// a lot of this is kinda waffly because i was trying to get // a lot of this is kinda waffly because i was trying to get
// it to return the right stuff and javascript is asyrcronouse (boo) // it to return the right stuff and javascript is asyrcronouse (boo)
async function getFromServer(bodyInfo, source="") { async function getFromServer(bodyInfo, source="") {

View file

@ -3,7 +3,7 @@
## Purpose ## Purpose
The **Party Jukebox** is a program that allows many people to add music, skip songs, play, and pause from any web device to the same device and playlist. \ The **Party Jukebox** is a program that allows many people to add music, skip songs, play, and pause from any web device to the same device and playlist. \
This was created for a personal use case for parties, and is a simple, (mostly) functional solution to have a collective playlist for local mp3 files. \ This was created for a personal use case for parties, and is a simple, (mostly) functional solution to have a collective playlist for local mp3 files. \
Main advantage compared to doing something similar using Spotify is that you can limit the songs that can be played to your selection. Songs can be chosen, but only from a list The main advantage compared to doing something similar using Spotify is that you can limit the songs that can be played to your selection. Songs can be chosen, but only from a list.
## Basic Setup ## Basic Setup
### Client Setup: ### Client Setup:
The client is a web application that can be hosted on any server, it need not be the same device running the music player. The client is a web application that can be hosted on any server, it need not be the same device running the music player.