generic merch banner

This commit is contained in:
Miodec 2022-11-06 17:44:42 +01:00
parent cf411245e6
commit bfa431f271
3 changed files with 13 additions and 26 deletions

View file

@ -19,7 +19,7 @@
.image {
height: 2.35rem;
background-size: cover;
aspect-ratio: 8/1;
aspect-ratio: 6/1;
background-position: center;
background-repeat: no-repeat;
margin-left: 2rem;

View file

@ -36,18 +36,18 @@ $(document).ready(() => {
if (Config.quickRestart === "tab" || Config.quickRestart === "esc") {
$("#restartTestButton").addClass("hidden");
}
// 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("merchbannerclosed")) {
Notifications.addBanner(
`Check out our merchandise, available at <a target="_blank" href="https://monkeytype.store/">monkeytype.store</a>`,
1,
"images/merch.png",
false,
() => {
window.localStorage.setItem("merchbannerclosed", "true");
},
true
);
}
// if (!window.localStorage.getItem("merchbannerclosed2")) {
// Notifications.addBanner(
@ -62,19 +62,6 @@ $(document).ready(() => {
// );
// }
if (!window.localStorage.getItem("merchbannerclosed3")) {
Notifications.addBanner(
`Limited Monkey Things merch - <a target="_blank" href="https://www.monkeytype.store/listing/monkey-things?product=387/">monkeytype.store</a>`,
1,
"images/monkeythings2.png",
false,
() => {
window.localStorage.setItem("merchbannerclosed3", "true");
},
true
);
}
$("#centerContent")
.css("opacity", "0")
.removeClass("hidden")

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB