admin
Version:
Drop-in Node.js admin endpoint to help you analyze production issues.
14 lines (11 loc) • 385 B
JavaScript
(function () {
'use strict';
// Mark the current route as active in the navigation.
var navigationLinks = document.querySelectorAll('#navigation a');
for (var i = 0; i < navigationLinks.length; i++) {
var navigationLink = navigationLinks[i];
if (window.location.href === navigationLink.href) {
navigationLink.parentNode.classList.add('active');
}
}
})();