removed unnecessary sign out button code

This commit is contained in:
Miodec 2022-08-24 14:24:58 +02:00
parent 3c468ece12
commit 9b06f9cba4
2 changed files with 1 additions and 53 deletions

View file

@ -1,46 +0,0 @@
export function show(): void {
// $(".signOut").removeClass("hidden").css("opacity", 1);
$(".signOut")
.stop(true, true)
.removeClass("hidden")
.css({
opacity: 0,
transition: "0s",
})
.animate(
{
opacity: 1,
},
125,
() => {
$(".signOut").css({ transition: "0.25s" });
}
);
}
export function hide(): void {
$(".signOut")
.stop(true, true)
.css({
opacity: 1,
transition: "0s",
})
.animate(
{
opacity: 0,
},
125,
() => {
$(".signOut").css({ transition: "0.25s" });
$(".signOut").addClass("hidden");
}
);
// $(".signOut").css("opacity", 0).addClass("hidden");
}
// $("#liveWpm").removeClass("hidden").css("opacity", 0).animate(
// {
// opacity: Config.timerOpacity,
// },
// 125
// );

View file

@ -8,12 +8,10 @@ import * as AllTimeStats from "../account/all-time-stats";
import * as PbTables from "../account/pb-tables";
import * as LoadingPage from "./loading";
import * as Focus from "../test/focus";
import * as SignOutButton from "../account/sign-out-button";
import * as TodayTracker from "../test/today-tracker";
import * as Notifications from "../elements/notifications";
import Page from "./page";
import * as Misc from "../utils/misc";
import * as ActivePage from "../states/active-page";
import * as Profile from "../elements/profile";
import format from "date-fns/format";
@ -841,9 +839,6 @@ function fillContent(): void {
applyHistorySmoothing();
ChartController.accountActivity.updateColors();
LoadingPage.updateBar(100, true);
setTimeout(() => {
if (ActivePage.get() == "account") SignOutButton.show();
}, 125);
Focus.set(false);
Misc.swapElements(
$(".pageAccount .preloader"),
@ -1091,14 +1086,13 @@ export const page = new Page(
$(".page.pageAccount"),
"/account",
async () => {
SignOutButton.hide();
//
},
async () => {
reset();
},
async () => {
await update();
// SignOutButton.show();
},
async () => {
//