File Editor
Directories:
.. (Back)
Files:
modal.js
modal.min.js
Create New File
Create
Edit File: modal.min.js
const WPSplash=window.WPSplash||function(e,s,a){const n={init(){a(n.ready)},ready(){n.events(),wpforms_splash_data.triggerForceOpen&&n.openModal()},events(){a(e).on("click",".wpforms-splash-modal-open",function(o){o.preventDefault(),n.openModal()})},openModal(){a.alert({title:!1,content:wp.template("wpforms-splash-modal-content")(),icon:!1,closeIcon:!0,boxWidth:"1000px",theme:"modern",useBootstrap:!1,scrollToPreviousElement:!1,buttons:!1,backgroundDismiss:!0,offsetTop:50,offsetBottom:50,animation:"opacity",closeAnimation:"opacity",animateFromElement:!1,onOpenBefore(){var o=s.innerWidth-e.body.clientWidth+"px";a("body").addClass("wpforms-splash-modal").css("--wpforms-body-scrollbar-width",o),a(".wpforms-challenge-popup-container").addClass("wpforms-invisible"),setTimeout(()=>{navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&a("html, body").animate({scrollTop:0},0),a(".jconfirm-box-container").css("padding-top","50px").animate({opacity:1},30)},0)},onOpen(){a(".jconfirm").css("bottom",0),a(".wpforms-dash-widget-welcome-block").remove(),n.dismissDashboardWidgetBanner()},onDestroy(){a("body").removeClass("wpforms-splash-modal").css("--wpforms-body-scrollbar-width",null)}})},dismissDashboardWidgetBanner(){var o={_wpnonce:wpforms_splash_data.nonce,action:"wpforms_dash_widget_save_widget_meta",meta:"hide_welcome_block",value:1};a.post(ajaxurl,o)}};return n}(document,window,jQuery);WPSplash.init();
Save Changes
Rename File
Rename