| 1 |
!function(e){"use strict";function t(){return"undefined"!=typeof elementorFrontend&&elementorFrontend.isEditMode()}var n=function(e,n){if(e.hasClass("jltma-particle-yes")||e.attr("data-jltma-particle")||e.find(".jltma-particle-wrapper").attr("data-jltma-particles-editor")){let n,a=e.data("element_type"),i=encodeURIComponent(e.data("id"));if(n=t()?e.find(".jltma-particle-wrapper").attr("data-jltma-particles-editor"):e.attr("data-jltma-particle"),("section"===a||"column"===a||"container"===a)&&n)if(t())if(e.hasClass("jltma-particle-yes"))try{let t=JSON.parse(n);particlesJS("jltma-particle-"+i,t),e.find(".elementor-column").css("z-index",9),setTimeout(function(){window.dispatchEvent(new Event("resize"))},500),setTimeout(function(){window.dispatchEvent(new Event("resize"))},1500)}catch(e){}else e.find(".jltma-particle-wrapper").remove();else{e.prepend('<div class="jltma-particle-wrapper" id="jltma-particle-'+i+'"></div>');try{let e=JSON.parse(n);particlesJS("jltma-particle-"+i,e),setTimeout(function(){window.dispatchEvent(new Event("resize"))},500),setTimeout(function(){window.dispatchEvent(new Event("resize"))},1500)}catch(e){}}}};e(window).on("elementor/frontend/init",function(){elementorFrontend.hooks.addAction("frontend/element_ready/global",n),elementorFrontend.hooks.addAction("frontend/element_ready/container",n)})}(jQuery,window.elementorFrontend); |