body {
background: linear-gradient(to right, #f8f9fa, #e0e0e0);
font-family: Arial, sans-serif;
}
h1 {
font-weight: bold;
}
#policyText {
font-size: 14px;
line-height: 1.6;
}
$(document).ready(function () {
$("#privacy-form").on("submit", function (event) {
event.preventDefault();
const companyName = $("#companyName").val();
const websiteUrl = $("#websiteUrl").val();
const emailAddress = $("#emailAddress").val();
const infoCollected = $("#infoCollected").val();
const thirdParties = $("#thirdParties").val();
const privacyPolicy = `
Privacy Policy for ${companyName}
At ${companyName}, accessible from ${websiteUrl}, one of our main priorities is the privacy of our visitors. This Privacy Policy document contains types of information that are collected and recorded by ${companyName} and how we use it.
1. **Information We Collect**
We collect the following information:
${infoCollected}
2. **How We Use Your Information**
We use the information we collect in various ways, including:
- To provide, operate, and maintain our website
- To improve, personalize, and expand our website
- To communicate with you
3. **Third-Party Services**
We may share your information with the following third parties:
${thirdParties}
4. **Contact Us**
If you have additional questions or require more information about our Privacy Policy, do not hesitate to contact us at ${emailAddress}.
This policy is effective as of the date it is generated.
`;
$("#policyText").text(privacyPolicy);
$("#result").fadeIn();
});
$("#copyPolicy").on("click", function () {
const text = $("#policyText").text();
navigator.clipboard.writeText(text).then(() => {
alert("Privacy Policy copied to clipboard!");
});
});
});