403Webshell
Server IP : 66.241.125.127  /  Your IP : 216.73.216.50
Web Server : Apache/2.4.67 (Debian)
System : Linux 68372e0bd90938 6.12.91-fly #1 SMP PREEMPT_DYNAMIC Mon Jun 1 15:49:04 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /.fly-upper-layer/var/www/html/wp-content/themes/storefront/assets/js/woocommerce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /.fly-upper-layer/var/www/html/wp-content/themes/storefront/assets/js/woocommerce/header-cart.js
/**
 * Makes the header cart content scrollable if the height of the dropdown exceeds the window height.
 * Mouseover is used as items can be added to the cart via ajax and we'll need to recheck.
 */
( function () {
	if (
		document.body.classList.contains( 'woocommerce-cart' ) ||
		document.body.classList.contains( 'woocommerce-checkout' ) ||
		window.innerWidth < 768 ||
		! document.getElementById( 'site-header-cart' )
	) {
		return;
	}

	window.addEventListener( 'load', function () {
		const cart = document.querySelector( '.site-header-cart' );

		cart.addEventListener( 'mouseover', function () {
			const windowHeight = window.outerHeight,
				cartBottomPos =
					this.querySelector(
						'.widget_shopping_cart_content'
					).getBoundingClientRect().bottom + this.offsetHeight,
				cartList = this.querySelector( '.cart_list' );

			if ( cartBottomPos > windowHeight ) {
				cartList.style.maxHeight = '15em';
				cartList.style.overflowY = 'auto';
			}
		} );
	} );
} )();

Youez - 2016 - github.com/yon3zu
LinuXploit