googlearchive/topeka

Adding images to quiz

raghav-kukreti opened this issue · 2 comments

How does one add an image to a corresponding question?
The questions are all written in JSON.
Is there a way of accomplishing that?

No, this is not supported in the app.

@raghav-kukreti try this

In the JSON file where you find the questions add another name and value (eg, "pic":"www.example.com/me.jpeg") then in topeka-elements directory u will find a html file name topeka-quizzes, open it and look for this line

    <div class="question" flex cross-fade-delayed>{{quiz.question}}</div>

duplicate it and rename questions to name (eg, {{quiz.pic}}) that you created and test it.