-
Notifications
You must be signed in to change notification settings - Fork 44
/
example.json
208 lines (206 loc) · 7.32 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
199
200
201
202
203
204
205
206
207
208
// Standard Hot Graphic
// --------------------------------------------------
{
"_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 icons to find out more.",
"mobileBody": "This is optional body text that will be shown when viewed on mobile.",
"mobileInstruction": "Select the plus icon followed by the next arrow to find out more.",
"_comment": "setCompletionOn = inview | allItems",
"_setCompletionOn": "allItems",
"_canCycleThroughPagination": false,
"_hidePagination": false,
"_isNarrativeOnMobile": true,
"_isMobileTextBelowImage": false,
"_isStackedOnMobile": false,
"_useNumberedPins": false,
"_useGraphicsAsPins": false,
"_hasStaticTooltips": false,
"_isRound": false,
"_pinOffsetOrigin": false,
"_graphic": {
"src": "course/en/images/background.jpg",
"alt": "",
"attribution": "Copyright © 2024"
},
"_items": [
{
"_top": 25,
"_left": 25,
"title": "Hotspot 1 title",
"body": "This is display text 1.",
"strapline": "Hotspot 1 strapline",
"_imageAlignment": "right",
"_comment": "Supported classes = 'hide-desktop-image' | 'hide-popup-image'. Additional classes can be used but they must be predefined in one of the Less files",
"_classes": "",
"_graphic": {
"src": "course/en/images/hotgraphic-1.jpg",
"alt": "",
"attribution": "Copyright © 2024",
"_classes": ""
},
"_tooltip": {
"_isEnabled": false,
"text": "{{ariaLabel}}",
"_classes": "",
"_position": ""
}
},
{
"_top": 50,
"_left": 50,
"title": "Hotspot 2 title",
"body": "This is display text 2 with a left aligned image.",
"strapline": "Hotspot 2 strapline",
"_imageAlignment": "left",
"_classes": "",
"_graphic": {
"src": "course/en/images/hotgraphic-2.jpg",
"alt": "",
"attribution": "",
"_classes": ""
},
"_tooltip": {
"_isEnabled": false,
"text": "{{ariaLabel}}",
"_classes": "",
"_position": ""
}
},
{
"_top": 75,
"_left": 75,
"title": "Hotspot 3 title",
"body": "This is display text 3 with a right aligned image.",
"strapline": "Hotspot 3 strapline",
"_imageAlignment": "right",
"_classes": "",
"_graphic": {
"src": "course/en/images/hotgraphic-3.jpg",
"alt": "",
"attribution": "",
"_classes": ""
},
"_tooltip": {
"_isEnabled": false,
"text": "{{ariaLabel}}",
"_classes": "",
"_position": ""
}
}
],
"_pageLevelProgress": {
"_isEnabled": true
}
}
// Tile / grid layout
// This layout uses graphics as pin "tiles" and lays out the
// item graphics (_items._graphic) in a 2 column grid.
// --------------------------------------------------
{
"_useGraphicsAsPins": true,
"_items": [
{
"title": "Tile 1 title",
"body": "This is display text 1.",
"strapline": "Tile 1 strapline",
"_classes": "",
"_graphic": {
"src": "course/en/images/hotgraphic-1.jpg",
"alt": "",
"attribution": "Copyright © 2024",
"_classes": ""
},
"_tooltip": {
"_isEnabled": false,
"text": "{{ariaLabel}}"
}
},
{
"title": "Tile 2 title",
"body": "This is display text 2.",
"strapline": "Tile 2 strapline",
"_classes": "",
"_graphic": {
"src": "course/en/images/hotgraphic-2.jpg",
"alt": "",
"attribution": "",
"_classes": ""
},
"_tooltip": {
"_isEnabled": false,
"text": "{{ariaLabel}}"
}
}
]
}
// Graphic pins
// This layout uses a background image where each pin item
// is an image rather than a pin icon.
// --------------------------------------------------
{
"_useGraphicsAsPins": false,
"_items": [
{
"_left": 25,
"_top": 25,
"title": "Hotspot 1 title",
"body": "This is display text 1.",
"strapline": "Hotspot 1 strapline",
"_imageAlignment": "right",
"_classes": "",
"_graphic": {
"src": "course/en/images/hotgraphic-1.jpg",
"alt": "",
"attribution": "Copyright © 2024",
"_classes": ""
},
"_tooltip": {
"_isEnabled": false,
"text": "{{ariaLabel}}",
"_classes": "",
"_position": ""
},
"_pin": {
"src": "course/en/images/pin.png",
"srcHover": "course/en/images/pin-hover.png",
"srcVisited": "course/en/images/pin-visited.png",
"alt": ""
}
},
{
"_left": 50,
"_top": 50,
"title": "Hotspot 2 title",
"body": "This is display text 2.",
"strapline": "Hotspot 2 strapline",
"_imageAlignment": "right",
"_classes": "",
"_graphic": {
"src": "course/en/images/hotgraphic-2.jpg",
"alt": "",
"attribution": "",
"_classes": ""
},
"_tooltip": {
"_isEnabled": false,
"text": "{{ariaLabel}}",
"_classes": "",
"_position": ""
},
"_pin": {
"src": "course/en/images/pin.png",
"srcHover": "course/en/images/pin-hover.png",
"srcVisited": "course/en/images/pin-visited.png",
"alt": ""
}
}
]
}