You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ja...@apache.org on 2021/03/01 22:16:58 UTC

[lucene-site] 01/02: Review feedback - only show the popup for one year

This is an automated email from the ASF dual-hosted git repository.

janhoy pushed a commit to branch main/solr
in repository https://gitbox.apache.org/repos/asf/lucene-site.git

commit a694482032bc300440905936c8fccf9a37b39aea
Author: Jan Høydahl <ja...@cominvent.com>
AuthorDate: Mon Mar 1 23:12:45 2021 +0100

    Review feedback - only show the popup for one year
---
 themes/solr/templates/_modal_welcomebox.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/themes/solr/templates/_modal_welcomebox.html b/themes/solr/templates/_modal_welcomebox.html
index 243204c..e1cc8bd 100644
--- a/themes/solr/templates/_modal_welcomebox.html
+++ b/themes/solr/templates/_modal_welcomebox.html
@@ -78,9 +78,9 @@
     modalOverlay.classList.toggle("closed");
   });
 
-  // Open modal box on first visit only
-  if (readCookie("alreadyVisited") == null) {
-    createCookie("alreadyVisited", "yes", 30000)
+  // Open modal box on first visit only, and only the first year
+  if (readCookie("alreadyVisited") == null && new Date() < new Date('2022-03-01')) {
+    createCookie("alreadyVisited", "yes", 400)
     modal.classList.toggle("closed");
     modalOverlay.classList.toggle("closed");
   }