KW Flyer Generator — Mapped to MCEXP03.csv

Agent / Brand

CSV Input (MCEXP03 layout)

This build expects these headers:

`; } function generateFlyers(){ const recs=rowsToObjects(); if(!recs.length){ alert('No rows found (check mapping).'); return; } const html=flyerHTML(recs); const win=window.open('', '_blank'); if(!win){ alert('Popup blocked. Allow pop-ups and retry.'); return; } win.document.open(); win.document.write(html); win.document.close(); setTimeout(()=>{try{win.focus();}catch(e){}}, 200); } function resetAll(){ state.csv={headers:[], rows:[]}; state.mapping={...DEFAULT_MAP}; document.getElementById('csvFile').value=''; document.getElementById('csvStatus').textContent=''; document.getElementById('mapperCard').classList.add('hidden'); document.getElementById('actionsCard').classList.add('hidden'); window.scrollTo({top:0, behavior:'smooth'}); }