]> iEval git - gruntmaster-page.git/blobdiff - js/90-nav.js
Merge branch 'master' into newmc
[gruntmaster-page.git] / js / 90-nav.js
index 4b59af41d86a7d7e1cbbd9cc798f226766235b30..4412e3a89ff038d92b1ae9f916fd20639dbc9e5d 100644 (file)
@@ -1,16 +1,17 @@
-var NAVS = {
-       'home': /^\/$/,
-       'pb': /^\/(?:pb|sol)\//,
-       'ct': /^\/(?:ct|st|ed)\//,
-       'log': /^\/log\//,
-       'us': /^\/us\//,
-       'account': /^\/account$/,
-       'contribute': /^\/contribute$/,
+const NAVS = {
+       home: /^\/$/,
+       pb: /^\/(?:pb|sol)\//,
+       ct: /^\/(?:ct|st|ed)\//,
+       log: /^\/log\//,
+       us: /^\/us\//,
+       account: /^\/account$/,
+       contribute: /^\/contribute$/,
+       about: /^\/about$/,
 };
 
 $(function(){
-       var path = location.pathname;
-       for (var nav in NAVS)
+       let path = location.pathname;
+       for (let nav in NAVS)
                if(path.match(NAVS[nav]))
                        $('#nav-' + nav)[0].classList.add('active');
 });
This page took 0.021806 seconds and 4 git commands to generate.