| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/business/mpa/wp-content/plugins/w3-total-cache/ |
Upload File : |
/**
* File: Minify_GeneralPage_View_ShowHelp.js
*
* @since 2.10.0
*
* @package W3TC
*/
/**
* Opens the minify enablement confirmation lightbox.
*
* @since 2.0.0
*
* @return void
*/
function w3tc_show_minify_help() {
W3tc_Lightbox.open({
id: "w3tc-overlay",
close: "",
width: 800,
height: 610,
url:
ajaxurl +
"?action=w3tc_ajax&_wpnonce=" +
w3tcGetAjaxNonce("minify_help") +
"&w3tc_action=minify_help",
callback: function (lightbox) {
jQuery(".btn-primary", lightbox.container).click(function () {
jQuery(document).off("keyup.w3tc_lightbox"); // Cleanup event listener.
lightbox.close();
});
jQuery(".lightbox-close").click(function () {
jQuery("#minify__enabled").prop("checked", false);
jQuery(document).off("keyup.w3tc_lightbox"); // Cleanup event listener.
lightbox.close();
});
jQuery(document).on("keyup.w3tc_lightbox", function (e) {
if ("Escape" === e.key) {
jQuery("#minify__enabled").prop("checked", false);
jQuery(document).off("keyup.w3tc_lightbox"); // Cleanup event listener.
lightbox.close();
}
});
lightbox.resize();
},
});
}
jQuery(function ($) {
$("#minify__enabled").click(function () {
var checked = $(this).is(":checked");
if (!checked) return;
w3tc_show_minify_help();
});
});