-1){$(this).attr("href","javascript:;");$(this).removeAttr("target")}anchor= link.substr(link.indexOf("#"));if(anchor.indexOf("\x3d")!=-1)return;if($(anchor).length==0)return;$(this).off("click").on("click",function(){$("html,body").animate({scrollTop:$(anchor).offset().top},500)})})})}catch(e){try{console&&(console.log&&console.log(e))}catch(e){}}})(window,$);