Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

cgkineo/adapt-hotspotMenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hotspot Menu

A menu with absolutely-positioned buttons.

Installation

  • 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.

Attributes

Course

Attribute Type Description Default
_backgroundSrc String Background graphic ""

Content object

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

About

A menu with absolutely-positioned buttons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published