Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
revoxhere authored Nov 11, 2023
1 parent a1ebbac commit e0f818f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions 2023/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,7 @@ function login(token) {
});
} else {
$("#useravatar").attr("src",
`https://www.gravatar.com/avatar/${encodeURIComponent(MD5(data.result[1]))}` +
`?d=https%3A%2F%2Fui-avatars.com%2Fapi%2F/${encodeURIComponent(username)}/64/${get_user_color(username)}/ffffff/1`);
`https://www.gravatar.com/avatar/${encodeURIComponent(MD5(data.result[1]))}?d=retro`);

$("#login-desktop").fadeOut(function() {
$("#wallet-desktop").fadeIn();
Expand Down Expand Up @@ -1025,13 +1024,18 @@ const user_data = (req_username, first_open) => {
}

if (verified === "yes") {
$(".unverifiedbadge").fadeOut();
$(".verifiedbadge").fadeIn();
$(".acc-verification-date").text(verification_date);
} else {
$(".acc-verification-date").text("never");
$(".verifiedbadge").fadeOut();
$(".unverifiedbadge").fadeIn();
$("#unverified_box").fadeIn();
}
} else {
$(".verifiedbadge").fadeOut();
$(".verifiedbadge").fadeOut();
$("#warning_num").text(data.balance.warnings);
$("#warning_box").fadeIn();
$(".suspiciousbadge").fadeIn();
Expand Down

0 comments on commit e0f818f

Please sign in to comment.