")+"
";}} result=result.slice(0,-5);alert(result);} if(data.id && data.email){window.location="/thanks";}} catch (error){alert("エラーが発生しました:"+error.message);console.log("error",error);}});const elements=document.querySelectorAll('.fade,.loop');const observer=new IntersectionObserver((entries) =>{entries.forEach(entry =>{if(entry.isIntersecting){entry.target.classList.add('visible');}else{entry.target.classList.remove('visible');}});});elements.forEach(element =>observer.observe(element));