aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--res/client.js4
-rw-r--r--res/index.html10
-rw-r--r--src/client/Buttons.hx5
-rw-r--r--src/client/Main.hx3
4 files changed, 16 insertions, 6 deletions
diff --git a/res/client.js b/res/client.js
index 947541f..32eb424 100644
--- a/res/client.js
+++ b/res/client.js
@@ -770,6 +770,7 @@ client_Buttons.initChatInput = function(main) {
guestPass.onkeydown = function(e1) {
if(e1.keyCode == 13) {
main.userLogin(guestName.value,guestPass.value);
+ guestPass.value = "";
}
return;
};
@@ -1361,6 +1362,9 @@ client_Main.prototype = {
window.document.querySelector("#guestlogin").style.display = "none";
window.document.querySelector("#chatline").style.display = "none";
window.document.querySelector("#guestpassword").style.display = "block";
+ window.document.querySelector("#guestpass").type = "password";
+ window.document.querySelector("#guestpass_icon").classList.add("glyphicon-eye-open");
+ window.document.querySelector("#guestpass_icon").classList.remove("glyphicon-eye-close");
}
,updateClients: function(newClients) {
this.clients.length = 0;
diff --git a/res/index.html b/res/index.html
index 39252d5..1b86016 100644
--- a/res/index.html
+++ b/res/index.html
@@ -66,12 +66,12 @@
</div>
<div id="userlist" style="height: 389px;"></div>
<div class="linewrap" id="messagebuffer" style="height: 389px;"></div>
- <input class="form-control" id="chatline" type="text">
+ <input class="form-control" id="chatline">
<div class="input-group" id="guestlogin" style="display: none;"><span class="input-group-addon">${enterAsGuest}</span>
- <input class="form-control" id="guestname" type="text" placeholder="${yourName}">
+ <input class="form-control" id="guestname" placeholder="${yourName}">
</div>
<div class="input-group" id="guestpassword" style="display: none;"><span class="input-group-addon">${enterUserPassword}</span>
- <input class="form-control" id="guestpass" type="password" placeholder="${yourPassword}">
+ <input class="form-control" id="guestpass" placeholder="${yourPassword}">
<div id="guestpass_icon" class="glyphicon glyphicon-eye-open"></div>
</div>
</div>
@@ -117,7 +117,7 @@
<div class="vertical-spacer"></div>
<div class="input-group"><span class="input-group-btn">
<button class="btn btn-default" id="insert_template" title="${addTemplateUrl}">&gt;</button></span>
- <input class="form-control" id="mediaurl" type="text" placeholder="${mediaUrl}"><span class="input-group-btn">
+ <input class="form-control" id="mediaurl" placeholder="${mediaUrl}"><span class="input-group-btn">
<button class="btn btn-default" id="queue_next">${queueNext}</button></span><span class="input-group-btn">
<button class="btn btn-default" id="queue_end">${queueLast}</button></span>
</div>
@@ -131,7 +131,7 @@
<div class="plcontrol-collapse col-lg-12 col-md-12 collapse" id="customembed" aria-expanded="false" style="height: 209px;">
<div class="vertical-spacer"></div>
<div class="input-group">
- <input class="form-control" id="customembed-title" type="text" placeholder="${optionalTitle}"><span class="input-group-btn">
+ <input class="form-control" id="customembed-title" placeholder="${optionalTitle}"><span class="input-group-btn">
<button class="btn btn-default" id="ce_queue_next">${queueNext}</button></span><span class="input-group-btn">
<button class="btn btn-default" id="ce_queue_end">${queueLast}</button></span>
</div>
diff --git a/src/client/Buttons.hx b/src/client/Buttons.hx
index 3245b44..63934e2 100644
--- a/src/client/Buttons.hx
+++ b/src/client/Buttons.hx
@@ -307,7 +307,10 @@ class Buttons {
final guestPass:InputElement = cast ge("#guestpass");
guestPass.onkeydown = e -> {
- if (e.keyCode == 13) main.userLogin(guestName.value, guestPass.value);
+ if (e.keyCode == 13) {
+ main.userLogin(guestName.value, guestPass.value);
+ guestPass.value = "";
+ }
}
final chatLine:InputElement = cast ge("#chatline");
diff --git a/src/client/Main.hx b/src/client/Main.hx
index b1f5e79..6c7677b 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -560,6 +560,9 @@ class Main {
ge("#guestlogin").style.display = "none";
ge("#chatline").style.display = "none";
ge("#guestpassword").style.display = "block";
+ (cast ge("#guestpass") : InputElement).type = "password";
+ ge("#guestpass_icon").classList.add("glyphicon-eye-open");
+ ge("#guestpass_icon").classList.remove("glyphicon-eye-close");
}
function updateClients(newClients:Array<ClientData>):Void {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage