]> iEval git - gruntmaster-page.git/blob - js/90-nav.js
4b59af41d86a7d7e1cbbd9cc798f226766235b30
[gruntmaster-page.git] / js / 90-nav.js
1 var 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 };
10
11 $(function(){
12 var path = location.pathname;
13 for (var nav in NAVS)
14 if(path.match(NAVS[nav]))
15 $('#nav-' + nav)[0].classList.add('active');
16 });
This page took 0.041826 seconds and 4 git commands to generate.