Disclaimer Generator
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.disclaimer-card {
background-color: #fff;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 8px;
width: 100%;
max-width: 500px;
text-align: center;
}
h1 {
color: #4CAF50;
margin-bottom: 20px;
}
p {
color: #555;
margin-bottom: 20px;
}
.form-section {
margin-bottom: 20px;
}
label {
font-weight: 500;
display: block;
margin: 8px 0;
}
input, textarea {
width: 100%;
padding: 10px;
margin-bottom: 12px;
border: 2px solid #ddd;
border-radius: 5px;
font-size: 16px;
}
input:focus, textarea:focus {
border-color: #4CAF50;
outline: none;
}
textarea {
height: 100px;
}
.generate-btn {
background-color: #4CAF50;
color: white;
border: none;
padding: 10px 15px;
border-radius: 5px;
font-size: 16px;
cursor: pointer;
width: 100%;
}
.generate-btn:hover {
background-color: #45a049;
}
.result {
margin-top: 20px;
}
#generatedDisclaimer {
background-color: #f9f9f9;
padding: 15px;
border-radius: 5px;
color: #333;
border: 1px solid #ddd;
word-wrap: break-word;
}
@media (max-width: 768px) {
.disclaimer-card {
padding: 15px;
}
}
function generateDisclaimer() {
// Get input values
const companyName = document.getElementById("companyName").value;
const websiteUrl = document.getElementById("websiteUrl").value;
const disclaimerText = document.getElementById("disclaimerText").value;
// Create a basic disclaimer template
let disclaimer = `The information provided by ${companyName} ("we," "us," or "our") on ${websiteUrl} is for general informational purposes only. All information on the site is provided in good faith, however we make no representation or warranty of any kind, express or implied, regarding the accuracy, adequacy, validity, reliability, availability, or completeness of any information on the site.`;
// Add custom disclaimer text if provided
if (disclaimerText.trim() !== "") {
disclaimer += `
Additional Disclaimer:${disclaimerText}`;
}
// Display the generated disclaimer
document.getElementById("generatedDisclaimer").innerHTML = disclaimer;
}