forked from h5p/h5p-image-multiple-hotspot-question
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsemantics.json
More file actions
executable file
·154 lines (154 loc) · 5.19 KB
/
semantics.json
File metadata and controls
executable file
·154 lines (154 loc) · 5.19 KB
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
[
{
"name": "imageMultipleHotspotQuestion",
"type": "group",
"widget": "wizard",
"label": "Image Multiple Hotspot Question Editor",
"importance": "high",
"fields": [
{
"name": "backgroundImageSettings",
"type": "group",
"label": "Background image",
"importance": "high",
"fields": [
{
"name": "questionTitle",
"type": "text",
"label": "The title of this question",
"importance": "high",
"default": "Image hotspot question",
"description": "Used in summaries, statistics etc."
},
{
"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": "imageMultipleHotspotQuestion",
"description": "Choose appropriate figure for your hotspot, configure it, then drag and resize it into place.",
"fields": [
{
"name": "taskDescription",
"type": "text",
"label": "Task description",
"importance": "high",
"description": "Instructions to the user.",
"optional": true
},
{
"name": "hotspotName",
"type": "text",
"label": "Hotspot Name",
"importance": "high",
"description": "Please enter what the user is trying to find i.e. risks, objects, errors (this will be used in feedback statements).",
"optional": true
},
{
"name": "numberHotspots",
"type": "number",
"label": "Number of correct hotspots that need to be found for question completion",
"importance": "high",
"description": "If left blank, will default to the number of correct hotspots created.",
"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. The user gets correct/incorrect feedback immediately after each click. The feedback will be displayed in the form of - (Text entered below) (Number of hotspots found) of (Correct hotspots needed) (Hotspot Name entered above)."
},
{
"name": "feedbackText",
"type": "text",
"label": "Feedback",
"importance": "low",
"placeholder": "Correct, you have found",
"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": "alreadySelectedFeedback",
"type": "text",
"label": "Feedback if the user selects an already found hotspot:",
"placeholder": "You have already found this one!",
"importance": "low",
"optional": true
}
]
}
]
}
]