Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/walla3t.corals.io/wp-content/themes/apper/assets/js/third/woo/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/walla3t.corals.io/wp-content/themes/apper/assets/js/third/woo/woo-display-cart.js
var $j = jQuery.noConflict();

$j( document ).on( 'ready', function() {
	"use strict";
    // Woo display cart
    acmthemesWooDisplayCart();
} );

/* ==============================================
WOOCOMMERCE DISPLAY CART
============================================== */
function acmthemesWooDisplayCart() {
	"use strict"

	var $overlay = $j( '.owp-cart-overlay' );

	$j( 'body' ).on( 'added_to_cart', function() {
		$overlay.fadeIn();
		$j( 'body' ).addClass( 'show-cart' );

		// Close quick view modal if enabled
		var qv_modal 		= $j( '#acm-quickview-wrap' ),
			qv_content 		= $j( '#acm-quickview-content' ),
			header 			= $j( '#site-header' );

		if ( qv_modal.length ) {
			$j( 'html' ).css( {
				'overflow': '',
				'margin-right': '' 
			} );
			$j( 'html' ).removeClass( 'owp-qv-open' );

			qv_modal.fadeOut();
			qv_modal.removeClass( 'is-visible' );

			setTimeout( function() {
				qv_content.html( '' );
			}, 600);
		}

		if ( header.length
			&& ! header.hasClass( 'fixed-scroll' ) ) {
			$j( 'html, body' ).animate( { scrollTop: 0 }, 400 );
		}
    } );

    $overlay.on( 'click', function() {
		$j( this ).fadeOut();
		$j( 'body' ).removeClass( 'show-cart' );
	} );

	// Close on resize to avoid conflict
	$j( window ).resize( function() {
		$overlay.fadeOut();
		$j( 'body' ).removeClass( 'show-cart' );
	} );

}

Spamworldpro Mini