CV / Cover Letter Generator

UK CV & Cover Letter Generator
💡 PDF: allow pop-ups, then save as PDF
'); w.document.close();w.focus(); setTimeout(function(){try{w.print();}catch(e){}},500); }function copyContent(){ var view=state.settings.view||'cv'; var content=view==='cv'?resumeEl.innerHTML:coverEl.innerHTML; var tmp=document.createElement('div');tmp.innerHTML=content; tmp.style.cssText='position:fixed;top:-9999px;left:-9999px;background:#fff;'; document.body.appendChild(tmp); var range=document.createRange();range.selectNodeContents(tmp); var sel=window.getSelection();sel.removeAllRanges();sel.addRange(range); try{document.execCommand('copy');toast('Copied to clipboard ✓');} catch(e){toast('Copy failed — use PDF instead');} sel.removeAllRanges();document.body.removeChild(tmp); }function saveState(){try{localStorage.setItem(KEY,JSON.stringify(state));}catch(e){}}function toast(msg){ var t=document.getElementById('cv-toast');if(!t)return; t.textContent=msg;t.classList.add('show'); setTimeout(function(){t.classList.remove('show');},2000); }initBindings();syncForm();render(); })();