function getLoadingPageData(){var e=jQuery("#customize-preview iframe").contents().find("#mya_data").attr("data-page"),a=jQuery("#customize-preview iframe").contents().find("#mya_data").attr("data-id");if("null"!=e){jQuery('a[href="#this_page_lds"]').show();var t=returnPageNameSettingLsc(e)}else jQuery('a[href="#this_page_lds"]').hide();$("#only-this-page").text(t),jQuery.ajax({type:"POST",dataType:"json",url:ldsajax.ajaxurl,data:{action:"galoover_ae_get_loading_page_data_active",page:e,id:a},success:function(e,a,t){createLoadingPage(e.data)},error:function(e,a,t){}})}function createLoadingPageInAdmin(e,a,t){var n=jQuery("#customize-preview iframe").contents().find("html");jQuery(n).append("
");var r=jQuery("#customize-preview iframe").contents().find(".mya-lp-screen"),i=jQuery("#customize-preview iframe").contents().find(".mya-lp-screen .loading"),o={width:"100%",height:"100%",position:"fixed",zIndex:999999,top:0,left:0,display:"flex"};o["background-color"]=e.background_color,""!==e.background_image&&(o["background-image"]="url("+e.background_image+")","center"===e.background_image_repeat?(o["background-repeat"]="no-repeat","1"===e.enable_fullsize&&(o["background-attachment"]="fixed",o["-webkit-background-size"]="contain",o["-moz-background-size"]="contain",o["-o-background-size"]="contain",o["background-size"]="contain")):o["background-repeat"]="repeat",o["background-position"]="center center"),jQuery(r).css(o),jQuery(i).append(a).append("")}function createLoadingPage(e){var a=(jQuery("#customize-preview iframe"),e.loadingPageSetting),t=e.loadingTemplate,n=e.loadingFixCss;a&&createLoadingPageInAdmin(a,t,n)}function returnPageNameSettingLsc(e){if(e){var a;switch(e){case"home":a="Homepage";break;case"front":a="Front page";break;case"page":a="this page";break;case"post":a="this post";break;case"category":a="this category";break;case"search":a="search results page";break;case"404":a="not found page";break;default:a="this page"}return a}}