mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 08:55:37 +08:00
temp button to change name
This commit is contained in:
parent
d1cecb30a8
commit
772f3ac9aa
2 changed files with 23 additions and 4 deletions
|
@ -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;
|
||||
// })
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue