]> iEval git - gruntmaster-page.git/blame_incremental - js/90-nav.js
Replace the About page with a short Help page
[gruntmaster-page.git] / js / 90-nav.js
... / ...
CommitLineData
1const NAVS = {
2 home: /^\/$/,
3 pb: /^\/(?:pb|sol)\//,
4 ct: /^\/(?:ct|st|ed)\//,
5 log: /^\/log\//,
6 us: /^\/us\//,
7 account: /^\/account$/,
8 contribute: /^\/contribute$/,
9 help: /^\/help$/,
10};
11
12$(function(){
13 const path = location.pathname;
14 for (const nav in NAVS)
15 if(path.match(NAVS[nav]))
16 q('#nav-' + nav).classList.add('active');
17});
This page took 0.022619 seconds and 4 git commands to generate.