A menu with absolutely-positioned buttons.
- Add the example JSON to
contentObjects.json
to position the menu items. - Specify a background image for the menu by adding the following to
course.json
:
"_hotspotMenu": {
"_backgroundSrc": ""
}
- With Adapt CLI installed, run
adapt install hotspotMenu
. Alternatively, download the ZIP and extract into the src > menu directory. - Run an appropriate Grunt task.
Attribute | Type | Description | Default |
---|---|---|---|
_backgroundSrc |
String | Background graphic | "" |
Hotspot Menu inherits Adapt’s standard content object attributes with the following additions:
Attribute | Type | Description | Default |
---|---|---|---|
_top |
Number | Vertical position as a percentage | 0 |
_left |
Number | Horizontal position as a percentage | 0 |