Forum Discussion
ChristophSchmol
2 years agoCommunity Member
How to add a bookmarking feature?
I would like to integrate a bookmarking button on every page of my training, with which the user can tag slides - for example, to review them in more detail at a later time. The bookmarked pages sho...
ChristophSchmol
2 years agoCommunity Member
Hi Nedim, thank you so much for the story file and - once again - sorry for the late reply.
I have modified the JS to have bookmarks highlighted with a green color bar on the left edge, analogous to the blue bar on the selected TOC item (see screenshot).
This is my code:
bookmarked1.style.color = "#fff";
bookmarked1.style.backgroundImage = "url('bg_green.png')";
bookmarked1.style.backgroundRepeat = "repeat-y";
bookmarked1.style.backgroundSize = "6px auto";
However, while I could build a simple working demo with the code in place, it stopped working when I added it to a larger project. I've spent hours troubleshooting and I'm at a point where I assume that a storyline bug is the reason for this. I'm still looking for an explanation, though.