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-hover-style.js
var $j = jQuery.noConflict();

$j( document ).ready( function() {

	// Wishlist button
	if ( $j( '.woocommerce ul.products li.product .woo-entry-buttons li.woo-wishlist-btn' ).length ) {

		$j( document ).on( 'click', '.tinvwl_add_to_wishlist_button', function() {
			var $this = $j( this );

			$this.parent().parent().addClass( 'loading' );

			window.setTimeout( function() {
				$this.parent().parent().removeClass( 'loading' );
			}, 1000 );

		} );

	}

	// Thumbnails
	$j( document ).on( 'click', '.woo-product-gallery a.woo-product-gallery-link', function( e ) {
        e.preventDefault();

        var $this 		= $j( this ),
            $img 		= $this.attr( 'href' ),
            $main_img 	= $this.closest( '.product-inner' ).find( '.woo-entry-image-main' );

        if ( $main_img ) {
            $main_img.parent().addClass( 'loading' );
            $main_img.attr( 'src', $img ).attr( 'srcset', $img );

            $main_img.css( {
                '-webkit-transform': 'scale(0.5)',
                '-moz-transform': 'scale(0.5)',
                '-ms-transform': 'scale(0.5)',
                '-o-transform': 'scale(0.5)',
                'transform': 'scale(0.5)',
                'opacity': '0',
                '-webkit-transition': 'all 0.3s ease',
                '-moz-transition': 'all 0.3s ease',
                '-ms-transition': 'all 0.3s ease',
                '-o-transition': 'all 0.3s ease',
                'transition': 'all 0.3s ease',
            } ).load( function() {
                var $image = $j( this );

                setTimeout( function() {
                    $image.css( {
                        '-webkit-transform': 'scale(1)',
                        '-moz-transform': 'scale(1)',
                        '-ms-transform': 'scale(1)',
                        '-o-transform': 'scale(1)',
                        'transform': 'scale(1)',
                        'opacity': '1',
                        '-webkit-transition': 'all 0.3s ease',
                        '-moz-transition': 'all 0.3s ease',
                        '-ms-transition': 'all 0.3s ease',
                        '-o-transition': 'all 0.3s ease',
                        'transition': 'all 0.3s ease',
                    } );

                    $image.parent().removeClass( 'loading' );

                }, 300 );
            } );

            $j( this ).parent().addClass( 'active' ).siblings().removeClass( 'active' );
        }
    } );
});