generator

CSV-zu-HTML Generator - Altmarkliga Steeldarts (Debug)

🔧 CSV-zu-HTML Generator (Debug)

Stabile Debug-Version für die Altmarkliga

📊

CSV-Datei hochladen

Klicken Sie hier um eine CSV-Datei auszuwählen

Debug-Informationen werden hier angezeigt...

Generierter HTML-Code:

\n' + '\n' + ''; } function copyToClipboard() { try { const textArea = document.createElement('textarea'); textArea.value = generatedHTML; document.body.appendChild(textArea); textArea.select(); document.execCommand('copy'); document.body.removeChild(textArea); showStatus('success', '✅ HTML-Code in die Zwischenablage kopiert'); addDebugLog('✅ Code erfolgreich kopiert'); } catch (error) { addDebugLog('❌ Fehler beim Kopieren: ' + error.message); showStatus('error', '❌ Fehler beim Kopieren'); } } function downloadHTML() { try { const blob = new Blob([generatedHTML], { type: 'text/html;charset=utf-8' }); const url = URL.createObjectURL(blob); const a = document.createElement('a'); a.href = url; a.download = 'altmarkliga-vereine-' + new Date().toISOString().split('T')[0] + '.html'; document.body.appendChild(a); a.click(); document.body.removeChild(a); URL.revokeObjectURL(url); showStatus('success', '✅ HTML-Datei heruntergeladen'); addDebugLog('✅ Datei erfolgreich heruntergeladen'); } catch (error) { addDebugLog('❌ Fehler beim Download: ' + error.message); showStatus('error', '❌ Fehler beim Download'); } } // Global error handler window.onerror = function(message, source, lineno, colno, error) { addDebugLog('💥 GLOBALER FEHLER: ' + message + ' (Zeile ' + lineno + ')'); showStatus('error', 'JavaScript-Fehler: ' + message); return false; }; addDebugLog('🎯 Generator-Script geladen');