]> iEval git - gruntmaster-page.git/blobdiff - js/90-nav.js
Merge branch 'master' into newmc
[gruntmaster-page.git] / js / 90-nav.js
index 03dcb8257931dff52d9775d8aea71e2bd23a8db5..c6b776e0d721a3bf1d22389300a669c252c40fd2 100644 (file)
@@ -6,11 +6,12 @@ const NAVS = {
        us: /^\/us\//,
        account: /^\/account$/,
        contribute: /^\/contribute$/,
+       about: /^\/about$/,
 };
 
 $(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');
 });
This page took 0.021282 seconds and 4 git commands to generate.