-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UBY: show current location in navbar toctree #6
Comments
#TST |
From https://westurner.org/2015/03/02/documentation:
.. _DOM: https://wrdrd.com/docs/consulting/web-development#term-dom
.. _Bootstrap: https://github.com/twbs/bootstrap
.. _ReadTheDocs: https://read-the-docs.readthedocs.org/en/latest/ |
|
Add to:
local.js
Code
a.youarehere { font-weight: bold; font-size: 1.4em; }
update_navbar() { $(navbar a).removeClass('youarehere'); $(navbar a[href=<url>]).addClass('youarehere') }
scrollto_navbar() { if $('#navbar').visible { scrollTo('#navbar a.youarehere'); }
onReady(update_navbar)
onHashChange(hash) { if hash!='#' { update_navbar })
onClickTouch(a.youarehere) { update navbar }
Usability Justification
Show "you are here" to provide a visual affordance of the most recently selected heading:
The text was updated successfully, but these errors were encountered: