No sound? Turn the volume up and tap once; it plays even when an iPhone is on silent.
`; B.querySelectorAll('[data-gn]').forEach(b=>b.onclick=()=>{ setGender(b.dataset.gn); goalBody(); goalStage(true); goalActions(); save(); }); B.querySelectorAll('[data-sk]').forEach(b=>b.onclick=()=>{ S.skin=b.dataset.sk; goalBody(); goalStage(true); save(); }); B.querySelectorAll('[data-ta]').forEach(b=>b.onclick=()=>{ setToday(b.dataset.ta,b.dataset.ts,+b.dataset.tv); goalBody(); goalStage(true); save(); }); } if(wz===2){ B.innerHTML=`${esc(say)}
Set the day you start. The plan then opens on the right month and tells you when to book your ${esc(pro)}.
`; $('tNow').onclick=()=>setStart(isoDay(new Date())); $('tDate').onchange=ev=>{ const v=ev.target.value; if(/^\d{4}-\d{2}-\d{2}$/.test(v)&&noon(v)<=new Date(Date.now()+DAYMS)) setStart(v); }; return; } const d=Math.max(1,dayNo()), total=Math.round(ENT[ENT.length-1].mo*MOD), done=d>total, ci=curIdx(), nv=nextVisit(); let next=''; if(done) next=`You reached the end of this plan. Take new front and side photos and set your next goal.`; else if(nv>=0){ const nd=dateAt(ENT[nv].mo), left=Math.round((noon(isoDay(nd))-noon(isoDay(new Date())))/DAYMS); next=`Next ${esc(pro)} visit: ${esc(ENT[nv].l.toLowerCase()==='now'?'today':cap1(nice(ENT[nv].l)))}, ${esc(fmtDay(nd))} (${left<=0?'today':left===1?'tomorrow':'in '+left+' days'}).`; } el.innerHTML=`${next}
${esc(f[1])}
${w[1]}