forked from h5p/h5p-branching-question
-
Notifications
You must be signed in to change notification settings - Fork 0
/
semantics.json
111 lines (111 loc) · 2.96 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
[
{
"name": "branchingQuestion",
"type": "group",
"widget": "branchingQuestion",
"label": "Branching Question Editor",
"importance": "high",
"fields": [
{
"name": "question",
"type": "text",
"importance": "medium",
"widget": "html",
"label": "Question",
"enterMode": "p",
"optional": true,
"tags": [
"strong",
"em",
"sub",
"sup",
"h2",
"h3",
"pre",
"code"
]
},
{
"name": "alternatives",
"type": "list",
"importance": "high",
"label": "Available alternatives",
"entity": "alternative",
"min": 2,
"defaultNum": 2,
"field": {
"name": "answer",
"type": "group",
"label": "Alternative",
"importance": "high",
"fields": [
{
"name": "text",
"type": "text",
"importance": "medium",
"label": "Text"
},
{
"name": "nextContentId",
"type": "number",
"label": "Next Content ID (end screens are defined by negative numbers)",
"importance": "high",
"default": -1
},
{
"name": "feedback",
"type": "group",
"label": "Feedback",
"expanded": true,
"fields": [
{
"name": "title",
"type": "text",
"label": "Feedback title",
"optional": true,
"widget": "html",
"enterMode": "p",
"tags": [
"strong",
"em",
"del",
"code",
"a"
]
},
{
"name": "subtitle",
"type": "text",
"label": "Feedback text",
"optional": true,
"widget": "html",
"enterMode": "p",
"tags": [
"strong",
"em",
"del",
"code",
"a"
]
},
{
"name": "image",
"type": "image",
"label": "Feedback image",
"optional": true
},
{
"name": "endScreenScore",
"type": "number",
"label": "Score for this scenario",
"description": "The score will be sent to any LMS, LRS or any other connected service that receives scores from H5P for users who reach this scenario",
"optional": true
}
]
}
]
}
}
]
}
]