🌲 AI 핀란드 AI 데일리 수학 학습지
초등 1~3학년 놀이 중심 AI 핀란드식 수학 학습지
← 루나 수학
🎓 과정
📌 학년 선택
✏️ 오늘의 단원/주제
📝 문제 구성
🤖 AI 선택
🔑 Gemini API 키 무료
키 없으면 → Google AI Studio 무료 발급
🔒 이 키는 이 컴퓨터에만 저장됩니다.
✨ AI 데일리 수학 학습지를 만들고 있어요...
미리보기
📊
AI 핀란드식 수학 학습지가 여기에 나타나요
학년과 주제를 선택하고
API 키를 입력한 뒤
「🌲 AI 핀란드 수학 학습지 생성하기」를 눌러보세요
`; wrap.appendChild(iframe); wrap.style.display = 'block'; empty.style.display = 'none'; // iframe 높이를 콘텐츠에 맞게 자동 조절 + 스케일링 const resizePreview = () => { const containerWidth = document.getElementById('previewArea').clientWidth - 48; const scale = containerWidth / 794; // 210mm approx 794px // iframe 내부 콘텐츠 높이 읽기 let contentHeight = 1123; // 기본 A4 높이 try { const iframeDoc = iframe.contentDocument || iframe.contentWindow.document; contentHeight = Math.max(iframeDoc.body.scrollHeight, iframeDoc.documentElement.scrollHeight, 1123); } catch(e) {} iframe.style.height = contentHeight + 'px'; if (scale < 1) { iframe.style.transform = `scale(${scale})`; wrap.style.height = (contentHeight * scale) + 'px'; } else { iframe.style.transform = 'none'; wrap.style.height = contentHeight + 'px'; } }; window.addEventListener('resize', resizePreview); iframe.onload = () => { resizePreview(); setTimeout(resizePreview, 300); }; } function printSheet() { if (!currentHtml) return showToast('먼저 학습지를 생성해주세요.'); const win = window.open('', '_blank'); // 인쇄용 스타일 주입: overflow visible + page-break 허용 const printStyle = `