Skip to content

Add spoilers functionality - #22

Merged
nekopanic merged 1 commit into
OpenTechSchool:masterfrom
Ivoz:master
Feb 21, 2013
Merged

nekopanic merged 1 commit into
OpenTechSchool:masterfrom
Ivoz:master

Conversation

@Ivoz

@Ivoz Ivoz commented Feb 21, 2013

Copy link
Copy Markdown
Member

Now all solutions are hidden and must be shown

  • Used _templates/layout.html to added a javascript file
  • Used _static/spoilers.js that will select all code boxes
    after a h3 containing 'Solution' and hide them, with a show button.

Example: http://embed.plnkr.co/fR7Sd6DCQ3Jxzimjvfqj

- Used _templates/layout.html to added a javascript file
- Used _static/spoilers.js that will select all code boxes
after a h3 containing 'Solution' and hide them, with a show button.
nekopanic added a commit that referenced this pull request Feb 21, 2013
Add spoilers functionality
@nekopanic
nekopanic merged commit 469864d into OpenTechSchool:master Feb 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants