Files
JIMRI/web/js/here.js
T
2026-06-17 14:00:51 +02:00

17 lines
427 B
JavaScript

/*
Highlight the li element with href link to the current JMRI Help web page in the left sidebar.
nav sidebar a href links occur inside plain <li> as well as <dd><li> tags, supports both.
Since Nov 2019
*/
document.documentElement.className="hasJS";
$(function(){
var $page = window.location.href;
$('a').each(function() {
if ($(this).prop('href') == $page) {
$(this.parentNode).addClass('here');
}
});
});