Wir verwenden Cookies, um Ihre Erfahrung auf unserer Website zu verbessern. Durch die Nutzung unserer Website stimmen Sie der Verwendung von Cookies zu. Wenn Sie Cookies ablehnen, werden nicht unbedingt erforderliche Cookies nicht geladen. Mehr dazu
LEADSKI Masterclass 2026
smart_toyLEADSKI 2026
01 / 55
`;
// 1. FILL TEXTAREA FOR COPYING
document.getElementById('source-code').value = presentationHTML;
// 2. INJECT INTO IFRAME FOR PREVIEW
const previewDoc = document.getElementById('preview-frame').contentWindow.document;
previewDoc.open();
previewDoc.write(presentationHTML);
previewDoc.close();
// 3. COPY FUNCTION
function copyCode() {
const copyText = document.getElementById("source-code");
copyText.select();
copyText.setSelectionRange(0, 99999);
navigator.clipboard.writeText(copyText.value).then(() => {
alert("Code kopiert!");
});
}
// 4. DOWNLOAD FUNCTION
function downloadHTML() {
const text = document.getElementById("source-code").value;
const blob = new Blob([text], { type: "text/html" });
const anchor = document.createElement("a");
anchor.download = "leadski-masterclass-2026.html";
anchor.href = window.URL.createObjectURL(blob);
anchor.style.display = "none";
document.body.appendChild(anchor);
anchor.click();
document.body.removeChild(anchor);
}