-
Notifications
You must be signed in to change notification settings - Fork 19
/
semantics.json
289 lines (289 loc) · 10.1 KB
/
semantics.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
[
{
"name": "titleScreen",
"type": "group",
"label": "Title Screen",
"expanded": true,
"fields": [
{
"name": "title",
"type": "group",
"label": "Title",
"expanded": true,
"fields": [
{
"name": "text",
"type": "text",
"label": "Title"
},
{
"name": "display",
"type": "boolean",
"label": "Display Title",
"description": "Wether or not to show the title as a headline at the start of the personality quiz.",
"default": true
}
]
},
{
"name": "image",
"type": "group",
"label": "Optional: Image",
"optional": true,
"fields": [
{
"name": "file",
"type": "image",
"label": "File"
},
{
"name": "alt",
"type": "text",
"label": "Alt text",
"description": "Alternative text if the browser is unable to load the image."
}
]
},
{
"name": "skip",
"label": "Skip",
"type": "boolean",
"description": "Select if you want the quiz to start on the first question instead of the title screen.",
"default": false
}
]
},
{
"name": "resultScreen",
"type": "group",
"label": "Result screen",
"fields": [
{
"name": "animation",
"type": "select",
"label": "Animation",
"description": "The Wheel of Fortune animation will only use the images associated with personalities if ALL personalities has an image associated with them.",
"default": "none",
"options": [
{
"label": "None",
"value": "none"
},
{
"label": "Fade in",
"value": "fade-in"
},
{
"label": "Wheel of Fortune",
"value": "wheel"
}
]
},
{
"name": "displayTitle",
"type": "boolean",
"label": "Display personality title?",
"default": true
},
{
"name": "displayDescription",
"type": "boolean",
"label": "Display description?",
"default": true
},
{
"name": "imagePosition",
"type": "select",
"label": "Personality Image Position",
"description": "Choose how to display the image, if there is any, of the result personality. Background will fill the entire H5P container and center the image. Inline will put the image as an image element between the result personality name and description.",
"default": "background",
"options": [
{
"value": "background",
"label": "Background"
},
{
"value": "inline",
"label": "Inline"
}
]
}
]
},
{
"name": "personalities",
"type": "list",
"label": "Personality",
"entity": "personality",
"min": 2,
"max": 10,
"field": {
"name": "personality",
"type": "group",
"label": "Personality",
"fields": [
{
"name": "name",
"type": "text",
"label": "Personality name",
"description": "The personality name will be used to associate answers with their respective personalities."
},
{
"name": "description",
"type": "text",
"label": "Description",
"maxLength": 450,
"widget": "textarea"
},
{
"name": "image",
"type": "group",
"label": "Optional: Image",
"optional": true,
"fields": [
{
"name": "file",
"type": "image",
"label": "Image",
"description": "An image to display on the result screen."
},
{
"name": "alt",
"type": "text",
"label": "Alt text",
"description": "Alternative text if the browser is unable to load the image."
}
]
}
]
}
},
{
"name": "questions",
"type": "list",
"label": "Questions",
"entity": "question",
"field": {
"name": "question",
"type": "group",
"label": "Question",
"fields": [
{
"name": "text",
"type": "text",
"label": "Question"
},
{
"name": "image",
"type": "group",
"label": "Optional: Image",
"description": "Image displayed at the top of the screen above or below the question text.",
"optional": true,
"fields": [
{
"name": "file",
"type": "image",
"label": "File"
},
{
"name": "alt",
"type": "text",
"label": "Alt text",
"description": "Alternative text if the browser is unable to load the image."
}
]
},
{
"name": "answers",
"type": "list",
"label": "Answers",
"entity": "answer",
"min": 2,
"max": 6,
"field": {
"name": "answer",
"type": "group",
"label": "Answer",
"fields": [
{
"name": "text",
"type": "text",
"label": "text"
},
{
"name": "personality",
"type": "text",
"label": "Personalities",
"description": "A comma separated list of personality names associated with this answer."
},
{
"name": "image",
"type": "group",
"description": "Images associated with answers will not show up unless all answers associated with a question has an image attached.",
"label": "Optional: Image",
"optional": true,
"fields": [
{
"name": "file",
"type": "image",
"label": "File"
},
{
"name": "alt",
"type": "text",
"label": "Alt text",
"description": "Alternative text if the browser is unable to load the image."
}
]
}
]
}
}
]
}
},
{
"label": "Start",
"name": "startText",
"type": "text",
"default": "Start",
"description": "Text displayed on the start quiz button on the title card."
},
{
"label": "Progress text",
"name": "progressText",
"type": "text",
"default": "@question of @total",
"description": "Progress text, variables available: @question and @total. Example: '@question of @total'"
},
{
"name": "retakeText",
"label": "Retake",
"type": "text",
"default": "Retake the quiz",
"description": "Retake text"
},
{
"name": "animation",
"type": "boolean",
"label": "Animation",
"default": true,
"description": "Uncheck to turn off all animation"
},
{
"name": "buttonColor",
"type": "text",
"label": "Button Accent",
"description": "Change the color of the button borders and the animation color fill",
"default": "4D5DAA",
"widget": "colorSelector"
},
{
"name": "progressbarColor",
"type": "text",
"label": "Progressbar Color",
"description": "Determines the color of the progress bar",
"default": "38B755",
"widget": "colorSelector"
}
]