403Webshell
Server IP : 172.67.214.6  /  Your IP : 216.73.216.126
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : OFF |  Pkexec : OFF
Directory :  /var/softaculous/sitepad/editor/site-data/plugins/speedycache-pro/assets/js/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /var/softaculous/sitepad/editor/site-data/plugins/speedycache-pro/assets/js/delayjs.js
(function(){
let speedycache_js_events = ['mouseover','click','keydown','wheel','touchmove','touchstart'],
speedycache_djs_timeout = setTimeout(speedycache_delay_event, 10000);

speedycache_js_events.forEach((event) => {
	window.addEventListener(event, speedycache_delay_event, {passive: true});
});

function speedycache_delay_event(){
	
	speedycache_js_events.forEach((event) => {
		window.removeEventListener(event, speedycache_delay_event, {passive: true});
	});
	
	document.querySelectorAll('script[type="speedycache/javascript"]').forEach(async e => {
		await new Promise(resolve => speedycache_load_js(e, resolve));
	});
	
	if(speedycache_djs_timeout != null){
		clearTimeout(speedycache_djs_timeout);
		speedycache_djs_timeout = null;
	}
}

function speedycache_load_js(js, resolve){
	let async_js = document.createElement('script');
	
	let attr = js.getAttributeNames();
	attr.forEach(name => {
		if(name === 'type'){
			return;
		}

		async_js.setAttribute(name == 'data-src' ? 'src' : name, js.getAttribute(name));
	});

	async_js.setAttribute('type', 'text/javascript');
	
	if(!js.hasAttribute('data-src')){
		async_js.text = js.text;
	}

	async_js.addEventListener('load', resolve);

	js.after(async_js);
	js.remove();

}
})();

Youez - 2016 - github.com/yon3zu
LinuXploit