From b90a1255d36b64b2a4d89e72240bcd1996a7351a Mon Sep 17 00:00:00 2001 From: p11 Date: Mon, 21 Apr 2025 10:29:54 +0200 Subject: [PATCH] Renamed story section to text section --- src/vn.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vn.rs b/src/vn.rs index 05960fe..c36fac2 100644 --- a/src/vn.rs +++ b/src/vn.rs @@ -53,7 +53,7 @@ fn generate_html(scenes: Vec, sections: Vec) -> Markup { } @for (index, section) in sections.into_iter().enumerate() { - div .story-section + div .text-section data-section-index=(index) style=(format!("display: {};", if index == 0 { "block" } else { "none" })) { (section) @@ -276,7 +276,7 @@ fn interactive_script(total_scenes: usize) -> Markup { const totalScenes = {total_scenes}; function updateSection() {{ - document.querySelectorAll('.story-section').forEach((el, index) => {{ + document.querySelectorAll('.text-section').forEach((el, index) => {{ el.style.display = index === currentScene ? 'block' : 'none'; }}); document.querySelectorAll('.scene-section').forEach((el, index) => {{