Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ function renderSets(){
area.innerHTML='<div style="display:flex;align-items:center;justify-content:center;height:100%;color:var(--text3);font-family:var(--font-mono);font-size:12px;flex-direction:column;gap:8px;"><div>No sets generated yet.</div><div style="font-size:10px;">Click Generate Setlist in the sidebar.</div></div>';
return;
}
const poolOptions = pool.map(s=>`<option value="${esc(s.id)}">${esc(s.title)} — ${esc(s.artist)}</option>`).join('');
sets.forEach((songs,si)=>{
const ep=Math.round((songs.reduce((a,s)=>a+s.energy,0)/(songs.length*5||1))*100);
const card=document.createElement('div');
Expand All @@ -537,7 +538,7 @@ function renderSets(){
<div class="add-row">
<select class="add-sel" id="as-${esc(si)}">
<option value="">+ Add song…</option>
${pool.map(s=>`<option value="${esc(s.id)}">${esc(s.title)} — ${esc(s.artist)}</option>`).join('')}
${poolOptions}
</select>
<button class="add-btn" onclick="addToSet(${esc(si)})">Add</button>
</div>`;
Expand Down
Loading