Файловый менеджер - Редактировать - /home/kunzqhe/photostocker/wp-content/themes/themify-ultra/themify/themify-builder/js/modules/optin.min.js
Ðазад
(($,o)=>{"use strict";o.on("builder_load_module_partial",(e,t)=>{if(!0!==t||e.classList.contains("module-optin")){const a=o.selectWithParent("tb_optin_form",e);0<a.length&&o.requestIdleCallback(()=>{(t=>{const s=async e=>{const t=new FormData(e),a=e.querySelector('[name="g-recaptcha-response"]');null!==a&&t.set("contact-recaptcha",a.value);try{const c=await o.fetch(t);c.success?"s1"===e.dataset.success?window.location.href=c.data.redirect:$(e).fadeOut().closest(".module").find(".tb_optin_success_message").fadeIn():console.log(c.data.error)}catch(e){}e.classList.remove("processing"),"object"==typeof grecaptcha&&n&&"v2"===n.dataset.ver&&grecaptcha.reset()},a=c=>{o.is_builder_active||c.tfOn("submit",function(e){e.preventDefault();const a=this;if(a.classList.contains("processing"))return!1;a.className+=" processing";const t=c.tfClass("themify_captcha_field")[0];t&&"v3"===t.dataset.ver&&"undefined"!=typeof grecaptcha?grecaptcha.ready(()=>{grecaptcha.execute(t.dataset.sitekey,{action:"captcha"}).then(e=>{const t=document.createElement("input");t.type="hidden",t.name="g-recaptcha-response",t.value=e,a.prepend(t),s(a)})}):s(a)})},n=t.tfClass("themify_captcha_field")[0];if(n&&"undefined"==typeof grecaptcha){const c=n.dataset.sitekey;if(c){let e="https://www.google.com/recaptcha/api.js";"v3"===n.dataset.ver&&(e+="?render="+c),o.loadJs(e,"undefined"!=typeof grecaptcha,!1).then(()=>{a(t)})}}else a(t)})(a[0])},300)}})})(jQuery,Themify);
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка