Lightbox preset shown on specific calendar days

Hi guys,

I’m not sure if this issue has come up before and if there is a solution for it.
Wondering if there is a possibility to make lightboxes in advance of specific calendar days (easy examples; Easter pop-up, Christmas pop-up, other holiday pop-ups.
I know you can manually activate them when you premade them.
But is there any way you can implement a code to these where you can add specific dates throughout the year, where they pop-up automatically without you having to do this manually?

I have no clue where to start on this.

Thank you in advance!

You can check the date and then open the Lightbox. Try something like this:

import wixWindow from 'wix-window';

$w.onReady(function () {
   let res = isToday(new Date(2021, 0, 18)); // date to check
   if (res === true) {
      wixWindow.openLightbox('LightboxName');
   }
});

function isToday(date) {
   let today = new Date();
   return date.getDate() === today.getDate() && date.getMonth() === today.getMonth() && date.getFullYear() === today.getFullYear();
}