mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-12-29 11:26:13 +08:00
disabling custom room input
This commit is contained in:
parent
50f2161c43
commit
dcf1af65cf
3 changed files with 6 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ export function resetBanner() {
|
|||
export function disableLobbyButtons() {
|
||||
$(".pageTribe .prelobby .matchmaking .buttons .button").addClass("disabled");
|
||||
$(".pageTribe .prelobby .privateRooms .button").addClass("disabled");
|
||||
$(".pageTribe .prelobby .privateRooms .customInput").addClass("disabled");
|
||||
}
|
||||
|
||||
export function enableLobbyButtons() {
|
||||
|
|
@ -34,6 +35,7 @@ export function enableLobbyButtons() {
|
|||
"disabled"
|
||||
);
|
||||
$(".pageTribe .prelobby .privateRooms .button").removeClass("disabled");
|
||||
$(".pageTribe .prelobby .privateRooms .customInput").removeClass("disabled");
|
||||
}
|
||||
|
||||
export function showLeaveQueueButton() {
|
||||
|
|
|
|||
|
|
@ -2002,6 +2002,7 @@ $(
|
|||
});
|
||||
|
||||
$(".pageTribe .prelobby #joinByCode .customInput").click((e) => {
|
||||
if ($(e.currentTarget).hasClass("disabled")) return;
|
||||
$(".pageTribe .prelobby #joinByCode input").focus();
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -3729,6 +3729,9 @@ key {
|
|||
color: var(--main-color);
|
||||
}
|
||||
}
|
||||
&.disabled {
|
||||
opacity: 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue