forked from adaptlearning/adapt-contrib-hotgraphic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.json
198 lines (194 loc) · 6.17 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
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
// Regular hotgraphic
// --------------------------------------------------
{
"_id": "c-05",
"_parentId": "b-05",
"_type": "component",
"_component": "hotgraphic",
"_classes": "",
"_layout": "full",
"title": "Hot graphic",
"displayTitle": "Hot graphic",
"body": "This is optional body text.",
"instruction": "Select the hotspots on the image to reveal the text. This component will scale down to a narrative when viewed on mobile.",
"mobileBody": "This is optional body text that will be shown when viewed on mobile.",
"mobileInstruction": "This is optional instruction text that will be shown when viewed on mobile.",
"close": "Close",
"_comment": "setCompletionOn = inview | allItems",
"_setCompletionOn": "allItems",
"_canCycleThroughPagination": false,
"_isNarrativeOnMobile": true,
"_useNumbersAsPins": false,
"_useGraphicsAsPins": false,
"_isRound": false,
"_graphic": {
"src": "course/en/images/example.jpg",
"alt": "",
"attribution": "Copyright © 2019"
},
"_items": [
{
"title": "Hotspot 1 title",
"body": "This is display text 1.",
"_graphic": {
"src": "course/en/images/example.jpg",
"alt": "",
"attribution": "Copyright © 2019",
"_classes": ""
},
"strapline": "Hotspot 1 strapline",
"_comment": "Supported classes = 'align-image-left' | 'hide-desktop-image' | 'hide-popup-image'. Additional classes can be used but they must be predefined in one of the Less files",
"_classes": "",
"_top": 25,
"_left": 25,
"_pinSelection": "",
"_pinIcon": "",
"pinAlt": ""
},
{
"title": "Hotspot 2 title",
"body": "This is display text 2.",
"_graphic": {
"src": "course/en/images/example.jpg",
"alt": "",
"attribution": "",
"_classes": ""
},
"strapline": "Hotspot 2 strapline",
"_classes": "",
"_top": 50,
"_left": 50,
"_pinSelection": "",
"_pinIcon": "",
"pinAlt": ""
},
{
"title": "Hotspot 3 title",
"body": "This is display text 3.",
"_graphic": {
"src": "course/en/images/example.jpg",
"alt": "",
"attribution": "",
"_classes": ""
},
"strapline": "Hotspot 3 strapline",
"_classes": "",
"_top": 75,
"_left": 75,
"_pinSelection": "",
"_pinIcon": "",
"pinAlt": ""
}
],
"_pageLevelProgress": {
"_isEnabled": true
}
}
// Example using graphics as pins
// The following example lays out the item graphics (_items._graphic)
// in a 2x2 grid.
// --------------------------------------------------
{
"_useGraphicsAsPins": true,
"_items": [
{
"title": "Hotspot 1 title",
"body": "This is display text 1.",
"_graphic": {
"src": "course/en/images/example.jpg",
"alt": "",
"attribution": "Copyright © 2019",
"_classes": ""
},
"strapline": "Hotspot 1 strapline",
"_classes": "",
"_top": 25,
"_left": 25
},
{
"title": "Hotspot 2 title",
"body": "This is display text 2.",
"_graphic": {
"src": "course/en/images/example.jpg",
"alt": "",
"attribution": "",
"_classes": ""
},
"strapline": "Hotspot 2 strapline",
"_classes": "",
"_top": 50,
"_left": 50
}
]
}
// Example using graphic pins
// In the following example there is a background image and each pin
// is an image rather than a pin icon
// --------------------------------------------------
{
"_items": [
{
"title": "Hotspot 1 title",
"body": "This is display text 1.",
"_graphic": {
"src": "course/en/images/example.jpg",
"alt": "",
"attribution": "Copyright © 2019",
"_classes": ""
},
"_pin": {
"src": "course/en/images/example.jpg",
"alt": ""
},
"strapline": "Hotspot 1 strapline",
"_classes": "",
"_left": 25,
"_top": 25
},
{
"title": "Hotspot 2 title",
"body": "This is display text 2.",
"_graphic": {
"src": "course/en/images/example.jpg",
"alt": "",
"attribution": "",
"_classes": ""
},
"_pin": {
"src": "course/en/images/example.jpg",
"alt": ""
},
"strapline": "Hotspot 2 strapline",
"_classes": "",
"_left": 50,
"_top": 50
}
]
}
// Icons
icon-book
icon-bookmark
icon-checklist
icon-comment
icon-comments
icon-documents
icon-emotion-happy
icon-emotion-sad
icon-flag
icon-folder
icon-info
icon-light-bulb
icon-list
icon-map
icon-message
icon-person
icon-persons
icon-plus
icon-point
icon-question
icon-search
icon-shield
icon-star
icon-stopwatch
icon-trophy
icon-warning