Add Danbooru Winter Sale.

This commit is contained in:
evazion
2021-12-28 14:41:37 -06:00
parent 572b1b74f7
commit b8356c97c1
11 changed files with 76 additions and 8 deletions

View File

@@ -7,6 +7,13 @@ $(function() {
e.preventDefault();
});
$("#hide-promotion-notice").on("click.danbooru", function(e) {
$("#promotion-notice").hide();
Cookie.put("hide_promotion_notice", "1", 1 * 18 * 60 * 60);
Cookie.put("hide_upgrade_account_notice", "1", 7 * 24 * 60 * 60);
e.preventDefault();
});
$("#hide-dmail-notice").on("click.danbooru", function(e) {
var $dmail_notice = $("#dmail-notice");
$dmail_notice.hide();