📝 블로그 글 생성기

1️⃣ 글 타입 선택

💰 가격비교
📋 맛집리스트
💡 가이드/꿀팁
📸 방문리뷰
✏️ 자유

2️⃣ 기본 정보

비워두면 자동 생성

3️⃣ 가게 정보 (순위)

1 🟡
2 🟡
3 🟡
4 🟡
5 🟡

4️⃣ 꿀팁 & 마무리

비워두면 상품권 기본 꿀팁 자동 삽입
비워두면 지역+아이템 조합 자동 생성
`; return html; } function downloadHtml() { const d = getFormData(); const html = generateNaverHtml(d); const blob = new Blob([html], { type: 'text/html' }); const a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = `blog-${d.region}-${d.item.replace(/\s/g,'-')}.html`; a.click(); } // 이미지 헬퍼 (전역) window.ldImg = function(input) { const file = input.files[0]; if (!file) return; const slot = input.closest('.img-placeholder'); const reader = new FileReader(); reader.onload = e => { const img=slot.querySelector('img'); img.src=e.target.result; img.style.display='block'; slot.querySelector('.ph').style.display='none'; slot.classList.add('has-img'); }; reader.readAsDataURL(file); }; window.rmImg = function(btn) { const slot = btn.closest('.img-placeholder'); slot.querySelector('img').style.display='none'; slot.querySelector('img').src=''; slot.querySelector('.ph').style.display='block'; slot.classList.remove('has-img'); }; // 초기화 renderSaved();