public/client.js
//Create a Centered Popup on the Screen
Create a Centered Popup on the Screen
Create a Centered Popup on the Screen
function centeredPopup(url, winName, w, h, scroll) {
    let LeftPosition = (screen.width) ? (screen.width - w) / 2 : 0;
    let TopPosition = (screen.height) ? (screen.height - h) / 2 : 0;
    let settings =
        'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable'
    return window.open(url, winName, settings);
}
function centeredPopup ( url , winName , w , h , scroll ) { let LeftPosition = ( screen . width ) ? ( screen . width - w ) / 2 : 0 ; let TopPosition = ( screen . height ) ? ( screen . height - h ) / 2 : 0 ; let settings = 'height=' + h + ',width=' + w + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=' + scroll + ',resizable' return window . open ( url , winName , settings ) ; }
Create a Centered Popup on the Screen
Create a Centered Popup on the Screen