I already wrote in another comment, but it’s to do dynamic things, like a table of contents generated automatically from the headings that are clickable to go to the chapter, it also highlights the current chapter. And since I’m creating a growth story, I have a sidebar that keeps track of the size/description of different body parts in the story
why JavaScript? I’d figure CSS would be enough for text transforms
I already wrote in another comment, but it’s to do dynamic things, like a table of contents generated automatically from the headings that are clickable to go to the chapter, it also highlights the current chapter. And since I’m creating a growth story, I have a sidebar that keeps track of the size/description of different body parts in the story