All Rounder Tools Blogger-Best blog for blogger: Terms & Conditions Generator tool with colorful styling and all its features use any free library...

Wednesday, September 18, 2024

Terms & Conditions Generator tool with colorful styling and all its features use any free library...

 

Terms & Conditions Generator

Terms & Conditions Generator

* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #42e695, #3bb2b8); height: 100vh; display: flex; justify-content: center; align-items: center; color: #fff; } .container { background-color: #ffffff; padding: 2rem; border-radius: 10px; max-width: 600px; width: 100%; text-align: center; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); color: #333; } h1 { margin-bottom: 1.5rem; color: #42e695; } .input-group { margin-bottom: 1rem; text-align: left; } label { display: block; margin-bottom: 0.5rem; color: #555; } input { width: 100%; padding: 0.75rem; border: 1px solid #ccc; border-radius: 5px; outline: none; } input:focus { border-color: #42e695; } button { background-color: #42e695; color: white; padding: 0.75rem 1.5rem; border: none; border-radius: 5px; cursor: pointer; margin-top: 1rem; transition: background-color 0.3s ease; } button:hover { background-color: #3bb2b8; } .hidden { display: none; } #termsOutput { margin-top: 2rem; text-align: left; } #copyBtn { background-color: #27ae60; color: white; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; margin-top: 1rem; } #copyBtn:hover { background-color: #219150; } const termsForm = document.getElementById('termsForm'); const generatedTerms = document.getElementById('generatedTerms'); const termsOutput = document.getElementById('termsOutput'); const copyBtn = document.getElementById('copyBtn'); termsForm.addEventListener('submit', function (e) { e.preventDefault(); // Get form values const companyName = document.getElementById('companyName').value; const websiteName = document.getElementById('websiteName').value; const websiteURL = document.getElementById('websiteURL').value; const effectiveDate = document.getElementById('effectiveDate').value; // Generate the Terms & Conditions text const termsText = `

Terms and Conditions

Welcome to ${websiteName}!

These terms and conditions outline the rules and regulations for the use of ${companyName}'s Website, located at ${websiteURL}.

By accessing this website we assume you accept these terms and conditions. Do not continue to use ${websiteName} if you do not agree to take all of the terms and conditions stated on this page.

Cookies

We employ the use of cookies. By accessing ${websiteName}, you agreed to use cookies in agreement with ${companyName}'s Privacy Policy.

License

Unless otherwise stated, ${companyName} and/or its licensors own the intellectual property rights for all material on ${websiteName}. All intellectual property rights are reserved. You may access this from ${websiteName} for your own personal use subjected to restrictions set in these terms and conditions.

User Comments

Certain parts of this website offer an opportunity for users to post and exchange opinions and information. ${companyName} does not filter, edit, publish or review Comments prior to their presence on the website. Comments do not reflect the views and opinions of ${companyName}, its agents, and/or affiliates. Comments reflect the views and opinions of the person who posts them. ${companyName} shall not be liable for the Comments or any liability, damages, or expenses caused by their use.

Effective Date: ${effectiveDate}

`; // Display the generated Terms & Conditions generatedTerms.innerHTML = termsText; termsOutput.classList.remove('hidden'); }); // Copy to clipboard functionality copyBtn.addEventListener('click', function () { const textToCopy = generatedTerms.innerText; navigator.clipboard.writeText(textToCopy).then(() => { alert('Terms & Conditions copied to clipboard!'); }).catch(err => { console.error('Failed to copy: ', err); }); });

No comments:

Post a Comment