{"id":29,"date":"2026-11-22T03:45:39","date_gmt":"2026-11-22T03:45:39","guid":{"rendered":"https:\/\/sofia15.party\/?page_id=29"},"modified":"2026-11-22T03:45:39","modified_gmt":"2026-11-22T03:45:39","slug":"requested-songs","status":"publish","type":"page","link":"https:\/\/sofia15.party\/?page_id=29","title":{"rendered":"Requested songs"},"content":{"rendered":"<style>body:has(#quince-board) :is(header.wp-block-template-part,footer.wp-block-template-part,.wp-block-post-title){display:none}#quince-board{max-width:620px;margin:auto;background:linear-gradient(#e2effb,#fffdf9);padding:26px;color:#163452;font:17px\/1.5 system-ui}#quince-board h1{font:italic 38px Georgia}#quince-board a,#quince-board button{display:inline-block;background:#193e62;color:white;border-radius:22px;border:0;padding:11px 16px;text-decoration:none}#quince-board li{border-bottom:1px solid #abc2d6;padding:14px 0;display:flex;align-items:center;justify-content:space-between;gap:12px}<\/style><main id=\"quince-board\"><a href=\"\/?page_id=20#request-song\">Request a song<\/a><h1>Requested songs<\/h1><p>Give your favorites a +1.<\/p><ul style=\"padding:0\" id=\"all-songs\"><\/ul><p role=\"status\" id=\"song-message\">Connecting to the DJ queue\u2026<\/p><\/main><script>(()=>{const send=async args=>{let device=localStorage.getItem('sofia-voter');if(!device){device=crypto.randomUUID();localStorage.setItem('sofia-voter',device);}const res=await fetch('\/wp-admin\/admin-ajax.php',{method:'POST',body:new URLSearchParams({action:'sof15_board',device,...args})});const j=await res.json();if(!j.success)throw Error();return j.data;};let busy=false,nonce='';const list=document.getElementById('all-songs'),msg=document.getElementById('song-message');async function refresh(args={op:'list'}){if(busy)return;busy=true;try{const data=await send({nonce,...args});nonce=data.nonce;const frag=document.createDocumentFragment();for(const s of [...data.rows].sort((a,b)=>b.id-a.id)){const li=document.createElement('li'),t=document.createElement('strong'),b=document.createElement('button');t.textContent=s.title+(s.artist?' \u00b7 '+s.artist:'')+({next:' \u00b7 Up next',played:' \u00b7 Played'}[s.state]||'');b.textContent=(s.mine?'\u2713 ':'+1 \u00b7 ')+s.score;b.disabled=s.mine;b.setAttribute('aria-label',(s.mine?'Already voted for ':'Upvote ')+s.title+', '+s.score+' votes');b.onclick=()=>refresh({op:'vote',vote:'1',id:s.id});li.append(t,b);frag.append(li);}list.replaceChildren(frag);msg.textContent=data.rows.length?'Newest requests first \u00b7 Updates automatically':'The list is open. Request the first song!';}catch{msg.textContent=nonce?'Update delayed. Trying again shortly.':'The DJ queue is not connected yet.';}finally{busy=false;}}refresh();setInterval(()=>{if(!document.hidden)refresh();},10000);})();<\/script>","protected":false},"excerpt":{"rendered":"<p>Request a song Requested songs Give your favorites a +1. Connecting to the DJ queue\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-29","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sofia15.party\/index.php?rest_route=\/wp\/v2\/pages\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sofia15.party\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sofia15.party\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sofia15.party\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sofia15.party\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=29"}],"version-history":[{"count":1,"href":"https:\/\/sofia15.party\/index.php?rest_route=\/wp\/v2\/pages\/29\/revisions"}],"predecessor-version":[{"id":30,"href":"https:\/\/sofia15.party\/index.php?rest_route=\/wp\/v2\/pages\/29\/revisions\/30"}],"wp:attachment":[{"href":"https:\/\/sofia15.party\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}