document.addEventListener("DOMContentLoaded",function(){if(document.querySelector(".flw_init")&&document.querySelector(".springtheme")){document.addEventListener("scroll",function(){document.querySelectorAll(".flw_init").forEach(function(t){(function(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)&&e.top+e.height+e.bottom+e.x+e.y+e.width>0})(t)&&(t.classList.add("f_opened"),t.classList.remove("flw_init"))})},{passive:!0}),setInterval(function(){if(document.body.clientWidth>1300){let t=document.querySelectorAll(".art_flower_1");t.forEach(function(t){t.classList.remove("ani_f")});let e=t[Math.floor(Math.random()*t.length)];e&&e.classList.add("ani_f")}},2e3)}});