𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/docteuh/www/jost/serverhttpson/01/general//avada-woocommerce-single.js
jQuery.fn.serializeArrayAll=function(){var e=/\r?\n/g;return this.map(function(){return this.elements?jQuery.makeArray(this.elements):this}).map(function(r,t){var o=jQuery(this).val();return null===o?null===o:"checkbox"===this.type&&!1===this.checked?{name:this.name,value:this.checked?this.value:""}:"radio"!==this.type?jQuery.isArray(o)?jQuery.map(o,function(r,o){return{name:t.name,value:r.replace(e,"\r\n")}}):{name:t.name,value:o.replace(e,"\r\n")}:this.checked?{name:this.name,value:this.checked?this.value:""}:void 0}).get()},jQuery(document).ready(function(){jQuery(document.body).on("click",".single_add_to_cart_button:not(.disabled)",function(e){var r=jQuery(this),t=r.closest("form.cart"),o=t.find('input:not([name="product_id"]), select, button, textarea').serializeArrayAll()||0;e.preventDefault(),r.find("span").length||r.wrapInner("<span></span>"),jQuery(document.body).trigger("adding_to_cart",[r,o]),jQuery.ajax({type:"POST",url:t.attr("action"),data:o,beforeSend:function(){r.removeClass("added").addClass("loading")},complete:function(){r.addClass("added").removeClass("loading")},success:function(e){e.error&&e.product_url?window.location=e.product_url:(!e.fragments&&jQuery(e).find(".woocommerce-notices-wrapper").length&&jQuery(".woocommerce-notices-wrapper").each(function(r){jQuery(this).replaceWith(jQuery(e).find(".woocommerce-notices-wrapper").eq(r))}),jQuery(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash,r]))}})}).on("added_to_cart",function(e){var r,t,o=0;jQuery(".woocommerce-error, .woocommerce-message, .woocommerce-info").length&&(r=fusion.getAdminbarHeight(),t=jQuery(".fusion-header-wrapper").find("div"),o=0,t.each(function(){"fixed"===jQuery(this).css("position")&&(o=jQuery(this).height())}),jQuery("html, body").stop(),jQuery("html, body").animate({scrollTop:jQuery(".woocommerce-error, .woocommerce-message, .woocommerce-info").offset().top-r-o},500))})});