diff --git a/network-poc/static/index.html b/network-poc/static/index.html index 2fa6b5d..6048efb 100644 --- a/network-poc/static/index.html +++ b/network-poc/static/index.html @@ -1905,11 +1905,15 @@ } // Projektikortti: tiedostovälilehdet + kopioi + lataa ZIP + // Globaali storage projektikorttien tiedostoille (välttää JSON data-attribuuttien ongelmat) + const projectFiles = {}; + function renderProjectCard(files, projectName) { const fileEntries = Object.entries(files); if (fileEntries.length === 0) return; const cardId = 'proj-' + Date.now(); + projectFiles[cardId] = files; const tabsHtml = fileEntries.map(([name], i) => `${esc(name)}` ).join(''); @@ -1926,7 +1930,7 @@ const allText = fileEntries.map(([name, code]) => `# --- ${name} ---\n${code}`).join('\n\n'); const cardHtml = ` -