Minor layout fixups

This commit is contained in:
Condorra 2023-02-17 23:13:19 +11:00
parent cbe6b9b29b
commit 69078236c6
2 changed files with 3 additions and 2 deletions

View File

@ -18,10 +18,11 @@
<link rel="stylesheet" href="xterm.css" /> <link rel="stylesheet" href="xterm.css" />
<meta name="RATING" content="RTA-5042-1996-1400-1577-RTA" /> <meta name="RATING" content="RTA-5042-1996-1400-1577-RTA" />
</head> </head>
<body style="background: black; height: 100%"> <body style="background: black; height: 100%; width: 100%; position: fixed; border: 0px; margin: 0px; padding: 0px;">
<div style="background: black; color: white; display: flex; flex-direction: column; margin: 0px; height: 100%; width: 100%"> <div style="background: black; color: white; display: flex; flex-direction: column; margin: 0px; height: 100%; width: 100%">
<h1 style="text-align: center">Play Blastmud</h1> <h1 style="text-align: center">Play Blastmud</h1>
<div id="console" style="min-height: 40pt; flex: 1">&nbsp;</div> <div id="console" style="min-height: 40pt; flex: 1">&nbsp;</div>
<div style="min-height: 15pt"></div>
</div> </div>
<div id="notyet" style="position: absolute; top: 0; left: 0; background: rgba(80,80,80,0.8); width: 100%; height: 100%"> <div id="notyet" style="position: absolute; top: 0; left: 0; background: rgba(80,80,80,0.8); width: 100%; height: 100%">
<div style="display: block; padding: 10px; background: white; width: 80%; margin-left: auto; margin-right: auto; margin-top: 10%; border-radius: 10px;"> <div style="display: block; padding: 10px; background: white; width: 80%; margin-left: auto; margin-right: auto; margin-top: 10%; border-radius: 10px;">

View File

@ -31,7 +31,7 @@ const params: {[key:string]: string} =
function connectTerm() { function connectTerm() {
lineHandler = () => {}; lineHandler = () => {};
term.writeln("\x1b[0mConnecting to server..."); term.writeln("\x1b[0mConnecting to server...");
const wsurl = (window.localStorage['allow_wsurl'] !== true || params.wsurl === undefined) ? const wsurl = (window.localStorage['allow_wsurl'] !== "true" || params.wsurl === undefined) ?
"wss://ws.blastmud.org/wsgame" : params.wsurl; "wss://ws.blastmud.org/wsgame" : params.wsurl;
let webSocket = new WebSocket(wsurl); let webSocket = new WebSocket(wsurl);
webSocket.addEventListener('open', (event) => { webSocket.addEventListener('open', (event) => {