function reveal(){for(var t=document.querySelectorAll(".reveal"),n=0;n<t.length;n++){var i=window.innerHeight,r=t[n].getBoundingClientRect().top;r<i-10?t[n].classList.add("active"):t[n].classList.remove("active")}}function revealTitle(){for(var t=document.querySelectorAll(".reveal-title"),n=0;n<t.length;++n){var i=window.innerHeight,r=t[n].getBoundingClientRect().top;r<i-150?t[n].classList.add("active"):t[n].classList.remove("active")}}function reveal2(){for(var t=document.querySelectorAll(".reveal-from-right"),n=0;n<t.length;n++){var i=window.innerHeight,r=t[n].getBoundingClientRect().top;r<i-150?t[n].classList.add("active"):t[n].classList.remove("active")}}function revealFromLeft(){for(var t=document.querySelectorAll(".reveal-from-left"),n=0;n<t.length;n++){var i=window.innerHeight,r=t[n].getBoundingClientRect().top;r<i-150?t[n].classList.add("active"):t[n].classList.remove("active")}}function revealFromBottom(){for(var t=document.querySelectorAll(".reveal-from-bottom"),n=0;n<t.length;n++){var i=window.innerHeight,r=t[n].getBoundingClientRect().top;r<i-150?t[n].classList.add("active"):t[n].classList.remove("active")}}$(document).ready(function(){$("#send-event-message").click(function(){var t=grecaptcha.getResponse();if(t.length==0)setMessageContact("Va rugam bifati casuta captcha.",!1),$("#send-event-message").prop("disabled",!1);else{var i=$("#EventOrganization").val(),r=$("#EventMail").val(),u=$("#EventLocation").val(),f=$("#EventMessage").val(),n=new FormData;n.append("organization",i);n.append("email",r);n.append("eventLocation",u);n.append("message",f);$.ajax({url:localStorage.getItem("siteRoot")+"ajax/sendContactEmail",method:"POST",type:"POST",data:n,processData:!1,contentType:!1,cache:!1,success:function(n){setMessageContact(n.Message,n.Status==0);n.Status==0&&($("#EventOrganization").val(""),$("#EventMail").val(""),$("#EventLocation").val(""),$("#EventMessage").val(""))},error:function(){setMessageContact("Mesajul nu a putut fi trimis. Reîncărcaţi pagina şi încercaţi din nou.",!1);$("#send-event-message").prop("disabled",!1)}})}})});var onloadCallback=function(){$("#send-event-message").show()};window.addEventListener("load",reveal);window.addEventListener("scroll",revealTitle);window.addEventListener("scroll",reveal2);window.addEventListener("scroll",revealFromLeft);window.addEventListener("scroll",revealFromBottom)