forked from h5p/h5p-image-hotspot-question
-
Notifications
You must be signed in to change notification settings - Fork 0
/
semantics.json
166 lines (166 loc) · 5.05 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
[
{
"name": "imageHotspotQuestion",
"type": "group",
"widget": "wizard",
"label": "Image Hotspot Question Editor",
"importance": "high",
"fields": [
{
"name": "backgroundImageSettings",
"type": "group",
"label": "Background image",
"importance": "high",
"fields": [
{
"name": "backgroundImage",
"type": "image",
"label": "Background image",
"importance": "high",
"description": "Select an image to use as background the image hotspot question."
}
]
},
{
"name": "hotspotSettings",
"type": "group",
"label": "Hotspots",
"importance": "high",
"widget": "imageHotspotQuestion",
"description": "Drag and drop the desired figure from the toolbar to create a new hotspot. Double-click to edit an existing hotspot. Drag the hotspot to move it. Pull the resize handler in the lower right corner to resize.",
"fields": [
{
"name": "taskDescription",
"type": "text",
"label": "Task description",
"importance": "high",
"description": "Instructions to the user.",
"optional": true
},
{
"name": "hotspot",
"type": "list",
"label": "Hotspot",
"importance": "high",
"entity": "Hotspot",
"field": {
"type": "group",
"label": "Hotspot",
"importance": "high",
"fields": [
{
"name": "userSettings",
"type": "group",
"label": "userSettings",
"importance": "low",
"fields": [
{
"name": "correct",
"type": "boolean",
"label": "Correct",
"importance": "low",
"description": "There can be multiple correct hotspots. However, the user gets correct/incorrect feedback immediately after first click."
},
{
"name": "feedbackText",
"type": "text",
"label": "Feedback",
"importance": "low",
"optional": true
}
]
},
{
"name": "computedSettings",
"type": "group",
"label": "computedSettings",
"importance": "low",
"fields": [
{
"name": "x",
"type": "number",
"optional": true
},
{
"name": "y",
"type": "number",
"optional": true
},
{
"name": "width",
"type": "number",
"optional": true
},
{
"name": "height",
"type": "number",
"optional": true
},
{
"name": "figure",
"type": "text",
"optional": true
}
]
}
]
}
},
{
"name": "noneSelectedFeedback",
"type": "text",
"label": "Feedback if the user selects an empty spot:",
"importance": "low",
"placeholder": "You didn't locate any hotspots, try again!",
"optional": true
},
{
"name": "showFeedbackAsPopup",
"type": "boolean",
"label": "Show feedback as a popup",
"importance": "low",
"default": true,
"optional": true
},
{
"label": "Localization",
"name": "l10n",
"type": "group",
"fields": [
{
"name": "retryText",
"label": "Retry button text",
"type": "text",
"default": "Retry",
"optional": true
},
{
"name": "closeText",
"label": "Close button text",
"type": "text",
"default": "Close",
"optional": true
}
]
}
]
}
]
},
{
"name": "scoreBarLabel",
"type": "text",
"label": "Textual representation of the score bar for those using a readspeaker",
"default": "You got :num out of :total points",
"importance": "low",
"common": true
},
{
"name": "a11yRetry",
"type": "text",
"label": "Assistive technology description for \"Retry\" button",
"default": "Retry",
"importance": "low",
"common": true
}
]