ServerConfiguration/Calla/Calla-Site/wwwroot/scripts/game.js
/**
     * Opens a window that will be closed when the window that opened it is closed.
     * @param href - the location to load in the window
     * @param x - the screen position horizontal component
     * @param y - the screen position vertical component
     * @param width - the screen size horizontal component
     * @param height - the screen size vertical component
     */
Opens a window that will be closed when the window that opened it is closed.
Opens a window that will be closed when the window that opened it is closed .
function openWindow(href, x, y, width, height) {
        if ("window" in globalThis) {
            const w = window.open(href, "_blank", `left=${x},top=${y},width=${width},height=${height}`);
            if (w) {
                windows.push(w);
            }
        }
        else {
            throw new Error("Cannot open a window from a Worker.");
        }
    }
function openWindow ( href , x , y , width , height ) { if ( "window" in globalThis ) { const w = window . open ( href , "_blank" , ` ${ x } ${ y } ${ width } ${ height } ` ) ; if ( w ) { windows . push ( w ) ; } } else { throw new Error ( "Cannot open a window from a Worker." ) ; } }
Opens a window that will be closed when the window that opened it is closed.
Opens a window that will be closed when the window that opened it is closed .