Quantcast
Viewing all articles
Browse latest Browse all 1844

clickable "Hint"-button in almost every passage (SugarCube 2)

Hey everybody,

I am in need for orientation for the following problem:

I want to have a "hint" button in almost every passage which opens a <div> with a hint on how to solve the passage's task. The text for the hint is different for each passage and will be stored in a string within each passage.

I figured the PassageHeader-passage in combination with some <<button>> and <<replace>> macros within a custom widget would do the job. But isn't there a more elegant, maybe pure CSS/jQuery solution?

Thanks!

Viewing all articles
Browse latest Browse all 1844