X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F90-nav.js;h=c6b776e0d721a3bf1d22389300a669c252c40fd2;hb=d633d55dc7cc513778454bea7ec917882e3e18bd;hp=03dcb8257931dff52d9775d8aea71e2bd23a8db5;hpb=8345760abf4953980a85e0d5f9cade421f73d4ff;p=gruntmaster-page.git diff --git a/js/90-nav.js b/js/90-nav.js index 03dcb82..c6b776e 100644 --- a/js/90-nav.js +++ b/js/90-nav.js @@ -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'); });