403Webshell
Server IP : 54.36.91.62  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User : uxhactp ( 169076)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/uxhactp/www/wp-content/themes/astra/assets/js/unminified/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/uxhactp/www/wp-content/themes/astra/assets/js/unminified/sticky-add-to-cart.js
(function() {

    // Triggers sticky add to cart on scroll.
    const astraStickyAddToCart = document.querySelector( ".ast-sticky-add-to-cart" );

    if( astraStickyAddToCart ) {
        const scrollOffset = document.querySelector( '.product .single_add_to_cart_button' ).offsetTop;
        window.addEventListener( "scroll", function() {
            if ( window.scrollY >= scrollOffset ) {
                astraStickyAddToCart.classList.add('is-active');
            } else {
                astraStickyAddToCart.classList.remove('is-active');
            }
        })
    }

    // Smooth scrolls if select option button is active.
    const AstraSmoothScrollBtn = document.querySelector( ".ast-sticky-add-to-cart-action-wrap .single_link_to_cart_button" );
    
    if( AstraSmoothScrollBtn ) {
        AstraSmoothScrollBtn.addEventListener('click', function (e) {
            e.preventDefault();
            document.querySelector(this.getAttribute('href')).scrollIntoView({
                behavior: 'smooth',
            });
        });
    }

})();

Youez - 2016 - github.com/yon3zu
LinuXploit