Make only the headers/questions display by default. By clicking a [+] looking button, visitors can view the answers of questions that interest them.
One way this can be more "programatically" implemented than hard-coding a bunch of buttons is to get the questions into a JavaScript object and then use map (or something similar) to generate all questions with this functionality. We'll likely want to do this eventually anyways.
Make only the headers/questions display by default. By clicking a
[+]
looking button, visitors can view the answers of questions that interest them.One way this can be more "programatically" implemented than hard-coding a bunch of buttons is to get the questions into a JavaScript object and then use
map
(or something similar) to generate all questions with this functionality. We'll likely want to do this eventually anyways.