Forum Discussion
How to add a bookmarking feature?
Christoph,
There was a some sort of glitch with the "Toggle" trigger on each slide. It did not not work as intended - a variable value would always be False. It may have been caused by copying and pasting from the original project. Not a big deal. I created a new "Toggle" triggers to do just the same. In the updated project I referenced the "Bookmarked" variables on each slide just to make sure they do what they suppose to do. In your project (ExecuteJavaScript triggers), I noticed you were to change appearance of the "background-image" , and few more CSS properties common for the Menu buttons selected state. It somehow interfered with the Menu buttons normal state under conditions we set in our triggers. Therefore, I added Else statements with a similar code that would reset (set the background-image to none) buttons if the bookmarked variables were not True. It all looks good now. Please check it out and let me know if it worked for you. One more thing, I used the placeholder for the background-image ( https://placehold.co/100x100/4cc30b/4cc30b/png) so I did not have to keep adding it to my published file every single time.