]> iEval git - gruntmaster-page.git/blame - js/90-nav.js
Remove X-Static support
[gruntmaster-page.git] / js / 90-nav.js
CommitLineData
8345760a
MG
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$/,
7093e9ba 9};
4b4a8137 10
7093e9ba 11$(function(){
65d5cb3b
MG
12 const path = location.pathname;
13 for (const nav in NAVS)
7093e9ba 14 if(path.match(NAVS[nav]))
dee46c5b 15 q('#nav-' + nav).classList.add('active');
7093e9ba 16});
This page took 0.032336 seconds and 4 git commands to generate.