viresh-ratnakar / exolve

Online interactive crossword software in JavaScript
MIT License
71 stars 15 forks source link

Hiding buttons Option #43

Closed lenniebriscoe closed 3 years ago

lenniebriscoe commented 3 years ago

I would like someone to complete the crossword without providing them with the ability to reveal the solution. Is it possible to allow individual buttons (including "Reveal this" and "Reveal All!") to be hidden, please?

eg exolve-option: btn-reveal-this-visible:false btn-reveal-all-visible:false

lenniebriscoe commented 3 years ago

I have done this with CSS:

xlv1-reveal {

visibility: hidden; }

xlv1-reveal-all {

visibility: hidden; }

viresh-ratnakar commented 3 years ago

Also, if you replace all the solution letters in the grid with 0s, the reveal buttons do not get shown.

Look for "Grid without solutions" in https://github.com/viresh-ratnakar/exolve#exolve-grid