us: /^\/us\//,
account: /^\/account$/,
contribute: /^\/contribute$/,
- about: /^\/about$/,
+ help: /^\/help$/,
};
$(function(){
- let path = location.pathname;
- for (let nav in NAVS)
+ const path = location.pathname;
+ for (const nav in NAVS)
if(path.match(NAVS[nav]))
- $('#nav-' + nav)[0].classList.add('active');
+ q('#nav-' + nav).classList.add('active');
});