-
Notifications
You must be signed in to change notification settings - Fork 21
/
example.json
129 lines (128 loc) · 3.97 KB
/
example.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
// Ordered, multiple correct answer variations
// --------------------------------------------------
{
"_id": "c-05",
"_parentId": "b-05",
"_type": "component",
"_component": "textinput",
"_classes": "",
"_layout": "full",
"title": "Title of our text input component",
"displayTitle": "Title of our text input component",
"body": "If A is 1% and Z is 26%, what are B, C and D?",
"instruction": "Input your answer and select Submit.",
"ariaQuestion": "",
"_attempts": 1,
"_shouldDisplayAttempts": false,
"_isRandom": false,
"_questionWeight": 1,
"_canShowModelAnswer": true,
"_canShowCorrectness": false,
"_canShowFeedback": true,
"_canShowMarking": true,
"_recordInteraction": true,
"_allowsAnyCase": true,
"_allowsPunctuation": true,
"_items": [
{
"_answers": [
"2",
"two"
],
"prefix": "B:",
"suffix": "%",
"placeholder": "Enter answer here"
},
{
"_answers": [
"3",
"three"
],
"prefix": "C:",
"suffix": "%",
"placeholder": "Enter answer here"
},
{
"_answers": [
"4",
"four"
],
"prefix": "D:",
"suffix": "%",
"placeholder": "Enter answer here"
}
],
"_feedback": {
"title": "Feedback",
"altTitle": "Alt feedback title text",
"correct": "This feedback will appear if you answered the question correctly.",
"_incorrect": {
"notFinal": "",
"final": "This feedback will appear if you answered the question incorrectly."
},
"_partlyCorrect": {
"notFinal": "",
"final": "This feedback will appear if you answered part of the question correctly."
}
},
"_comment": "You only need to include _buttons if you want to override the button labels that are set in course.json",
"_buttons": {
"_submit": {
"buttonText": "Submit",
"ariaLabel": "Select here to submit your answer."
},
"_reset": {
"buttonText": "Reset",
"ariaLabel": ""
},
"_showCorrectAnswer": {
"buttonText": "Correct Answer",
"ariaLabel": ""
},
"_hideCorrectAnswer": {
"buttonText": "My Answer",
"ariaLabel": ""
},
"_showFeedback": {
"buttonText": "Show feedback",
"ariaLabel": ""
},
"remainingAttemptsText": "attempts remaining",
"remainingAttemptText": "final attempt"
},
"_pageLevelProgress": {
"_isEnabled": true
}
}
// Unordered, single correct answer variations
// --------------------------------------------------
{
"_answers": [
["alpha"],
["beta"],
["gamma"],
["delta"]
],
"_items": [
{
"prefix": "",
"suffix": "",
"placeholder": "Enter answer here"
},
{
"prefix": "",
"suffix": "",
"placeholder": "Enter answer here"
},
{
"prefix": "",
"suffix": "",
"placeholder": "Enter answer here"
},
{
"prefix": "",
"suffix": "",
"placeholder": "Enter answer here"
}
]
}