Ember & Broom

Your quiet shortlist

Fallows

Keep promising service ideas here while you decide what your space needs.

Browse catalog Discuss a shortlist
`; const footerHTML=``; document.querySelector('header').innerHTML=headerHTML; document.querySelector('footer').innerHTML=footerHTML; const box=document.getElementById('saved'); function draw(items){ const ids=JSON.parse(localStorage.getItem('ember-fallows')||'[]'); const saved=items.filter(x=>ids.includes(x.id)); box.innerHTML=saved.length?saved.map(x=>`

${x.category}

${x.name}

${x.shortDescription}

`).join(''):'

Your shortlist is ready for its first idea.

Save a service from the catalog and it will appear here.

'; } document.addEventListener('click',e=>{ if(e.target.dataset.remove){ let ids=JSON.parse(localStorage.getItem('ember-fallows')||'[]').filter(id=>id!==e.target.dataset.remove); localStorage.setItem('ember-fallows',JSON.stringify(ids)); fetch('./catalog.json').then(r=>r.json()).then(draw); } }); fetch('./catalog.json').then(r=>r.json()).then(items=>draw(items));