${$('#preview').innerHTML} \n`); w.document.close(); setTimeout(()=>{try{w.focus();w.print();}catch(e){}},300); } function doClear(){ Object.keys(state).forEach(k=>{ if(k==='type')state.type='mutual'; else if(k==='term')state.term=2; else if(k==='returnDays')state.returnDays=30; else if(k==='effDate')state.effDate=new Date().toISOString().slice(0,10); else state[k]=''; }); saveState(); renderForm(); renderPreview(); } function loadExample(){ state={type:'mutual',effDate:new Date().toISOString().slice(0,10),p1Name:'Acme Technologies, Inc.',p1Addr:'500 Market Street, Suite 400\nSan Francisco, CA 94105, USA',p1Role:'a Delaware corporation',p2Name:'Beta Software LLC',p2Addr:'88 Pine Avenue, Floor 12\nNew York, NY 10005, USA',p2Role:'a New York limited liability company',purpose:'Evaluating a potential software integration partnership and the exchange of technical specifications for the Acme Cloud Platform.',term:3,returnDays:30,jurisdiction:'the State of California, United States of America',noticesName:'General Counsel',noticesEmail:'[email protected]'}; 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/invoice-generator.html', name:'Invoice Generator'}, {icon:'📑', href:'/text/payslip-generator.html', name:'Payslip Generator'}, {icon:'🧾', href:'/text/receipt-generator.html', name:'Receipt Generator'}, {icon:'🔒', href:'/text/privacy-policy-generator.html', name:'Privacy Policy'}, ] });