diff --git a/frontend/src/ts/account/sign-out-button.ts b/frontend/src/ts/account/sign-out-button.ts deleted file mode 100644 index 4c85d266e..000000000 --- a/frontend/src/ts/account/sign-out-button.ts +++ /dev/null @@ -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 -// ); diff --git a/frontend/src/ts/pages/account.ts b/frontend/src/ts/pages/account.ts index fd82a131a..52b42c551 100644 --- a/frontend/src/ts/pages/account.ts +++ b/frontend/src/ts/pages/account.ts @@ -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 () => { //