PageSourceSearch

https://www.rigamajig.com/wp-content/plugins/oxyultimate-woo-3/assets/js/oumenucart.js?ver=1699490431

js rigamajig.com collected 2026-10-02 15:14:45 UTC 4,961 bytes, 1 lines download raw bytes

1!function(t){OUWooMenuCart=function(t){this.selector=t.selector,this.trigger=t.trigger,this.init()},OUWooMenuCart.prototype={selector:"",trigger:"",init:function(){this._visibility();var e=t(".oumc-wrapper").attr("data-ajaxonsinglebtn");void 0!==e&&"yes"==e&&t(document).on("click",".single_add_to_cart_button",function(e){if($productType=t(e.currentTarget).closest(".type-product"),"undefined"!=typeof $productType&&!$productType.hasClass("product-type-external")){if(e.preventDefault(),"undefined"==typeof wc_add_to_cart_params)return!1;var a=t(this),o=a.closest("form.cart"),r=o.serializeArray(),i=!1,c=o.find("input[name=variation_id]").val()||0;if(t.each(r,function(t,e){if(("productID"===e.name||"add-to-cart"===e.name)&&e.value)return i=!0,!1}),!i)var s=o.attr("action").match(/add-to-cart=([0-9]+)/),n=!!s&&s[1];if(a.attr("name")&&"add-to-cart"==a.attr("name")&&a.attr("value"))n=a.attr("value");n&&r.push({name:"add-to-cart",value:n}),r.push({name:"action",value:"ouwoo_ajax_add_to_cart"}),r.push({name:"variation_id",value:c}),t(document.body).trigger("adding_to_cart",[a,r]),t.ajax({type:"post",url:wc_add_to_cart_params.ajax_url,data:t.param(r),beforeSend:function(t){a.removeClass("added").addClass("loading")},complete:function(t){a.addClass("added").removeClass("loading")},success:function(e){e.error&&e.product_url?window.location=e.product_url:(t(document.body).trigger("added_to_cart",[e.fragments,e.cart_hash,a]),t(".added_to_cart").remove())}})}}),"hover"===this.trigger&&(t("body").delegate("#"+this.selector,"mouseover",t.proxy(this._showCart,this)),t("body").delegate("#"+this.selector,"mouseout",t.proxy(this._hideCart,this)),t("#"+this.selector+" .oumc-cart-btn").on("tap touchstart",t.proxy(this._toggleCart,this))),"click"==this.trigger&&t("#"+this.selector+" .oumc-cart-btn").on("click tap touchstart",t.proxy(this._toggleCart,this)),t(".add_to_cart_button,.single_add_to_cart_button").on("click tap touchstart",function(e){t(e.target).addClass("domc-flytocart")}),t(document).on("added_to_cart removed_from_cart",this._visibility),t(document).on("added_to_cart",this._cartFunctionality),t(document).on("removed_from_cart",function(){"undefined"!=typeof wc_add_to_cart_params&&wc_add_to_cart_params.is_cart&&t(document.body).trigger("wc_update_cart"),("yes"==t(".oumc-wrapper").attr("data-checkoutpage")||t(".woocommerce-checkout-review-order-table").length>0)&&t(document.body).trigger("update_checkout")})},_showCart:function(){t("#"+this.selector).find(".oumc-cart-items").addClass("show-menucart")},_hideCart:function(){t("#"+this.selector).find(".oumc-cart-items").removeClass("show-menucart")},_toggleCart:function(e){t("#"+this.selector).find(".oumc-cart-items").toggleClass("show-menucart"),e.stopPropagation()},_visibility:function(){t(".oumc-wrapper").each(function(){var e=t(this).attr("data-oumc-appearance");if(void 0!==e&&"haveproducts"==e){var a=t(this).find(".cart-counter").text();parseInt(a)>0?t(this).closest(".oxy-ou-minicart").removeAttr("style"):t(this).closest(".oxy-ou-minicart").css("display","none")}})},_cartFunctionality:function(){t(".oumc-wrapper").each(function(){if((t(this).parents(".oxy-header-wrapper").length>0||t(this).parents("header").length>0)&&"none"!==t(this).parents(".oxy-header-wrapper").css("display")&&"yes"==t(this).attr("data-reveal-popup")){var e,a,o=t(this);e=setTimeout(function(){o.closest(".oxy-ou-minicart").find(".oumc-cart-items").addClass("show-menucart")},1500),a=setTimeout(function(){clearTimeout(e),o.closest(".oxy-ou-minicart").find(".oumc-cart-items").removeClass("show-menucart")},4500),o.on("mouseover",".oxy-ou-minicart",function(){clearTimeout(a),t(this).find(".oumc-cart-items").addClass("show-menucart")})}}),t(".domc-flytocart").each(function(){var e=t(this);t(".oumc-wrapper").each(function(){if((t(this).parents(".oxy-header-wrapper").length>0||t(this).parents("header").length>0)&&"none"!==t(this).parents(".oxy-header-wrapper").css("display")){var a=t(this),o=a.attr("data-flytocart"),r=a.attr("data-offsettop"),i=a.attr("data-offsetleft");if(void 0!==o&&"yes"==o){if(t(".woocommerce-product-gallery__image.flex-active-slide").length)var c=t(".woocommerce-product-gallery__image.flex-active-slide").find("img").eq(0);else if(t(".woocommerce-product-gallery__image").length)c=t(".woocommerce-product-gallery__image").find("img").eq(0);else if(t(".atc-product").length)c=t(".atc-product").find("img").eq(0);else c=e.closest(".product").find("img").eq(0);if(null!=c||void 0!==c)c.clone().offset({top:c.offset().top,left
1:c.offset().left}).css({opacity:"0.5",position:"absolute",height:"150px",width:"150px","z-index":"100"}).appendTo(t("body")).animate({top:a.offset().top-parseInt(r),left:a.offset().left-parseInt(i),width:75,height:75},1e3,function(t,e,a,o,r){return 0==e?a:e==r?a+o:(e/=r/2)<1?o/2*Math.pow(2,10*(e-1))+a:o/2*(2-Math.pow(2,-10*--e))+a}).animate({width:0,height:0},function(){t(this).detach(),e.removeClass("domc-flytocart")})}}})})}}}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.