![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/www/wp-content/themes/dt-the7/js/compatibility/elementor/ |
jQuery((function(e){e(window).on("elementor/frontend/init",(function(){class e{constructor(e){this.$widget=e,this.widgetId=e.data("id"),this.settings=new The7ElementorSettings(e);const t=elementorFrontend.isEditMode()||elementorFrontend.isWPPreviewMode();this.rememeberBeingClosed=!t&&this.settings.getSettings("close_banner_for_session")}getClosed(){let e=the7Cookies.get("the7_closed_banner_widgets");return e?JSON.parse(e):[]}isClosed(){return!!this.rememeberBeingClosed&&this.getClosed().includes(this.widgetId)}setClosed(){if(!this.rememeberBeingClosed)return;let e=this.getClosed();e.includes(this.widgetId)||(e.push(this.widgetId),the7Cookies.set("the7_closed_banner_widgets",JSON.stringify(e),!1,"/"))}}elementorFrontend.hooks.addAction("frontend/element_ready/the7-banner.default",(function(t,s){const n=new e(t);n.isClosed()?t.hide().remove():t.removeClass("hidden"),t.find(".close-button-container .close-button").on("click",(function(){n.setClosed(),t.css("opacity","0").stop(!0,!0).slideUp(250,(()=>{t.remove(),window.scrollTo(0,window.scrollY+1),window.scrollTo(0,window.scrollY-1)}))}))}))}))}));