diff --git a/frontend/src/ts/ready.ts b/frontend/src/ts/ready.ts index b19e2b201..ec5437416 100644 --- a/frontend/src/ts/ready.ts +++ b/frontend/src/ts/ready.ts @@ -46,34 +46,36 @@ $(document).ready(() => { if (Config.quickRestart !== "off") { $("#restartTestButton").addClass("hidden"); } - const merchBannerClosed = - window.localStorage.getItem("merchbannerclosed") === "true"; - if (!merchBannerClosed) { - Notifications.addBanner( - `Check out our merchandise, available at monkeytype.store`, - 1, - "./images/merch2.png", - false, - () => { - window.localStorage.setItem("merchbannerclosed", "true"); - }, - true - ); - } - - // if (!window.localStorage.getItem("merchbannerclosed2")) { + // const merchBannerClosed = + // window.localStorage.getItem("merchbannerclosed") === "true"; + // if (!merchBannerClosed) { // Notifications.addBanner( - // `Three new merch designs, available at monkeytype.store`, + // `Check out our merchandise, available at monkeytype.store`, // 1, - // "images/cutoutbanner.png", + // "./images/merch2.png", // false, // () => { - // window.localStorage.setItem("merchbannerclosed2", "true"); + // window.localStorage.setItem("merchbannerclosed", "true"); // }, // true // ); // } + const plushieBannerClosed = + window.localStorage.getItem("plushieBannerClosed") === "true"; + if (!plushieBannerClosed) { + Notifications.addBanner( + `George Plushie - available now for a limited time! monkeytype.store`, + 1, + "./images/plushiebanner.png", + false, + () => { + window.localStorage.setItem("plushieBannerClosed", "true"); + }, + true + ); + } + setTimeout(() => { FunboxList.get(Config.funbox).forEach((it) => it.functions?.applyGlobalCSS?.() diff --git a/frontend/static/images/plushiebanner.png b/frontend/static/images/plushiebanner.png new file mode 100644 index 000000000..be59229f9 Binary files /dev/null and b/frontend/static/images/plushiebanner.png differ