A spoiler feature is to write a javascript function that displays a hidden block by clicking on a button that might be anywhere and hides the block by clicking another time the button. I used this idea to create a page containing interview questions and answers.
If you are interested you can clone the project on your computer as follow : git clone git@github.com:zinagithub/js-Spoiler.git
- javascript
- HTML
- Css
- Talaa Zina (https://github.com/zinagithub)