Plugin Directory

Changeset 2567664


Ignore:
Timestamp:
07/19/2021 10:32:43 PM (5 years ago)
Author:
ctrify
Message:

Updating version 1.0.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ctrify/tags/1.0.6/js/ctrify-script.js

    r2567463 r2567664  
    7373confirmButtonText:"Next &rarr;",showCancelButton:!0,reverseButtons:!0,progressSteps:a}).queue(e).then(function(f){f.value&&(c=f.value,swal.fire({title:"All ready!",html:'<br><div style="text-align:justify;">\n                     You are about to create a capaign for the keyword:<br><br> <strong> '+f.value[1]+" </strong> with a limit of <strong> "+f.value[3]+" </strong> processed questions "+(""!=f.value[1]?"<br><br><b>Negative Keywords:</b><br><br>":"")+" "+(""!=f.value[2]?f.value[2].split("\n").map(function(l){return"<li>"+
    7474l+"</li>"}).join(""):"")+"<br><br>\n              ",confirmButtonText:"Create Campaign!",confirmButtonColor:"#6eb78a",showCancelButton:!0,cancelButtonColor:"rgb(230, 141, 83)",reverseButtons:!0}).then(function(l){l.value&&(l={type:"question",country:c[0],keyword:c[1],negatives:""!=c[2]?c[2].split(/\r?\n/):"",limit:c[3],autoAnswear:m,is:ctrify.is,translateTo:g,catID:d,catName:h},n("createCampaign",btoa(unescape(encodeURIComponent(JSON.stringify(l)))),!0,"ctrify_processnewCampaign"))}))})});b(document.body).on("click",
    75 ".ctrify_learn_more",function(a){a.preventDefault();(a=void 0!=ctrify.learn_more[b(this).attr("tp")]?ctrify.learn_more[b(this).attr("tp")]:!1)&&window.open(a,"_blank")});(function(){b(".ctrify_learn_more").hide();Object.keys(ctrify.learn_more).forEach(function(a){b(".more_"+a).show()})})();b(".ctrify_save_settings").on("click",function(a){a.preventDefault();p(ctrify.saving);a=A();n("testApiKeys",btoa(unescape(encodeURIComponent(JSON.stringify(a)))),!0,"ctrify_saveWPCTRForm")});b.ctify_QueryString=
    76 function(){for(var a={},c=window.location.search.substring(1).split("&"),g=0;g<c.length;g++){var d=c[g].split("=");if("undefined"===typeof a[d[0]])a[d[0]]=decodeURIComponent(d[1]);else if("string"===typeof a[d[0]]){var h=[a[d[0]],decodeURIComponent(d[1])];a[d[0]]=h}else a[d[0]].push(decodeURIComponent(d[1]))}return a}();if(void 0!=b.ctify_QueryString.paypal&&"cancel"!=b.ctify_QueryString.paypal){var B={payerID:b.ctify_QueryString.PayerID,authtoken:b.ctify_QueryString.token,what:b.ctify_QueryString.paypal,
     75".ctrify_learn_more",function(a){a.preventDefault();(a=void 0!=ctrify.learn_more[b(this).attr("tp")]?ctrify.learn_more[b(this).attr("tp")]:!1)&&window.open(a,"_blank")});(function(){b(".ctrify_learn_more").hide();void 0!=ctrify.learn_more&&Object.keys(ctrify.learn_more).forEach(function(a){b(".more_"+a).show()})})();b(".ctrify_save_settings").on("click",function(a){a.preventDefault();p(ctrify.saving);a=A();n("testApiKeys",btoa(unescape(encodeURIComponent(JSON.stringify(a)))),!0,"ctrify_saveWPCTRForm")});
     76b.ctify_QueryString=function(){for(var a={},c=window.location.search.substring(1).split("&"),g=0;g<c.length;g++){var d=c[g].split("=");if("undefined"===typeof a[d[0]])a[d[0]]=decodeURIComponent(d[1]);else if("string"===typeof a[d[0]]){var h=[a[d[0]],decodeURIComponent(d[1])];a[d[0]]=h}else a[d[0]].push(decodeURIComponent(d[1]))}return a}();if(void 0!=b.ctify_QueryString.paypal&&"cancel"!=b.ctify_QueryString.paypal){var B={payerID:b.ctify_QueryString.PayerID,authtoken:b.ctify_QueryString.token,what:b.ctify_QueryString.paypal,
    7777sid:localStorage.pid,token:ctrify.is,paypal_email:ctrify.paypal_email};setTimeout(function(){p(ctrify.retrieving)},100);n("doCapture",btoa(unescape(encodeURIComponent(JSON.stringify(B)))),!0,"ctify_confirmCapture")}(function(){var a=window.location.href.includes("edit.php")?window.location.href:window.location.href.split("?")[0].split("#")[0]+"?page=ctrify-settings";window.history.replaceState({html:a,pageTitle:document.title},"",a);window.addEventListener("popstate",function(c){history.pushState(null,
    7878document.title,location.href)})})();b(document.body).on("click",".requestctriftreview",function(a){a.preventDefault();var c={};a=b(this).parent("span").parent("div").children("span").children("a").attr("href").split("?")[1].split("&");for(var g=0;g<a.length;g++){var d=a[g].split("=");if("undefined"===typeof c[d[0]])c[d[0]]=decodeURIComponent(d[1]);else if("string"===typeof c[d[0]]){var h=[c[d[0]],decodeURIComponent(d[1])];c[d[0]]=h}else c[d[0]].push(decodeURIComponent(d[1]))}var m=!1;a=["1"];g=[];
Note: See TracChangeset for help on using the changeset viewer.