$(document).ready(function(){$('header nav ul li a').click(function(event){event.preventDefault();var section=$(this).attr('href');var section_pos=$(section).position();if(section_pos){$(window).scrollTo({top:section_pos.top,left:'0px'},1000);}});$('.app_link').click(function(e){event.preventDefault();$(window).scrollTo({top:$("#hero").position().top,left:'0px'},1000);});$('.burger_icon').click(function(){$('header nav').toggleClass('show');$('header .burger_icon').toggleClass('active');});$("#tslider").owlCarousel({items:1,navigation:true,pagination:false,slideSpeed:300,paginationSpeed:400,singleItem:true,responsive:true,autoPlay:true,transitionStyle:"fade"});wow=new WOW({animateClass:'animated',mobile:false,offset:50});wow.init();$('#submit_form').submit(function(){$('#mc_submit').attr('disabled','disabled');processing('icon','loading');});if($('#submit_form').length){$('#submit_form').ajaxChimp({callback:chimpResponce});} function chimpResponce(resp){if(resp.result==='success'){processing('loading','icon');$('#mc_submit').removeAttr('disabled','disabled');$('#submit_form #mc-email').val('');$('#error_msg').hide();$('#success_msg').show();}else{processing('loading','icon');$('#success_msg').hide();$('#error_msg').show();$('#mc_submit').removeAttr('disabled','disabled');}} function processing(hide,show){$('#mc_submit i').removeClass(hide).addClass(show);} $('.hero').parallax("50%",0.3);$("html").niceScroll({scrollspeed:50,autohidemode:false,cursorwidth:8,cursorborderradius:8,cursorborder:"0",background:"rgba(48, 48, 48, .4)",cursorcolor:'#1f1f1f',zindex:999});$('#play_video').click(function(e){e.preventDefault();var video_link=$(this).data('video');video_link='';$('.about_video').append(video_link).fadeIn(200);});$('.close_video').click(function(e){e.preventDefault();$('.about_video').fadeOut(200,function(){$('iframe',this).remove();});});});