mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-14 19:05:01 -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"));
|
||||
connectFormElt.elements.url.value = server.url;
|
||||
connectFormElt.elements.nick.value = server.nick;
|
||||
connectFormElt.elements.password.value = server.pass;
|
||||
if (server.username != server.nick) {
|
||||
connectFormElt.elements.username.value = server.username;
|
||||
}
|
||||
|
@ -617,7 +616,6 @@ if (localStorage && localStorage.getItem("server")) {
|
|||
var params = parseQueryString();
|
||||
|
||||
if (params.server) {
|
||||
document.querySelector("#connect-url-container").style.display = "none";
|
||||
connectFormElt.elements.url.value = params.server;
|
||||
} else if (!connectFormElt.elements.url.value) {
|
||||
var host = window.location.host || "localhost:8080";
|
||||
|
|
10
index.html
10
index.html
|
@ -26,12 +26,6 @@
|
|||
<form>
|
||||
<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/>
|
||||
<input type="username" name="nick" id="connect-nick" autofocus required/>
|
||||
<br/><br/>
|
||||
|
@ -49,6 +43,10 @@
|
|||
|
||||
<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/>
|
||||
<input type="username" name="username" id="connect-username" placeholder="Same as nickname"/>
|
||||
<br/><br/>
|
||||
|
|
Loading…
Reference in a new issue