]> iEval git - gruntmaster-page.git/blob - js/90-nav.js
fc91ff1dfb364245c5d315378f5dfff57e07c3c8
[gruntmaster-page.git] / js / 90-nav.js
1 (function(){
2 'use strict';
3
4 var NAVS = {
5 'home': /^\/$/,
6 'pb': /^\/(?:pb|sol)\//,
7 'ct': /^\/(?:ct|st|ed)\//,
8 'log': /^\/log\//,
9 'us': /^\/us\//,
10 'account': /^\/account$/,
11 'contribute': /^\/contribute$/,
12 };
13
14 $( document ).ready(function(){
15 var path = location.pathname;
16 for (var nav in NAVS)
17 if(path.match(NAVS[nav])) {
18 $('#nav-' + nav).addClass('active');
19 break;
20 }
21 });
22 })();
This page took 0.041979 seconds and 3 git commands to generate.