diff options
| author | RblSb <msrblsb@gmail.com> | 2020-04-06 20:33:38 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2020-04-06 20:33:38 +0300 |
| commit | bda198c729ba65905bc34d15b44eb51f8336a8ff (patch) | |
| tree | 4a4f89cbfa32a1efff42a3e25183a5249ecc5ea0 /res | |
| parent | 1b269aa5c990ded5aaae773a78daf5230d47a5e2 (diff) | |
Hide password warning for guest login
Diffstat (limited to 'res')
| -rw-r--r-- | res/client.js | 4 | ||||
| -rw-r--r-- | res/index.html | 10 |
2 files changed, 9 insertions, 5 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}">></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> |
