To add a new sidebar or the like (something that can be seen in every passage) you have to add it via your javascript section. First make sure to specify where on tje screen you want your new div to appear by specifying the gap to the left/right/top/bottom. For example:
#dialogue-bar {
position: fixed;
z-index: 50;
background-color: rgba(0, 0, 0, 0.5);
border: #fff double 0.4em;
height: 10em;
right: 0.25em;
left: 18em;
bottom: 0.25em;
padding: 1em;
}
Add it to JavaScript like this:
$('<div id="dialogue-bar"></div>').appendTo(document.body);
To add content to the new element you can use <<replace>>. If I have a passage called "Dialogue" for example, I can put the entire passage into the new box like this:
<<replace "#dialogue-bar">><<display "Dialogue">><</replace>>
If you just want your div to appear in certain passages/places or appear multiple times in the same passage, you can instead create a class. In you CSS stylesheet you'd say something like:
.mydiv {
background-color: lightgrey;
width: 300px;
border: 25px solid green;
padding: 25px;
margin: 25px;
}
Then call it in your passage like this:
<div class="mydiv">This is the divs content</div>