removed tshirt banner

This commit is contained in:
Miodec 2022-04-08 22:03:18 +02:00
parent 8a2e5f7bdb
commit bde8b9ad81

View file

@ -6,7 +6,7 @@ import * as RouteController from "./controllers/route-controller";
import * as PageController from "./controllers/page-controller";
import * as MonkeyPower from "./elements/monkey-power";
import * as NewVersionNotification from "./elements/version-check";
import * as Notifications from "./elements/notifications";
// import * as Notifications from "./elements/notifications";
import * as Focus from "./test/focus";
ManualRestart.set();
@ -42,27 +42,27 @@ $(document).ready(() => {
// }
// );
// }
if (!window.localStorage.getItem("monkebannerclosed")) {
const end = 1649368800000;
const diff = end - Date.now();
const string = Misc.secondsToString(
diff / 1000,
false,
false,
"text",
false,
true
);
Notifications.addBanner(
`Reject humanity, <a target="_blank" href="https://www.monkeytype.store/listing/reject-humanity-black">become</a> <a target="_blank" href="https://www.monkeytype.store/listing/reject-humanity-white">monke</a>. (${string})`,
1,
"images/becomemonke.png",
false,
() => {
window.localStorage.setItem("monkebannerclosed", "true");
}
);
}
// if (!window.localStorage.getItem("monkebannerclosed")) {
// const end = 1649368800000;
// const diff = end - Date.now();
// const string = Misc.secondsToString(
// diff / 1000,
// false,
// false,
// "text",
// false,
// true
// );
// Notifications.addBanner(
// `Reject humanity, <a target="_blank" href="https://www.monkeytype.store/listing/reject-humanity-black">become</a> <a target="_blank" href="https://www.monkeytype.store/listing/reject-humanity-white">monke</a>. (${string})`,
// 1,
// "images/becomemonke.png",
// false,
// () => {
// window.localStorage.setItem("monkebannerclosed", "true");
// }
// );
// }
$("#centerContent")
.css("opacity", "0")
.removeClass("hidden")