mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-10 22:22:21 +08:00
chore: remove plushie banner
This commit is contained in:
parent
c20964d185
commit
e497a192f9
1 changed files with 25 additions and 25 deletions
|
|
@ -48,39 +48,39 @@ $(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 <a target="_blank" rel="noopener" href="https://monkeytype.store/">monkeytype.store</a>`,
|
||||
// 1,
|
||||
// "./images/merch2.png",
|
||||
// false,
|
||||
// () => {
|
||||
// window.localStorage.setItem("merchbannerclosed", "true");
|
||||
// },
|
||||
// true
|
||||
// );
|
||||
// }
|
||||
|
||||
const plushieBannerClosed2 =
|
||||
window.localStorage.getItem("plushieBannerClosed2") === "true";
|
||||
if (!plushieBannerClosed2) {
|
||||
const string = formatDistanceStrict(1711918800000, Date.now(), {
|
||||
roundingMethod: "floor",
|
||||
});
|
||||
const merchBannerClosed =
|
||||
window.localStorage.getItem("merchbannerclosed") === "true";
|
||||
if (!merchBannerClosed) {
|
||||
Notifications.addBanner(
|
||||
`Our limited plushie will be gone in ${string} - don't miss out! <a target="_blank" rel="noopener" href="https://mktp.co/plushie2">monkeytype.store</a>`,
|
||||
`Check out our merchandise, available at <a target="_blank" rel="noopener" href="https://monkeytype.store/">monkeytype.store</a>`,
|
||||
1,
|
||||
"./images/plushiebanner.png",
|
||||
true,
|
||||
"./images/merch2.png",
|
||||
false,
|
||||
() => {
|
||||
window.localStorage.setItem("plushieBannerClosed2", "true");
|
||||
window.localStorage.setItem("merchbannerclosed", "true");
|
||||
},
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// const plushieBannerClosed2 =
|
||||
// window.localStorage.getItem("plushieBannerClosed2") === "true";
|
||||
// if (!plushieBannerClosed2) {
|
||||
// const string = formatDistanceStrict(1711882800000, Date.now(), {
|
||||
// roundingMethod: "floor",
|
||||
// });
|
||||
// Notifications.addBanner(
|
||||
// `Our limited plushie will be gone in ${string} - don't miss out! <a target="_blank" rel="noopener" href="https://mktp.co/plushie2">monkeytype.store</a>`,
|
||||
// 1,
|
||||
// "./images/plushiebanner.png",
|
||||
// true,
|
||||
// () => {
|
||||
// window.localStorage.setItem("plushieBannerClosed2", "true");
|
||||
// },
|
||||
// true
|
||||
// );
|
||||
// }
|
||||
|
||||
setTimeout(() => {
|
||||
FunboxList.get(Config.funbox).forEach((it) =>
|
||||
it.functions?.applyGlobalCSS?.()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue