temp button to change name

This commit is contained in:
Miodec 2022-02-04 22:35:56 +01:00
parent d1cecb30a8
commit 772f3ac9aa
2 changed files with 23 additions and 4 deletions

View file

@ -215,6 +215,13 @@ socket.on("connect", async (e) => {
// changeActiveSubpage("prelobby");
});
$(".tribechangename").click((e) => {
let name = prompt("Name");
if (name) {
socket.emit("user_set_name", { name, confirm: true });
}
});
// socket.on("user_update_name", e => {
// name = e.name;
// })

View file

@ -1944,20 +1944,32 @@
</div>
</div> -->
</div>
<!-- <div
<div
style="
grid-column: 1/3;
margin-top: 2rem;
color: var(--sub-color);
grid-row: 4/5;
"
>
Remember: Things will break, the server will go down randomly.
This is using a different database with test saving disabled, so
you cannot access your live account including your personal
bests. If you find a problem please report it (ideally with
steps on how to reproduce the issue) - I'll do my best to fix
things. Most importantly - have fun.
</div> -->
steps on how to reproduce the issue).
</div>
<div
style="
grid-column: 1/3;
margin-top: 2rem;
color: var(--sub-color);
grid-row: 5/6;
"
>
Account system is disabled for now so click here to change your
name
<div class="button tribechangename">Change name</div>
</div>
</div>
<div class="tribePage lobby hidden">
<div class="tribeBars hidden"></div>