mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 16:54:04 +08:00
generic merch banner
This commit is contained in:
parent
cf411245e6
commit
bfa431f271
3 changed files with 13 additions and 26 deletions
|
@ -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;
|
||||
|
|
|
@ -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")
|
||||
|
|
BIN
frontend/static/images/merch.png
Normal file
BIN
frontend/static/images/merch.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
Loading…
Reference in a new issue