X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=js%2F90-nav.js;h=c6b776e0d721a3bf1d22389300a669c252c40fd2;hb=d633d55dc7cc513778454bea7ec917882e3e18bd;hp=4412e3a89ff038d92b1ae9f916fd20639dbc9e5d;hpb=a9159cae5cd97f3f2d52de2b7c64decd44534f77;p=gruntmaster-page.git diff --git a/js/90-nav.js b/js/90-nav.js index 4412e3a..c6b776e 100644 --- a/js/90-nav.js +++ b/js/90-nav.js @@ -10,8 +10,8 @@ const NAVS = { }; $(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'); });