${$('#preview').innerHTML} \n`); w.document.close(); setTimeout(()=>{try{w.focus();w.print();}catch(e){}},300); } function doClear(){ state={client:'',clientAddr:'',contractor:'',contractorAddr:'',date:new Date().toISOString().slice(0,10),scope:'',deliverables:'',fee:0,feeBasis:'flat',startDate:'',endDate:'',currency:'USD',jurisdiction:'',expenses:'no'}; saveState(); renderForm(); renderPreview(); } function loadExample(){ state={client:'Nimbus Labs, Inc.',clientAddr:'300 Innovation Way, Suite 200\nAustin, TX 78701',contractor:'Alex Morgan Freelance LLC',contractorAddr:'78 Creative Court\nAustin, TX 78704',date:new Date().toISOString().slice(0,10),scope:'Design and develop a responsive marketing website with up to 8 pages, including a blog, contact form, and a headless CMS integration. Includes two rounds of revisions per page.',deliverables:'Production-ready source code (Git repository), Figma design files, and a technical documentation wiki.',fee:12000,feeBasis:'milestone',startDate:new Date().toISOString().slice(0,10),endDate:'',currency:'USD',jurisdiction:'the State of Texas, USA',expenses:'no'}; const d=new Date(); d.setMonth(d.getMonth()+3); state.endDate=d.toISOString().slice(0,10); saveState(); renderForm(); renderPreview(); } loadState(); renderForm(); renderPreview(); $('#toolbar').innerHTML = ``; GZ.renderToolPage({ category: 'text', titleKey: 'toolTitle', descKey: 'toolDesc', howToSteps: ['step1','step2','step3','step4'], related: [ {icon:'🔒', href:'/text/nda-generator.html', name:'NDA Generator'}, {icon:'💵', href:'/text/promissory-note-generator.html', name:'Promissory Note'}, {icon:'🧾', href:'/text/invoice-generator.html', name:'Invoice Generator'}, {icon:'🧾', href:'/text/bill-of-sale-generator.html', name:'Bill of Sale'}, ] });