${$('#preview').innerHTML} \n`); w.document.close(); setTimeout(()=>{try{w.focus();w.print();}catch(e){}},300); } function doClear(){ Object.keys(state).forEach(k=>{ if(k==='feeType')state.feeType='fixed'; else if(k==='deposit')state.deposit=30; else if(k==='warranty')state.warranty=30; else if(k==='cancellation')state.cancellation=14; else if(k==='effDate'||k==='startDate')state[k]=new Date().toISOString().slice(0,10); else state[k]=''; }); saveState(); renderForm(); renderPreview(); } function loadExample(){ state={effDate:new Date().toISOString().slice(0,10),provName:'Pixel Studio LLC',provAddr:'300 Design Boulevard, Suite 10\nLos Angeles, CA 90013, USA',cliName:'Bright Retail Inc.',cliAddr:'75 Market Plaza\nLos Angeles, CA 90014, USA',services:'Design and develop a responsive e-commerce website with up to 12 pages, product catalogue, shopping cart and checkout integration with Stripe, plus a content management system for the client to manage products.',deliverables:'Figma design files, responsive front-end (HTML/CSS/JS), CMS admin login, source code repository and a user guide PDF',startDate:new Date().toISOString().slice(0,10),endDate:'',fee:'$18,000',feeType:'milestone',rate:'',payTerms:'30% on signing, 40% on design approval, 30% on final delivery. Payable by bank transfer within 15 days of each invoice.',deposit:30,warranty:60,ipOwner:'the Client, Bright Retail Inc.',cancellation:14,jurisdiction:'the State of California, United States of America'}; 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/independent-contractor-agreement.html', name:'Contractor Agreement'}, {icon:'🏠', href:'/text/lease-agreement.html', name:'Lease Agreement'}, {icon:'💼', href:'/text/employment-contract.html', name:'Employment Contract'}, {icon:'💲', href:'/text/estimate-generator.html', name:'Estimate Generator'}, ] });