mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Move server URL to advanced options
This commit is contained in:
parent
ef23d44eed
commit
b3bcd4d230
2 changed files with 4 additions and 8 deletions
|
@ -603,7 +603,6 @@ if (localStorage && localStorage.getItem("server")) {
|
||||||
server = JSON.parse(localStorage.getItem("server"));
|
server = JSON.parse(localStorage.getItem("server"));
|
||||||
connectFormElt.elements.url.value = server.url;
|
connectFormElt.elements.url.value = server.url;
|
||||||
connectFormElt.elements.nick.value = server.nick;
|
connectFormElt.elements.nick.value = server.nick;
|
||||||
connectFormElt.elements.password.value = server.pass;
|
|
||||||
if (server.username != server.nick) {
|
if (server.username != server.nick) {
|
||||||
connectFormElt.elements.username.value = server.username;
|
connectFormElt.elements.username.value = server.username;
|
||||||
}
|
}
|
||||||
|
@ -617,7 +616,6 @@ if (localStorage && localStorage.getItem("server")) {
|
||||||
var params = parseQueryString();
|
var params = parseQueryString();
|
||||||
|
|
||||||
if (params.server) {
|
if (params.server) {
|
||||||
document.querySelector("#connect-url-container").style.display = "none";
|
|
||||||
connectFormElt.elements.url.value = params.server;
|
connectFormElt.elements.url.value = params.server;
|
||||||
} else if (!connectFormElt.elements.url.value) {
|
} else if (!connectFormElt.elements.url.value) {
|
||||||
var host = window.location.host || "localhost:8080";
|
var host = window.location.host || "localhost:8080";
|
||||||
|
|
10
index.html
10
index.html
|
@ -26,12 +26,6 @@
|
||||||
<form>
|
<form>
|
||||||
<h2>Connect to IRC</h2>
|
<h2>Connect to IRC</h2>
|
||||||
|
|
||||||
<div id="connect-url-container">
|
|
||||||
<label for="connect-url">Server URL:</label><br/>
|
|
||||||
<input type="url" name="url" id="connect-url"/>
|
|
||||||
<br/><br/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<label for="connect-nick">Nickname:</label><br/>
|
<label for="connect-nick">Nickname:</label><br/>
|
||||||
<input type="username" name="nick" id="connect-nick" autofocus required/>
|
<input type="username" name="nick" id="connect-nick" autofocus required/>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
@ -49,6 +43,10 @@
|
||||||
|
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
|
<label for="connect-url">Server URL:</label><br/>
|
||||||
|
<input type="url" name="url" id="connect-url"/>
|
||||||
|
<br/><br/>
|
||||||
|
|
||||||
<label for="connect-username">Username:</label><br/>
|
<label for="connect-username">Username:</label><br/>
|
||||||
<input type="username" name="username" id="connect-username" placeholder="Same as nickname"/>
|
<input type="username" name="username" id="connect-username" placeholder="Same as nickname"/>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
Loading…
Reference in a new issue