Use #id instead of id="id"

This commit is contained in:
p11 2025-04-21 10:20:36 +02:00
parent a0d90b628a
commit 2b9292a23c

View File

@ -30,7 +30,7 @@ fn navigation_controls(total_scenes: usize) -> Markup {
html! {
nav .nav-controls {
button .nav-button onclick="prev()" { "" }
span id="section-counter" { "1/" (total_scenes) }
span #section-counter { "1/" (total_scenes) }
button .nav-button onclick="next()" { "" }
}
}
@ -40,7 +40,7 @@ fn generate_html(scenes: Vec<Markup>, sections: Vec<Markup>) -> Markup {
let total_scenes = scenes.len();
html! {
div id="story-container" {
div #story-container {
div .textbox-container {
div .scene-container {
@for (index, scene) in scenes.iter().enumerate() {