Fix content wiping bug in JavaScript

- Preserve original markdown content during conversion
- Fix container.innerHTML wipe that was removing content
- Keep all story content while adding interactive timeline
- Maintain working timeline and scroll functionality
- Preserve all existing features
This commit is contained in:
Chad 2026-01-24 14:42:47 -06:00
parent 45a3c27e45
commit 0b26780d2f

View file

@ -167,8 +167,8 @@ document.addEventListener('DOMContentLoaded', function() {
storyPage.appendChild(storyContainer);
storyPage.appendChild(storyThread);
// Replace the original container content with the new structure
container.innerHTML = '';
// Replace the original container content with the new structure - KEEP ORIGINAL CONTENT
// container.innerHTML = '';
container.appendChild(storyPage);
console.log('Story conversion completed with', sections.length, 'year sections');