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:
parent
45a3c27e45
commit
0b26780d2f
1 changed files with 2 additions and 2 deletions
|
|
@ -167,8 +167,8 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||||
storyPage.appendChild(storyContainer);
|
storyPage.appendChild(storyContainer);
|
||||||
storyPage.appendChild(storyThread);
|
storyPage.appendChild(storyThread);
|
||||||
|
|
||||||
// Replace the original container content with the new structure
|
// Replace the original container content with the new structure - KEEP ORIGINAL CONTENT
|
||||||
container.innerHTML = '';
|
// container.innerHTML = '';
|
||||||
container.appendChild(storyPage);
|
container.appendChild(storyPage);
|
||||||
|
|
||||||
console.log('Story conversion completed with', sections.length, 'year sections');
|
console.log('Story conversion completed with', sections.length, 'year sections');
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue