From 0b26780d2faa531ffec13db64dd7e56fea9bf2cf Mon Sep 17 00:00:00 2001 From: Chad Date: Sat, 24 Jan 2026 14:42:47 -0600 Subject: [PATCH] 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 --- static/js/journey.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/journey.js b/static/js/journey.js index 04fb506..53086a8 100644 --- a/static/js/journey.js +++ b/static/js/journey.js @@ -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');