I want to implement something like Harlowe's footer/header feature... specifically for a menu for inventory, character notes etc. And be able to hide it on some passages (probably based on passage tags)
I'm pretty comfortable with javascript but not JQuery.
Can I respond to all "about to show a passage" events & modify the passage before it is shown? I guess I would do this in the story javascript? How would I go about it?
Comments
In the CSS, I just fixed the div to the top of the viewport and bumped the passages down a few lines:
Then just make a passage called 'header' and put whatever you want in there.
I have no idea at all how to access passage tags in snowman. Might be easier to just set up the logic of your header in the header passage--just have it hide the element when you don't want it:
Don't forget to show it again, though.
This really isn't my forte, so I'd check back for some better answers in a bit, but this should get you started.