function enqueue(ids){ ids.forEach(id => { fetch("/"+id) }) } function delete_item(index){ fetch(`/delete/${index}`) } function random(){ fetch("/random") } function playlist(){ let volume_slider = document.getElementById("volume") function f(){ fetch("/playlist").then(res => res.json()).then(res => { let el = document.getElementById("playlist") el.innerHTML = '' res.items.forEach((song, i) => { var li = document.createElement("li"); let time = "(" + (song.duration/60).toFixed(2) + " minutes)" let my_html = `