클라이언트 제안서 생성기

프로젝트 정보를 입력하면 전문 제안서 미리보기를 즉시 생성합니다.

미리보기

브라우저 인쇄 기능에서 PDF로 저장할 수 있습니다.
` + preview.innerHTML + ``; const blob = new Blob([html], { type: "text/html;charset=utf-8" }); const url = URL.createObjectURL(blob); const a = document.createElement("a"); const filename = (els.projectName.value.trim() || "proposal").replace(/\s+/g, "-").toLowerCase(); a.href = url; a.download = filename + '-proposal.html'; document.body.appendChild(a); a.click(); a.remove(); URL.revokeObjectURL(url); } function printProposal() { const win = window.open("", "_blank", "width=900,height=1000"); if (!win) return; win.document.write(`제안서 인쇄 ` + preview.innerHTML + ``); win.document.close(); win.focus(); win.print(); } document.getElementById("generateBtn").addEventListener("click", renderProposal); document.getElementById("sampleBtn").addEventListener("click", fillSample); document.getElementById("downloadBtn").addEventListener("click", downloadHtml); document.getElementById("printBtn").addEventListener("click", printProposal); ids.forEach(id => els[id].addEventListener("input", renderProposal)); fillSample();