diff --git a/webapp/index.html b/webapp/index.html index 216b98d..58dd327 100644 --- a/webapp/index.html +++ b/webapp/index.html @@ -921,13 +921,19 @@ async function selectPodcast(podcastId) { const resp = await fetch(`${API_BASE}/api/podcasts/${podcastId}`); DATA = await resp.json(); CURRENT_PODCAST = podcastId; - // Clear existing graph + timeline if switching - document.getElementById('svg').innerHTML = ''; + // Reset mindmap area (might have been used for selector) + const mindmap = document.getElementById('mindmap'); + mindmap.style.display = ''; + mindmap.style.alignItems = ''; + mindmap.style.justifyContent = ''; + mindmap.style.flexDirection = ''; + mindmap.style.padding = ''; + mindmap.innerHTML = ''; + // Clear filters + timeline document.getElementById('staffel-filters').innerHTML = ''; const tl = document.getElementById('timeline-container'); if (tl) { tl.remove(); timelineBuilt = false; } // Reset to mindmap view - document.getElementById('mindmap').style.display = ''; document.querySelectorAll('.view-tab').forEach(t => t.classList.remove('active')); document.getElementById('tab-mindmap')?.classList.add('active'); TRANSCRIPTS = null; @@ -949,24 +955,35 @@ function showPodcastSelector(podcasts) { document.getElementById('cross-toggle').style.display = ''; } - let html = '
Wähle einen Podcast oder vergleiche zwei.
Wähle einen Podcast oder vergleiche zwei.
${escHtml(p.description || '')}
`; - html += `${escHtml(p.description || '')}
`; + selectorHtml += `Wähle links einen Podcast.