var module_85025517190=void $(document).ready((function(){$(".open-a-demo").on("click",(function(e){setTimeout((function(){e.preventDefault(),$(".modal").fadeIn(),$("body").addClass("show-form")}),100)})),$(window).on("resize",(function(){$(".animate-items").css({"min-height":$(".animate-items").height(),"min-width":$(".animate-items").height()})})),$(".video-btn").on("click",(function(e){e.preventDefault(),$("body").addClass("video_popup_open");var this_ele=$(this);if(this_ele.parents(".eap-hero").find(".video-container").hasClass("self-video"))$(".video-container").find("#my_video")[0].play();else if(this_ele.parents(".eap-hero").find(".video-container").hasClass("iframe-video")){var symbol=$(".video-container").find("iframe")[0].src.indexOf("?")>-1?"&":"?";$(".video-container").find("iframe")[0].src+=symbol+"autoplay=1"}else console.log("no video tag found");$(this).parents(".eap-hero").find(".popup-container").fadeIn(2e3)})),$(".close-popup").on("click",(function(){$("body").removeClass("video_popup_open");var this_ele=$(this);if(this_ele.parents(".eap-hero").find(".video-container").hasClass("self-video"))$(".video-container").find("#my_video")[0].pause();else if(this_ele.parents(".eap-hero").find(".video-container").hasClass("iframe-video")){var video_split=$(".video-container").find("iframe").attr("src").split("?");$(".video-container").find("iframe").attr("src",video_split[0])}else console.log("no video tag found");$(this).parents(".popup-container").fadeOut()}))})); //# sourceURL=https://5213739.fs1.hubspotusercontent-na1.net/hubfs/5213739/hub_generated/module_assets/1/85025517190/1741254712172/module_PC_Hero_Animated_Objects_-_Sep_2022.js