X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F90-nav.js;h=a72aaca2f665da0e9c2cc2a17cfe9c207ce16fc2;hb=refs%2Fheads%2Fnewmc;hp=4412e3a89ff038d92b1ae9f916fd20639dbc9e5d;hpb=260a6894d9fdfe3cd2f05cd1926b77b46119dc01;p=gruntmaster-page.git diff --git a/js/90-nav.js b/js/90-nav.js index 4412e3a..a72aaca 100644 --- a/js/90-nav.js +++ b/js/90-nav.js @@ -6,12 +6,12 @@ const NAVS = { 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'); });