$(function(){ $(window).on("resize",function(){ $(window).width()<1400?$("header").addClass('small'):$("header").removeClass('small'); }).resize(); var theUA = window.navigator.userAgent.toLowerCase(); if ((theUA.match(/msie\s\d+/) && theUA.match(/msie\s\d+/)[0]) || (theUA.match(/trident\s?\d+/) && theUA.match(/trident\s?\d+/)[0])) { var ieVersion = theUA.match(/msie\s\d+/)[0].match(/\d+/)[0] || theUA.match(/trident\s?\d+/)[0]; if (ieVersion <= 9) { } else{ var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset:200, mobile: false, live: true }); wow.init(); $("header .search-box .seachtext").val(""); } } else{ var wow = new WOW({ boxClass: 'wow', animateClass: 'animated', offset:200, mobile: false, live: true }); wow.init(); $("header .search-box .seachtext").val(""); } var nav=["about","news","products","innovate","","cooperation","recruit"]; $(nav).each(function(index, el) { $("body").attr("id")==nav[index]?$("header .wrap .item").eq(index).addClass('on'):1; }); });