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

Saturday, September 21, 2024

Lorum Text Generator tool with colorful styling and all its features use any free library...

 

Lorem Ipsum Generator

Lorem Ipsum Generator

* { box-sizing: border-box; } body { font-family: 'Arial', sans-serif; background: linear-gradient(135deg, #f3f4f6, #e5e7eb); margin: 0; padding: 20px; color: #333; } .container { max-width: 600px; margin: auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } h1 { text-align: center; color: #4A90E2; } .input-group { margin-bottom: 15px; } label { display: block; margin-bottom: 5px; } input[type="number"] { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; } button { width: 100%; padding: 10px; background-color: #4A90E2; color: white; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background-color 0.3s; } button:hover { background-color: #357ABD; } .output { margin-top: 20px; padding: 10px; border: 1px solid #ddd; border-radius: 4px; background-color: #f9f9f9; white-space: pre-wrap; /* Preserve whitespace for formatting */ } document.getElementById('generate').addEventListener('click', function() { const count = document.getElementById('count').value; const output = document.getElementById('output'); output.innerHTML = generateLoremIpsum(count); }); function generateLoremIpsum(paragraphs) { const loremText = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.`; let result = ''; for (let i = 0; i < paragraphs; i++) { result += loremText + '\n\n'; } return result.trim(); }

No comments:

Post a Comment