<div style=”max-width: 600px; margin: 0 auto; font-family: Arial, sans-serif;”>
<h2>SEO Keyword Generator</h2>
<label for=”seedKeyword”>Enter a Seed Keyword:</label>
<input type=”text” id=”seedKeyword” placeholder=”e.g., dam liners for fish farming” style=”width: 100%; padding: 10px; margin-top: 5px;”>

<label for=”relatedKeywords” style=”margin-top: 15px; display: block;”>Related Keywords (Optional):</label>
<textarea id=”relatedKeywords” placeholder=”Comma-separated keywords, e.g., fish ponds, HDPE liners” style=”width: 100%; height: 80px; padding: 10px;”></textarea>

<button id=”generateKeywords” style=”margin-top: 15px; padding: 10px 20px; background-color: #007BFF; color: white; border: none; cursor: pointer;”>Generate Keywords</button>

<div id=”results” style=”margin-top: 20px;”>
<h3>Generated Keywords:</h3>
<ul id=”keywordList” style=”padding-left: 20px;”>
<!– Keywords will appear here –>
</ul>
</div>
</div>
`;

 

/** * SEO Keyword Creation Tool - Embed as a Shortcode * This tool generates a list of SEO keywords based on user input. */ class SeoKeywordTool { constructor(containerId) { this.containerId = containerId; } render() { const container = document.getElementById(this.containerId); if (!container) { console.error('Container not found'); return; } container.innerHTML = `

SEO Keyword Generator

Generated Keywords:

`; document.getElementById('generateKeywords').addEventListener('click', () => this.generateKeywords()); } generateKeywords() { const seedKeyword = document.getElementById('seedKeyword').value.trim(); const relatedKeywords = document.getElementById('relatedKeywords').value.split(',').map(k => k.trim()); if (!seedKeyword) { alert('Please enter a seed keyword!'); return; } const keywordList = this.createKeywords(seedKeyword, relatedKeywords); const keywordListElement = document.getElementById('keywordList'); keywordListElement.innerHTML = keywordList.map(k => `
  • ${k}
  • `).join(''); } createKeywords(seedKeyword, relatedKeywords) { const variations = [ "best", "cheap", "how to use", "advantages of", "cost of", "benefits of", "reviews of", "where to buy", "installation of", ]; let keywords = []; // Add basic variations of the seed keyword variations.forEach(variation => { keywords.push(`${variation} ${seedKeyword}`); }); // Add related keywords with seed keyword relatedKeywords.forEach(related => { if (related) { variations.forEach(variation => { keywords.push(`${variation} ${related}`); }); } }); // Add combinations of seed and related keywords relatedKeywords.forEach(related => { if (related) { keywords.push(`${seedKeyword} ${related}`); keywords.push(`${related} ${seedKeyword}`); } }); return keywords; } } // Example: Initialize the tool and render it in a container with ID "seoTool" document.addEventListener('DOMContentLoaded', () => { const seoTool = new SeoKeywordTool('seoTool'); seoTool.render(); });

    Sign In

    Register

    Reset Password

    Please enter your username or email address, you will receive a link to create a new password via email.