Commit 9d0af408 by Иван Кубота

updates

parent 77ad8489
...@@ -47,8 +47,13 @@ var activate = function(page){ ...@@ -47,8 +47,13 @@ var activate = function(page){
} }
} }
}; };
activate(currentPage)
var page = document.location.href.split('/').filter(String).pop().toLowerCase();
if(',contact,about,service,privacy,certificate,'.indexOf(','+page+',')>-1) {
activate( page )
}else{
activate(currentPage)
}
menus.forEach(function(item){ menus.forEach(function(item){
item.addEventListener('click', function(e){ item.addEventListener('click', function(e){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment