HEX
Server: Apache
System: Linux webm005.cluster114.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: epubdjye (129326)
PHP: 8.5.7
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/e/p/u/epubdjye/www17/wp-content/themes/oceanwp/assets/js/third/woo/woo-floating-bar.min.js
!function(t){t(document).scroll(function(){var a=t(".woocommerce div.product .woocommerce-tabs"),e=a.offset().top,o=t(".owp-floating-bar"),r=0,d=t("#wpadminbar"),n=t("#top-bar-sticky-wrapper"),c=t("#top-bar-wrap"),i=t("#site-header");a.length&&(d.length&&t(window).width()>600&&(r+=d.outerHeight()),n.length&&(r+=c.outerHeight()),i.length&&(i.hasClass("top-header")?r+=i.find(".header-top").outerHeight():i.hasClass("medium-header")?t("#site-header .bottom-header-wrap").hasClass("fixed-scroll")?r+=i.find(".bottom-header-wrap").outerHeight():r+=t(".is-sticky #site-header-inner").outerHeight():i.hasClass("center-header")||i.hasClass("custom-header")?r+=i.outerHeight():i.hasClass("vertical-header")?r=r:i.hasClass("fixed-scroll")&&(r+=i.data("height"))),e-=r,o.css("top",r),t(window).scroll(function(){t(this).scrollTop()>e?o.addClass("show"):o.removeClass("show")}),t(".owp-floating-bar button.button.top").on("click",function(a){a.preventDefault();var e,o=t(".woocommerce div.product .cart");o.length&&(e=o.offset().top-r,t("html, body").stop().animate({scrollTop:Math.round(e)},1e3))}))});var a=function(){t(document.body).on("click",".owp-floating-bar .floating_add_to_cart_button",this.onAddToCart).on("added_to_cart",this.updateButton)};a.prototype.onAddToCart=function(a){a.preventDefault();var e=t(this),o=t(this).val(),r=t('input[name="quantity"]').val();e.removeClass("added"),e.addClass("loading"),t.ajax({url:oceanwpLocalize.ajax_url,type:"POST",data:"action=oceanwp_add_cart_floating_bar&product_id="+o+"&quantity="+r,success:function(a){t(document.body).trigger("wc_fragment_refresh"),t(document.body).trigger("added_to_cart",[a.fragments,a.cart_hash,e]),"yes"!==oceanwpLocalize.cart_redirect_after_add||(window.location=oceanwpLocalize.cart_url)}})},a.prototype.updateButton=function(t,a,e,o){(o=void 0!==o&&o)&&(o.removeClass("loading"),o.addClass("added"),oceanwpLocalize.is_cart||0!==o.parent().find(".added_to_cart").length||o.after(' <a href="'+oceanwpLocalize.cart_url+'" class="added_to_cart wc-forward" title="'+oceanwpLocalize.view_cart+'">'+oceanwpLocalize.view_cart+"</a>"))},new a}(jQuery);