์‚ฌ์ดํŠธ ๋ถ„์„๊ธฐ

URL์„ ์ž…๋ ฅํ•˜๋ฉด ์ž๋™์œผ๋กœ ๋ถ„์„ํ•˜์—ฌ ์žฌ์‚ฌ์šฉ ๊ฐ€๋Šฅํ•œ ์™„๋ฒฝํ•œ ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค

์‚ฌ์ดํŠธ URL ์ž…๋ ฅ
๋ถ„์„ ์ค‘...
๋ถ„์„ ์˜ต์…˜
์ƒ์„ฑ๋œ ์ปดํฌ๋„ŒํŠธ

์‚ฌ์ดํŠธ๋ฅผ ๋ถ„์„ํ•˜๊ณ  ์ปดํฌ๋„ŒํŠธ๋ฅผ ์ƒ์„ฑํ•˜๋Š” ์ค‘...

'; const blob = new Blob([content], { type: 'text/html' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = component.name.toLowerCase().replace(/\s+/g, '-') + '.html'; a.click(); URL.revokeObjectURL(url); } } // ์—”ํ„ฐํ‚ค๋กœ ๋ถ„์„ ์‹œ์ž‘ document.getElementById('siteUrl').addEventListener('keypress', function(e) { if (e.key === 'Enter') { analyzeSite(); } }); // ๋ฐ๋ชจ URL ์ž๋™ ์ž…๋ ฅ document.addEventListener('DOMContentLoaded', function() { const demoUrls = [ 'https://github.com', 'https://dribbble.com', 'https://medium.com', 'https://shopify.com', 'https://netflix.com' ]; const randomUrl = demoUrls[Math.floor(Math.random() * demoUrls.length)]; document.getElementById('siteUrl').value = randomUrl; });