????JFIF??x?x????'403WebShell
403Webshell
Server IP : 79.136.114.73  /  Your IP : 3.137.154.13
Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f
System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64
User : www-data ( 33)
PHP Version : 5.5.9-1ubuntu4.29
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/www.astacus.se/wp-content/themes/storefront/assets/js/woocommerce/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www.astacus.se/wp-content/themes/storefront/assets/js/woocommerce/checkout.js
jQuery( window ).load( function() {
	var windowHeight	= jQuery( window ).height();
	var paymentHeight	= jQuery( '#order_review' ).height();

	/**
	 * Make the order review element stick to the top of the browser window.
	 */
	function stickyPayment() {
		if ( ! jQuery( '#order_review_heading' ).length || ! jQuery( 'form.woocommerce-checkout' ).length || ! jQuery( '#customer_details' ).length ) {
			return;
		}

		var tallestPaymentBox = -1;
		jQuery( '.payment_box' ).each( function() {
			tallestPaymentBox = tallestPaymentBox > jQuery( this ).outerHeight() ? tallestPaymentBox : jQuery( this ).outerHeight();
		});

		var topDistance           = jQuery( document ).scrollTop();
		var paymentWidth          = jQuery( '#order_review_heading' ).outerWidth();
		var	checkoutWidth         = jQuery( 'form.woocommerce-checkout' ).outerWidth();
		var	addressWidth          = jQuery( '#customer_details' ).outerWidth();
		var	gutter                = checkoutWidth - addressWidth - paymentWidth;
		var	paymentOffset         = addressWidth + gutter;
		var checkoutPosition      = jQuery( '#order_review_heading' ).offset();
		var currentPaymentBox     = jQuery( '.wc_payment_method input:checked' ).siblings( '.payment_box' ).outerHeight();
		var termsHeight           = 0; // If terms aren't being displayed don't include their height in calculations
		if ( jQuery( '.wc-terms-and-conditions' ).length ) {
			termsHeight           = 216; // This is static and set by WooCommerce core + 16px margin added by Storefront
		}
		var expandedHeight        = paymentHeight + termsHeight + ( tallestPaymentBox - currentPaymentBox + 30 );
		var customerDetailsHeight = jQuery( '#customer_details' ).outerHeight();

		// If we're in desktop orientation and the order review column is taller than the customer details column and smaller than the window height
		if ( ( jQuery( window ).width() > 768 ) && ( customerDetailsHeight > expandedHeight ) && ( windowHeight > expandedHeight ) ) {

				if ( topDistance > checkoutPosition.top ) {
					jQuery( '#order_review' ).addClass( 'payment-fixed' );
					if ( jQuery( '#order_review' ).css( 'direction' ) === 'rtl' ) {
						jQuery( '#order_review' ).css({
							'margin-right':		paymentOffset,
							'width':			paymentWidth
						});
					} else {
						jQuery( '#order_review' ).css({
							'margin-left':		paymentOffset,
							'width':			paymentWidth
						});
					}
				} else {
					jQuery( '#order_review' ).removeAttr( 'style' ).removeClass( 'payment-fixed' );
				}
		}
	}

	// Do sticky on scroll
	jQuery( window ).scroll( function() {
		stickyPayment();
	});

	// Do sticky on window resize
	jQuery( window ).resize( function() {
		stickyPayment();
	});
});

Youez - 2016 - github.com/yon3zu
LinuXploit