🎓 Tools Gratis

Generator Tugas Presentasi

Isi topik tugas Anda, langsung dapat kerangka slide presentasi. Download sebagai PDF, Word, atau PPT — tinggal pilih.

"; var content = '

' + currentMeta.topik + '

'; if (currentMeta.nama) content += '

Nama: ' + currentMeta.nama + '

'; if (currentMeta.kelas) content += '

Kelas/Instansi: ' + currentMeta.kelas + '

'; currentSlides.forEach(function (slide, i) { content += '

Slide ' + (i + 1) + ': ' + slide.title + '

'; }); var sourceHTML = header + content + footer; var blob = new Blob(['\ufeff', sourceHTML], { type: 'application/msword' }); var url = URL.createObjectURL(blob); var a = document.createElement('a'); a.href = url; a.download = 'presentasi-' + currentMeta.topik.substring(0, 30).replace(/[^a-z0-9]/gi, '-') + '.doc'; document.body.appendChild(a); a.click(); document.body.removeChild(a); URL.revokeObjectURL(url); if (typeof gtag === 'function') { gtag('event', 'export_presentation', { 'format': 'word' }); } } catch (err) { alert('Gagal generate Word. Coba refresh halaman dan ulangi.'); } } function exportPPT() { try { var pptx = new PptxGenJS(); var titleSlide = pptx.addSlide(); titleSlide.background = { color: '2563EB' }; titleSlide.addText(currentMeta.topik, { x: 0.5, y: 2, w: 9, h: 1.5, fontSize: 32, bold: true, color: 'FFFFFF', align: 'center' }); var subInfo = [currentMeta.nama, currentMeta.kelas].filter(Boolean).join(' | '); if (subInfo) { titleSlide.addText(subInfo, { x: 0.5, y: 3.6, w: 9, h: 0.5, fontSize: 14, color: 'DBEAFE', align: 'center' }); } currentSlides.slice(1).forEach(function (slide) { var s = pptx.addSlide(); s.addText(slide.title, { x: 0.5, y: 0.3, w: 9, h: 0.8, fontSize: 24, bold: true, color: '2563EB' }); var bulletItems = slide.points.map(function (p) { return { text: p, options: { bullet: true, breakLine: true } }; }); s.addText(bulletItems, { x: 0.5, y: 1.3, w: 9, h: 4.5, fontSize: 16, color: '0F172A' }); }); pptx.writeFile({ fileName: 'presentasi-' + currentMeta.topik.substring(0, 30).replace(/[^a-z0-9]/gi, '-') + '.pptx' }); if (typeof gtag === 'function') { gtag('event', 'export_presentation', { 'format': 'ppt' }); } } catch (err) { alert('Gagal generate PPT. Coba refresh halaman dan ulangi.'); } }