forked from oSoc17/snipstory
-
Notifications
You must be signed in to change notification settings - Fork 0
Modules
azahmed edited this page Jul 28, 2018
·
1 revision
displays a "fun fact"
properties | type |
---|---|
text | string |
displays an image with a line of text
properties | type |
---|---|
text | string |
resource | string |
resource is the url of the image
display a placeholder image with 3 selectable images underneath. This is done by ImageThumbnail. These images can be chosen and will be filled in into the placeholder. It has a piece of text as guidance too.
The answering of this is handled by the handleChange method. handleChange assigns the clicked image to the answer variable.
properties | type |
---|---|
text | string |
resources | string[ ] (with the strings being the imagepaths) |
the first element in resources is the correct answer, the resources array is shuffled in the front-end
displays a quiz, with a question and possible answers.
properties | type |
---|---|
text | string |
resources | string[ ] (with the strings being the imagepaths, only one image) |
correctMessage | string, the text displayed when the right answer is picked |
options | object {correct, other1, other2 } are the answer, they should be shuffled on the client |