← Back
Editing: scripts.min.js
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,e,c){a instanceof String&&(a=String(a));for(var d=a.length,f=0;f<d;f++){var g=a[f];if(e.call(c,g,f,a))return{i:f,v:g}}return{i:-1,v:void 0}};$jscomp.defineProperty="function"==typeof Object.defineProperties?Object.defineProperty:function(a,e,c){a!=Array.prototype&&a!=Object.prototype&&(a[e]=c.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a}; $jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,e,c,d){if(e){c=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var f=a[d];f in c||(c[f]={});c=c[f]}a=a[a.length-1];d=c[a];e=e(d);e!=d&&null!=e&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:e})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,c){return $jscomp.findInternal(this,a,c).v}},"es6-impl","es3"); (function(a){if(Themify.is_builder_active||0<a("form.builder-contact").length){var e=function(b,c){var h=a(".module-contact.contact-animated-label",b);b&&b.hasClass("contact-animated-label")&&(h=h.add(b));0<h.length&&(h.find("input,textarea").prop("placeholder","").trigger("blur"),setTimeout(function(){h.find("label").css({"-webkit-transition-property":"top, left","-webkit-transition-duration":"0.3s","transition-property":"top, left","transition-duration":"0.3s",visibility:"visible"})},50))},c=function(b){0< a(".builder-contact-field-captcha",b).length?"undefined"===typeof grecaptcha?Themify.LoadAsync("//www.google.com/recaptcha/api.js",d,"",!0,function(){return"undefined"!==typeof grecaptcha}):d():d()},d=function(){if(!Themify.is_builder_active)g.on("submit",".builder-contact",function(b){b.preventDefault();if(a(this).hasClass("sending"))return!1;a(this).addClass("sending").find(".contact-message").fadeOut();f(a(this))})},f=function(b){var c={action:"builder_contact_send","contact-name":a('[name="contact-name"]', b).val(),"contact-email":a('[name="contact-email"]',b).val(),"contact-subject":a('[name="contact-subject"]',b).val(),"contact-message":a('[name="contact-message"]',b).val(),"contact-sendcopy":a('[name="send-copy"]',b).val(),"contact-settings":a(".builder-contact-form-data",b).html()};0<b.find('[name="g-recaptcha-response"]').length&&(c["contact-recaptcha"]=b.find('[name="g-recaptcha-response"]').val());a.ajax({url:b.prop("action"),method:"POST",data:c,dataType:"json",success:function(a){a&&a.themify_message&& (b.find(".contact-message").html(a.themify_message).fadeIn(),b.removeClass("sending"),a.themify_success?(g.trigger("builder_contact_message_sent",[b,a.themify_message]),b[0].reset()):g.trigger("builder_contact_message_failed",[b,a.themify_message]),"object"===typeof grecaptcha&&grecaptcha.reset())}})},g=a("body");g.on("focus",".module-contact.contact-animated-label input, .module-contact.contact-animated-label textarea",function(){var b=a("label[for='"+a(this).prop("id")+"']");0===b.length&&(b=a(this).closest(".builder-contact-field").find("label")); b.css({top:0,left:0})}).on("blur",".module-contact.contact-animated-label input, .module-contact.contact-animated-label textarea",function(){if(""===a(this).val()){var b=a("label[for='"+a(this).prop("id")+"']");0===b.length&&(b=a(this).closest(".builder-contact-field").find("label"));var c=b.next(".control-input").find("input,textarea");"TEXTAREA"===c.prop("tagName")?b.css("top",b.outerHeight()/2+c.outerHeight()/parseInt(c.prop("rows"))+"px"):b.css("top",b.outerHeight()/2+c.outerHeight()/2+"px"); b.css("left","10px")}});if(Themify.is_builder_active)g.on("builder_load_module_partial",function(a,d,f){e(d,f);c(d)});c();e()}})(jQuery);
Save File
Cancel