🏠

📐 JSON-LD 스키마 빌더

Organization, Article, Product, FAQ, Breadcrumb 등 JSON-LD 구조화 데이터를 생성합니다.

페이지 <head> 또는 <body>에 아래 스크립트를 삽입하세요.
`; const warn = document.getElementById('warning'); if (missing.length) { warn.style.display = 'block'; warn.textContent = '필수 항목 누락: ' + missing.join(', '); } else { warn.style.display = 'none'; } } function copyText(){ navigator.clipboard.writeText(document.getElementById('output').textContent); } function download(){ const type = document.getElementById('schemaType').value; const script = document.getElementById('output').textContent; const match = script.match(/\n([\s\S]*)\n<\/script>/); const json = match ? match[1] : '{}'; const blob = new Blob([json],{type:'application/json'}); const a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = `${type.toLowerCase()}-schema.json`; a.click(); } function toggleTheme(){ const t = document.documentElement.getAttribute('data-theme')==='dark' ? '' : 'dark'; document.documentElement.setAttribute('data-theme',t); localStorage.setItem('theme',t); } if (localStorage.getItem('theme')==='dark') document.documentElement.setAttribute('data-theme','dark'); renderFields();