Terms & Conditions Generator

Terms & Conditions Generator

Apni website ke liye custom Terms & Conditions policy banayein — edit karein aur HTML code copy karein.

Customization
Preview
HTML copied to clipboard!

Effective date: ${effectiveDate}

`; const obligationsHTML = obligations.length ? `
    ${obligations.map(o=>`
  • ${o}
  • `).join('')}
` : '

N/A

'; const prohibitedHTML = prohibited.length ? `
    ${prohibited.map(o=>`
  • ${o}
  • `).join('')}
` : '

N/A

'; const bodyHTML = `

1. Acceptance of Terms

Welcome to ${company}. By accessing or using ${website} (the "Site"), you agree to be bound by these Terms & Conditions.

2. Use of the Site

You agree to use the Site in compliance with applicable laws and these Terms. You must not misuse the Site or enable others to do so.

3. User Obligations

${obligationsHTML}

4. Prohibited Activities

${prohibitedHTML}

5. Intellectual Property

${ipEl.value || 'All content, logos, and materials on the Site are the property of the Company or its licensors.'}

6. Termination

${terminationEl.value}

7. Limitation of Liability

${liabilityEl.value}

8. Modification of Terms

${modificationEl.value}

9. Cookies & Privacy

${cookiesEl.value}

10. Governing Law

These Terms are governed by the laws of ${jurisdiction}.

11. Contact

If you have questions, contact us at ${email} or visit ${website}.

Last updated: ${todayISO()}

`; return `
${headerHTML}${bodyHTML}
`; } function updatePreview(){ previewEl.innerHTML = generatePreviewHTML(); // apply inline styles for preview container (keeps colors) const header = previewEl.querySelector('.terms-header'); if(header){ header.style.background = `linear-gradient(135deg, ${primary}, ${secondary})`; } } // Generate HTML code (standalone) for copying function generateStandaloneHTML(){ const inner = generatePreviewHTML(); const style = ` `; return `${style}\n${inner}`; } // Copy to clipboard copyBtn.addEventListener('click', function(){ const code = generateStandaloneHTML(); // try clipboard navigator.clipboard.writeText(code).then(()=>{ notif.classList.add('show'); setTimeout(()=> notif.classList.remove('show'), 3000); }).catch(err=>{ alert('Copy failed. Please select and copy manually.'); console.error(err); }); }); previewBtn.addEventListener('click', updatePreview); // Reset default values resetBtn.addEventListener('click', function(){ companyEl.value = 'Your Company Name'; websiteEl.value = 'https://www.example.com'; emailEl.value = 'info@example.com'; effectiveDateEl.value = (new Date()).toISOString().slice(0,10); jurisdictionEl.value = 'State/Country name'; userObligationsEl.value = 'You agree to use the Service in compliance with applicable laws, not to abuse the service, and to keep your credentials secure.'; prohibitedEl.value = 'Unauthorized access, distribution of malware, infringement of IP, illegal activities.'; terminationEl.value = 'We may suspend or terminate accounts that violate these terms or for any reason with notice where required by law.'; liabilityEl.value = 'To the fullest extent permitted by law, we are not liable for indirect, incidental, or consequential damages.'; ipEl.value = 'All content on the Site is owned or licensed by the Company. Unauthorized use is prohibited.'; modificationEl.value = 'We may update these terms from time to time. Continued use after changes constitutes acceptance.'; cookiesEl.value = 'Use of cookies and privacy practices are described in our Privacy Policy.'; // reset color document.querySelectorAll('.color-option').forEach((o,i)=>{ o.classList.toggle('active', i===0); }); primary = '#4a6fa5'; secondary = '#166088'; updatePreview(); }); // initial render updatePreview(); // also update preview on field changes (light autosync) const inputs = [companyEl, websiteEl, emailEl, effectiveDateEl, jurisdictionEl, userObligationsEl, prohibitedEl, terminationEl, liabilityEl, ipEl, modificationEl, cookiesEl]; inputs.forEach(inp => inp.addEventListener('input', updatePreview)); })();

Scroll to Top