mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-15 18:15:58 +08:00
merch banner 2
This commit is contained in:
parent
cf15878713
commit
f86138e4fc
2 changed files with 17 additions and 4 deletions
|
@ -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
|
||||
);
|
||||
|
|
BIN
frontend/static/images/cutoutbanner.png
Normal file
BIN
frontend/static/images/cutoutbanner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 74 KiB |
Loading…
Add table
Reference in a new issue