diff --git a/res/index/script.js b/res/index/script.js index 0862289..907ea0e 100644 --- a/res/index/script.js +++ b/res/index/script.js @@ -59,8 +59,10 @@ function show_register() function set_login_uname(uname) { + if (document.getElementById("login_indicator").style.visibility == "visible") return; + document.getElementById("login_indicator").style.visibility = "visible"; - document.getElementById("login_indicator").innerText += " " + uname; + document.getElementById("login_indicator_text").innerText += " " + uname; document.getElementById("login_buttons").style.visibility = "hidden"; document.getElementById("logout_button").style.visibility = "visible";