winter sale: update banner interval.
Reset cookie and set the hide banner interval to 1 hour for the final three hours of the sale.
This commit is contained in:
@@ -9,7 +9,7 @@ $(function() {
|
||||
|
||||
$("#hide-promotion-notice").on("click.danbooru", function(e) {
|
||||
$("#promotion-notice").hide();
|
||||
Cookie.put("hide_promotion_notice", "1", 1 * 18 * 60 * 60);
|
||||
Cookie.put("hide_winter_sale_notice", "1", 1 * 60 * 60);
|
||||
Cookie.put("hide_upgrade_account_notice", "1", 7 * 24 * 60 * 60);
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
<div id="page">
|
||||
<%= render "users/verification_notice" %>
|
||||
|
||||
<% if Danbooru.config.is_promotion? && cookies[:hide_promotion_notice].blank? %>
|
||||
<% if Danbooru.config.is_promotion? && cookies[:hide_winter_sale_notice].blank? %>
|
||||
<div class="notice notice-info notice-small flex text-center items-center justify-center gap-2" id="promotion-notice">
|
||||
<% file = %w[provgift.png kemogift.png padoru.gif ablobgift.gif].sample %>
|
||||
<%= tag.img src: "/images/#{file}", width: 32, height: 32 %>
|
||||
|
||||
Reference in New Issue
Block a user