HEX
Server: Apache
System: Linux cp4.skywebbox.com 5.14.0-503.15.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Nov 28 07:25:19 EST 2024 x86_64
User: alfouzantranspor (1054)
PHP: 8.3.23
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/alfouzantranspor/www/wp-content/themes/astra/assets/js/minified/sticky-add-to-cart.min.js
(()=>{let e=document.querySelector(".ast-sticky-add-to-cart");if(e){let t=document.querySelector(".product .single_add_to_cart_button").offsetTop;window.addEventListener("scroll",function(){window.scrollY>=t?e.classList.add("is-active"):e.classList.remove("is-active")})}var t=document.querySelector(".ast-sticky-add-to-cart-action-wrap .single_link_to_cart_button"),o=document.querySelector(".single_add_to_cart_button");if(t&&o){o=document.querySelector(".single_add_to_cart_button").offsetTop;if(o){let e=o-230;e&&t.addEventListener("click",function(t){t.preventDefault(),window.scrollTo({top:e,behavior:"smooth"})})}}})();