-
Notifications
You must be signed in to change notification settings - Fork 31
Home
Vizzy edited this page Mar 21, 2021
·
2 revisions
in scripts/json/results.js
"potatolover" /* reference id */ : {
"result": "You're a Potato lover" /* display text */,
"desc": "Someone who loves potatoes." /* description */
}
in scripts/json/buttons.js
"potato" /* reference id */ : {
"text": "I love potatoes!" /* button text */,
"color": "#b79268" /* button color */
}
in scripts/json/questions.js
"example_question" /* reference id */ : {
"question": "Do you like potatoes?" /* display text */,
"answers": [ /* possible answers (buttons) to show */
"potato",
"nopotato"
],
"results": { /* for answers that result in results being shown */
"potato" /* the answer for which this applies */ : "potatolover" /* the result to be shown */,
},
"nextquestion": { /* for answers that result in another question being showed */
"nopotato" /* the answer for which this applies */ : "example_question2" /* the question to be shown */,
}
}