Modules - oSoc18/snipstory GitHub Wiki
Fun Fact Module
displays a "fun fact"
properties | type |
---|---|
text | string |
Text block
displays an image with a line of text
properties | type |
---|---|
text | string |
resource | string |
resource is the url of the image
Image Quiz Module
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
Quiz Module
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 |