www.mamillerlab.com Open in urlscan Pro
2606:4700:3036::6815:18c1  Public Scan

Submitted URL: http://www.mamillerlab.com/wp-content/plugins/js-composer/assets/js/vendors/woocommerce-add-to-cart.js?ver=5.0.1
Effective URL: https://www.mamillerlab.com/wp-content/plugins/js-composer/assets/js/vendors/woocommerce-add-to-cart.js?ver=5.0.1
Submission: On March 18 via api from US — Scanned from US

Form analysis 0 forms found in the DOM

Text Content

window.jQuery( document ).ready( function ( $ ) {
	$( 'body' ).on( 'adding_to_cart', function ( event, $button, data ) {
		$button && $button.hasClass( 'vc_gitem-link' ) && $button
			.addClass( 'vc-gitem-add-to-cart-loading-btn' )
			.parents( '.vc_grid-item-mini' )
			.addClass( 'vc-woocommerce-add-to-cart-loading' )
			.append( $( '<div class="vc_wc-load-add-to-loader-wrapper"><div class="vc_wc-load-add-to-loader"></div></div>' ) );
	} ).on( 'added_to_cart', function ( event, fragments, cart_hash, $button ) {
		if ( 'undefined' === typeof($button) ) {
			$button = $( '.vc-gitem-add-to-cart-loading-btn' );
		}
		$button && $button.hasClass( 'vc_gitem-link' ) && $button
			.removeClass( 'vc-gitem-add-to-cart-loading-btn' )
			.parents( '.vc_grid-item-mini' )
			.removeClass( 'vc-woocommerce-add-to-cart-loading' )
			.find( '.vc_wc-load-add-to-loader-wrapper' ).remove();
	} );
} );