Joke Name Generator

Your generated names will appear here.

${name}

`; }); downloadBtn.style.display = 'block'; // Show download button } else { resultsDiv.innerHTML = '

Could not generate names based on the input. Try a different keyword.

'; downloadBtn.style.display = 'none'; } }); document.getElementById('clearBtn').addEventListener('click', () => { document.getElementById('keyword').value = ''; document.getElementById('numNames').value = '5'; // Reset to default document.getElementById('results').innerHTML = '

Your generated names will appear here.

'; document.getElementById('downloadPdfBtn').style.display = 'none'; // Hide download button }); document.getElementById('downloadPdfBtn').addEventListener('click', () => { const resultsDiv = document.getElementById('results'); const names = []; resultsDiv.querySelectorAll('p').forEach(p => { if (p.textContent && p.textContent.trim() !== 'Your generated names will appear here.' && p.textContent.trim() !== 'Please enter a topic or keyword.' && p.textContent.trim() !== 'Please enter a valid number of names (1 or more).' && p.textContent.trim() !== 'Could not generate names based on the input. Try a different keyword.') { names.push(p.textContent.trim()); } }); if (names.length === 0) { alert("No names to download."); return; } // --- PDF Generation --- const doc = new jsPDF(); const margin = 15; const lineHeight = 10; let y = margin; const pageHeight = doc.internal.pageSize.height; doc.setFontSize(18); doc.setTextColor(52, 58, 64); // Match text-color variable #343a40 doc.text("Generated Joke Names", margin, y); y += 2 * lineHeight; // Space after title doc.setFontSize(12); doc.setTextColor(52, 58, 64); // Match text-color variable #343a40 names.forEach((name, index) => { // Check if we need a new page if (y + lineHeight > pageHeight - margin) { doc.addPage(); y = margin; // Reset y for the new page doc.setFontSize(18); doc.setTextColor(52, 58, 64); doc.text("Generated Joke Names (cont.)", margin, y); y += 2 * lineHeight; doc.setFontSize(12); doc.setTextColor(52, 58, 64); } doc.text(`${index + 1}. ${name}`, margin, y); y += lineHeight; }); doc.save('joke_names.pdf'); });

Key Features

  1. AI-Themed Joke Names: Generates funny and creative names using AI-inspired prefixes, suffixes, and descriptors.

  2. Clean White Design: A light, modern theme with a centered layout for a professional and user-friendly experience.

  3. PDF Download: Users can download the generated joke name as a PDF with the same color scheme as the tool.

  4. Responsive Layout: Works seamlessly on all devices, ensuring a great user experience.

    Benefits for End Users

      1. Entertainment: Provides a fun and creative way to generate humorous AI-themed names.

      2. Quick and Easy: Users can generate and download joke names in just a few clicks.

      3. Portable Results: The PDF download feature allows users to save and share their joke names offline.

      4. User-Friendly: The simple interface and intuitive design make the tool easy to use for everyone.

      5.  
Scroll to Top