-(function(){
- 'use strict';
+const NAVS = {
+ home: /^\/$/,
+ pb: /^\/(?:pb|sol)\//,
+ ct: /^\/(?:ct|st|ed)\//,
+ log: /^\/log\//,
+ us: /^\/us\//,
+ account: /^\/account$/,
+ contribute: /^\/contribute$/,
+ help: /^\/help$/,
+};
- var NAVS = {
- 'home': /^\/$/,
- 'pb': /^\/(?:pb|sol)\//,
- 'ct': /^\/(?:ct|st|ed)\//,
- 'log': /^\/log\//,
- 'us': /^\/us\//,
- 'account': /^\/account$/,
- 'contribute': /^\/contribute$/,
- 'about': /^\/about$/,
- };
-
- $( document ).ready(function(){
- var path = location.pathname;
- for (var nav in NAVS)
- if(path.match(NAVS[nav])) {
- $('#nav-' + nav).addClass('active');
- break;
- }
- });
-})();
+$(function(){
+ const path = location.pathname;
+ for (const nav in NAVS)
+ if(path.match(NAVS[nav]))
+ q('#nav-' + nav).classList.add('active');
+});