HEX
Server: Apache/2.4.65 (Ubuntu)
System: Linux ielts-store-v2 6.8.0-1036-gcp #38~22.04.1-Ubuntu SMP Thu Aug 14 01:19:18 UTC 2025 x86_64
User: root (0)
PHP: 7.2.34-54+ubuntu20.04.1+deb.sury.org+1
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/html/ielts-store/wp-content/themes/oceanwp/assets/js/third/woo/woo-floating-bar.min.js
!function(i){i(document).scroll(function(){var t=i(".woocommerce div.product .woocommerce-tabs"),a=t.offset().top,e=i(".owp-floating-bar"),o=0,r=i("#wpadminbar"),d=i("#top-bar-sticky-wrapper"),n=i("#top-bar-wrap"),c=i("#site-header");t.length&&(r.length&&600<i(window).width()&&(o+=r.outerHeight()),d.length&&(o+=n.outerHeight()),c.length&&(c.hasClass("top-header")?o+=c.find(".header-top").outerHeight():c.hasClass("medium-header")?i("#site-header .bottom-header-wrap").hasClass("fixed-scroll")?o+=c.find(".bottom-header-wrap").outerHeight():o+=i(".is-sticky #site-header-inner").outerHeight():c.hasClass("center-header")||c.hasClass("custom-header")?o+=c.outerHeight():c.hasClass("vertical-header")||c.hasClass("fixed-scroll")&&(o+=c.data("height"))),a-=o,e.css("top",o),i(window).scroll(function(){i(this).scrollTop()>a?e.addClass("show"):e.removeClass("show")}),i(".owp-floating-bar button.button.top").on("click",function(t){t.preventDefault();var a,e=i(".woocommerce div.product .cart");e.length&&(a=e.offset().top-o,i("html, body").stop().animate({scrollTop:Math.round(a)},1e3))}))});function t(){i(document.body).on("click",".owp-floating-bar .floating_add_to_cart_button",this.onAddToCart).on("added_to_cart",this.updateButton)}t.prototype.onAddToCart=function(t){t.preventDefault();var a=i(this),e=i(this).val(),o=i('input[name="quantity"]').val();a.removeClass("added"),a.addClass("loading"),i.ajax({url:oceanwpLocalize.ajax_url,type:"POST",data:"action=oceanwp_add_cart_floating_bar&product_id="+e+"&quantity="+o,success:function(t){i(document.body).trigger("wc_fragment_refresh"),i(document.body).trigger("added_to_cart",[t.fragments,t.cart_hash,a]),"yes"!==oceanwpLocalize.cart_redirect_after_add||(window.location=oceanwpLocalize.cart_url)}})},t.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 t}(jQuery);