zZzzZ.
home2
/
zrzvbdry
/
public_html
/
wp-content
/
plugins
/
wp-clone-by-wp-academy
/
promotion
/
assets
New Folder
Editing: script.min.js
Save
Cancel
jQuery(document).ready(function(t){let n,e=2;function i(t){t.parents(".ib-banners-wrapper").hide(300)}function s(){e<3?(e++,t("#ib-t-now-dots").text(".".repeat(e))):(e=1,t("#ib-t-now-dots").text("."))}function a(i){!function(t){let i=t.find(".ib-btn").find(".ib-text-center");i.html('Installing<span id="ib-t-now-dots">.</span>'),clearInterval(n),e=1,t.find(".ib-btn").css({padding:"5px 12px 6px 12px",pointerEvents:"none"}),i.css({margin:"0 auto"}),t.find(".ib-arrow-icon").hide(),n=setInterval(s,600)}(i);let a={action:"insPP_ajax",classes:l(i),method:"install",nonce:invr_recommendation.nonce};t.post(ajaxurl,a).done(function(t){let n=!1;(function(t){try{JSON.parse(t)}catch(n){if("string"==typeof t){let n=f(t),e=n.indexOf("}");e=0==e?t.length:-e,t=t.slice(t.indexOf("{"),e);try{JSON.parse(t)}catch(t){return!1}return!0}return!1}return!0})(t)&&(t=function(t){try{JSON.parse(t)}catch(n){if("string"==typeof t){let n=f(t),e=n.indexOf("}");e=0==e?t.length:-e,t=t.slice(t.indexOf("{"),e);try{JSON.parse(t)}catch(t){return!1}return JSON.parse(t)}return!1}return JSON.parse(t)}(t)),"string"==typeof t&&(n=t.includes('"success":true,"data"')),1==n?r(i,classes):!0===t.success?r(i,classes,t.data.url):!1===t.success?o(i,a.classes,t.data.url):o(i,a.classes)}).fail(function(){o(i,a.classes)}).always(function(){clearInterval(n)})}function r(t,n,e=!1){t.find(".ib-btn").find(".ib-text-center").text("Installed successfully"),e?window.location.href=e:c(n)}function c(n){let e=t("#ib-insPP-aurl").text().trim();e.length>0&&n.includes("-1")?window.location.href=e+"plugin-install.php?s=MyPopUps&tab=search&type=term":e.length>0&&n.includes("-2")?window.location.href=e+"plugin-install.php?s=Migrate&tab=search&type=author":e.length>0&&n.includes("-3")?window.location.href=e+"plugin-install.php?s=CopyDeletePosts&tab=search&type=author":window.location.reload()}function o(t,n,e=!1){t.find(".ib-btn").find(".ib-text-center").text("Installation failed"),setTimeout(function(){e?window.location.href=e:c(n)},1e3)}function l(t){return t.get(0).classList.value}function u(t){return t.parents(".ib-banner")}function f(t){return"string"==typeof t?""===t?"":f(t.substr(1))+t.charAt(0):t}t(".ib-banners-wrapper").on("click",".ib-close-btn",function(n){let e=u(t(n.target));!function(n){t.post(ajaxurl,{action:"insPP_ajax",classes:l(n),method:"dismiss",nonce:invr_recommendation.nonce})}(e),i(e)}),t(".ib-banners-wrapper").on("click",".ib-btn",function(n){a(u(t(n.target)))}),t(".ib-banners-wrapper").on("click",".ib-remind",function(n){let e=u(t(n.target));i(e),function(n){t.post(ajaxurl,{action:",nonce:invr_recommendation.nonce",classes:l(n),method:"remind",nonce:invr_recommendation.nonce})}(e)})});