REACH OUT

Have a question, suggestion, or feedback? We’re here to help you with anything you need.
We’d love to hear from you!

Get in touch

    This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

    eltmate-mail

    QUICK LINKS

    Copyright eltmate.com – Privacy policy

    "; const source = 'data:application/vnd.ms-word;charset=utf-8,' + encodeURIComponent(header + contentHtml + footer); const fileLink = document.createElement("a"); fileLink.href = source; fileLink.download = `${fileName}.doc`; fileLink.click(); }function generatePDF(contentHtml) { const fileName = getDynamicFileName(); const printWindow = window.open('', '_blank'); if (!printWindow) { alert("Please allow pop-ups."); return; } printWindow.document.write(`${fileName}
    Preparing PDF...
    ${contentHtml}`); printWindow.document.close(); setTimeout(() => { printWindow.focus(); printWindow.print(); if (!/Android|iPhone|iPad|iPod/i.test(navigator.userAgent)) { printWindow.onfocus = function() { printWindow.close(); }; } }, 1000); }// --- 3. OBSERVER LOGIC --- const observer = new MutationObserver((mutations) => { const resultsWrapper = document.querySelector('.aipkit-ai-form-results'); const resultsContent = document.querySelector('.aipkit-ai-form-results-content'); if (resultsWrapper && resultsWrapper.style.display !== 'none' && resultsContent && resultsContent.innerText.trim().length > 50 && !document.getElementById('custom-ai-toolbar')) { const nativeActions = resultsWrapper.querySelector('.aipkit-ai-form-results-top-actions'); if (nativeActions) nativeActions.style.display = 'none';// Main Container for Toolbar const toolbar = document.createElement('div'); toolbar.id = 'custom-ai-toolbar'; toolbar.style.cssText = 'display:flex; flex-direction:column; align-items:center; gap:10px; margin:30px 0; width:100%;';// Disclaimer Text const disclaimer = document.createElement('p'); disclaimer.innerText = 'AI models can make mistakes, always double-check outputs.'; disclaimer.style.cssText = 'margin: 0; padding-bottom: 20px; text-align: center; width: 100%;';// Button Container const btnRow = document.createElement('div'); btnRow.style.cssText = 'display:flex; justify-content:center; align-items:center; gap:15px; flex-wrap:wrap;';const styleTag = document.createElement('style'); styleTag.innerHTML = ` .ai-custom-btn { width: 100px; height: 50px; background-color: #fa4f83; color: white !important; border: none !important; border-radius: 4px; font-family: inherit; font-weight: 500 !important; display: flex; flex-direction: row; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s ease; font-size: 13px; text-align: center; box-sizing: border-box; } .ai-custom-btn i { font-size: 16px; margin-right: 8px; } .ai-custom-btn:hover { background-color: #d4436f; } `; document.head.appendChild(styleTag);const copyBtn = document.createElement('button'); copyBtn.className = 'ai-custom-btn'; copyBtn.innerHTML = 'COPY';const wordBtn = document.createElement('button'); wordBtn.className = 'ai-custom-btn'; wordBtn.innerHTML = 'WORD';const pdfBtn = document.createElement('button'); pdfBtn.className = 'ai-custom-btn'; pdfBtn.innerHTML = 'PDF';copyBtn.onclick = async function() { if (await copyFormattedHtml(resultsContent.innerHTML)) { const oldInner = copyBtn.innerHTML; copyBtn.innerHTML = 'DONE'; setTimeout(() => { copyBtn.innerHTML = oldInner; }, 2000); } };wordBtn.onclick = () => generateWord(resultsContent.innerHTML); pdfBtn.onclick = () => generatePDF(resultsContent.innerHTML);btnRow.appendChild(copyBtn); btnRow.appendChild(wordBtn); btnRow.appendChild(pdfBtn); toolbar.appendChild(disclaimer); toolbar.appendChild(btnRow);// Handouts Maker CTA const handoutsText = document.createElement('p'); handoutsText.innerHTML = 'After downloading the output, you can copy it and turn it into a ready-to-use worksheet for your learners with the Handouts Maker.'; handoutsText.style.cssText = 'margin: 10px 0 0 0; text-align: center; width: 100%;';toolbar.appendChild(handoutsText); resultsWrapper.parentNode.insertBefore(toolbar, resultsWrapper.nextSibling); } });observer.observe(document.body, { childList: true, subtree: true }); })();