summaryrefslogtreecommitdiffstats
path: root/src/js/01-navigation.js
Commit message (Collapse)AuthorAgeFilesLines
* fix scroll into view behavior in navigationDan Allen2018-08-121-9/+6
| | | | | | | - set position relative on .nav-menu - remove position relative from .nav-item - optimize computations for scroll into view - remove debug statements
* more debugging of scrollIntoViewDan Allen2018-08-121-2/+2
|
* debug navigation scrollIntoViewDan Allen2018-08-121-0/+3
|
* make text of text-only nav item with children clickableDan Allen2018-08-051-0/+20
|
* rename current class to context in navigation explore panelDan Allen2018-03-271-1/+1
|
* assume a single nav menu in the navigation scriptDan Allen2018-03-271-6/+2
|
* short-circuit navigation menu logic if navigation menu is absentDan Allen2018-03-271-14/+18
|
* scope DOM queries for menu elements to the menu panelDan Allen2018-03-271-7/+8
|
* consolidate the from value resolution in the find functionDan Allen2018-03-271-2/+1
|
* isolate state for each nav menuDan Allen2018-03-141-12/+18
| | | | | | | - add data-component attribute to navigation container - add data-version attribute to navigation container - store state for each menu separately, using the component + version as the key - add version field to nav-state data to detect & purge incompatible data
* format and consolidate code in navigation scriptDan Allen2018-02-051-10/+3
|
* open menu item when activatedDan Allen2018-02-051-11/+23
| | | | | | - open menu item when activated (i.e., clicked) - reorder logic in navigation script to be more intuitive - use single query to find all menu items to open
* align templates with UI modelDan Allen2018-01-021-9/+22
| | | | | | | | | | | | | | - align templates with Antora's UI model - add relativize helper to relativize a root relative URL to the current page - add detag helper to strip HTML tags from content - detag page title in HTML title element - replace the term "domain" with "component" - rename navigation-component to navigation-menu - update navigation JavaScript to activate path to current page in navigation tree - update build preview task to assign correct properties on model - update sample UI model - remove page-versions and has-versions helpers - compare selected/latest/current using equality instead of checking boolean property
* add JavaScript for navigation menuDan Allen2017-11-181-0/+122