merch banner 2

This commit is contained in:
Miodec 2022-08-05 16:47:13 +02:00
parent cf15878713
commit f86138e4fc
2 changed files with 17 additions and 4 deletions

View file

@ -45,14 +45,27 @@ $(document).ready(() => {
if (Config.quickRestart === "tab" || Config.quickRestart === "esc") {
$("#restartTestButton").addClass("hidden");
}
if (!window.localStorage.getItem("merchbannerclosed")) {
// if (!window.localStorage.getItem("merchbannerclosed")) {
// Notifications.addBanner(
// `Check out our merchandise, available at <a target="_blank" href="https://monkeytype.store/">monkeytype.store</a>`,
// 1,
// "images/merchdropwebsite2.png",
// false,
// () => {
// window.localStorage.setItem("merchbannerclosed", "true");
// },
// true
// );
// }
if (!window.localStorage.getItem("merchbannerclosed2")) {
Notifications.addBanner(
`Check out our merchandise, available at <a target="_blank" href="https://monkeytype.store/">monkeytype.store</a>`,
`Three new merch designs, available at <a target="_blank" href="https://www.monkeytype.store/unisex-men-s-t-shirts/">monkeytype.store</a>`,
1,
"images/merchdropwebsite2.png",
"images/cutoutbanner.png",
false,
() => {
window.localStorage.setItem("merchbannerclosed", "true");
window.localStorage.setItem("merchbannerclosed2", "true");
},
true
);

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB