]> iEval git - plack-app-gruntmaster.git/blame - js/90-nav.js
Merge branch 'master' into newmc
[plack-app-gruntmaster.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$/,
65ef5465 9 about: /^\/about$/,
7093e9ba 10};
4b4a8137 11
7093e9ba 12$(function(){
8345760a
MG
13 let path = location.pathname;
14 for (let nav in NAVS)
7093e9ba
MG
15 if(path.match(NAVS[nav]))
16 $('#nav-' + nav)[0].classList.add('active');
17});
This page took 0.041821 seconds and 4 git commands to generate.