removed wrapper

This commit is contained in:
Miodec 2022-05-24 16:06:16 +02:00
parent 784e49bfa8
commit c12579eb4a
2 changed files with 20 additions and 25 deletions

View file

@ -153,28 +153,25 @@ $("#googleSignUpPopupWrapper").on("mousedown", (e) => {
}
});
const nameIndicator = new InputIndicator(
$("#googleSignUpPopup .inputAndIndicator"),
{
available: {
icon: "fa-check",
level: 1,
},
unavailable: {
icon: "fa-times",
level: -1,
},
taken: {
icon: "fa-times",
level: -1,
},
checking: {
icon: "fa-circle-notch",
spinIcon: true,
level: 0,
},
}
);
const nameIndicator = new InputIndicator($("#googleSignUpPopup input"), {
available: {
icon: "fa-check",
level: 1,
},
unavailable: {
icon: "fa-times",
level: -1,
},
taken: {
icon: "fa-times",
level: -1,
},
checking: {
icon: "fa-circle-notch",
spinIcon: true,
level: 0,
},
});
const checkNameDebounced = debounce(1000, async () => {
const val = $("#googleSignUpPopup input").val() as string;

View file

@ -474,9 +474,7 @@
<div id="googleSignUpPopup">
<div class="title">Account name</div>
<div class="text">You need to choose a username before continuing</div>
<div class="inputAndIndicator">
<input type="text" placeholder="username" />
</div>
<input type="text" placeholder="username" />
<div class="button disabled">Sign up</div>
</div>
</div>