$(document).ready(function(){ $("#cookiehinweis button").click(function(){ $.post('https://juedische-philharmonie-dresden.de//fkt/acceptcookie.php',{'accept':1},function(data){ }); $("#cookiehinweis").addClass("inaktiv"); }); $("#burger").click(function(){ $("#m_menu").addClass("aktiv"); }); $("#closer").click(function(){ $("#m_menu").removeClass("aktiv"); }); AOS.init({ easing: 'ease-in-out-sine', offset: 80, // offset (in px) from the original trigger point delay: 50, // values from 0 to 3000, with step 50ms duration: 1000, // values from 0 to 3000, with step 50ms once: false, // whether animation should happen only once - while scrolling down mirror: true }); $(document).on("submit","#kontaktform",function(){ $("#meldung").removeClass("erfolg"); $("#meldung").removeClass("fehlermeldung"); $(".fehler").removeClass("fehler"); $("#meldung").css("opacity","show"); $.post("https://juedische-philharmonie-dresden.de//fkt/kontakt.php",$(this).serialize(),function(data){ data = data.split("_"); if(data[0]=="0"){ $("button[type=reset]").trigger("click"); $("#meldung").addClass("erfolg"); $("#meldung").html("Vielen Dank für Ihre E-Mail!"); setTimeout(function(){ $("#meldung").css("opacity","hide"); $("#meldung").removeClass("erfolg"); $("#meldung").removeClass("fehlermeldung"); $(".fehler").removeClass("fehler"); $("#meldung").html(" "); },4000); }else{ $("#meldung").addClass("fehlermeldung"); $("#meldung").html("Bitte berichtigen Sie die markierten Felder!"); fehler = data[1].split(";"); for(i=0;i