// Get references to the pop-up container and close button // Function to calculate the difference in days between two timestamps // Function to show or hide the popup based on visit history and closing action // Check if the popup has been closed before const popupClosed = localStorage.getItem('popupClosed'); // Boolean value stored as string // If the popup hasn't been closed, show it immediately popupContainer.style.display = 'flex'; // Show the pop-up sliderAdvertisement.style.display = 'none'; // Hide the slider while the pop-up is shown }, 5000); // Show after 5 seconds // Now apply the timing logic after the user has closed the popup // Calculate the days since the popup was last shown let showPopup = false; // Flag to track whether we should show the popup // Determine if the popup should be shown: // - First time visit (no lastShown value) // - Shown once per day for 3 days // - After 3 days, show every 3 days popupData.lastShown === null || // First time visitor (popupData.timesShown < 3 && daysSinceLastShown >= 1) || // Show once a day for first 3 days (popupData.timesShown >= 3 && daysSinceLastShown >= 3) // Show once every 3 days afterward showPopup = true; // The popup should be shown // Show the popup after 5 seconds popupContainer.style.display = 'flex'; // Show the pop-up sliderAdvertisement.style.display = 'none'; // Hide the slider while the pop-up is shown // Update popupData and store it // Show the slider if the popup is not shown // Ensure elements exist before using them // Call the function to handle popup display logic // Add click event listener to the close button popupContainer.style.display = 'none'; // Hide the pop-up sliderAdvertisement.style.display = 'flex'; // Show the slider advertisement when pop-up is closed localStorage.setItem('popupClosed', true); // Set popup as closed in localStorage // Reset timing logic after the popup is closed timesShown: 0 // Reset counter for daily/3-day logic

CrowdSwap’s 2022 Xmas Quest (advent calendar)

CrowdSwap’s 2022 Xmas Quest (advent calendar)

Share:

Maximize Gains, Minimize Effort – Only on CrowdSwap DEX

Seamless Swaps, Crosschain Transactions, and Exciting Opportunities.

CrowdSwap’s 2022 Xmas Quest (advent calendar)
Table of Contents

Share:

So, we teased the “Xmas Quest” in your new year newsletter, but what exactly? Aside from the run-of-the-mill advent calendar that goes up on any other website.

Well, first of all, it’s from us. It’s CrowdSwap’s version of showing you how much you mean to us, albeit a small gesture (it’s the thought that counts, right?)

Secondly, it’s a quest, not just a wheel of fortune. You must put in the work and the brains for some quests to win it. So, do you have what it takes? 

Thirdly, we’ve taken this opportunity to share with you snippets of what we achieved in the year passed.

Xmas Quest begins on December 24 through 31st and is free for everyone to participate. It’s 8 days of fun uncalled prizes waiting for everyone that comes with a short recap of the year we put behind us. A double feature! You learn something about us (or remember it), and you might end up bagging a prize for it.

The Xmas Quest will go live on our homepage starting Saturday and will continue till the very end of the year. So make sure to drop in and follow the guidelines for a chance of winning that day’s price. And, also, you can invite your friends. As much as we’re concerned, the more, the merrier.

Here’s the Xmas Quest (advent calendar) schedule:

Activity period: December 24, 2022 – December 31, 2022

Time: 09:00 UTC – 21:00 UTC

Link: CrowdSwap homepage

Remember, the quests should be done in 12 hours. The winners will be announced by 9pm UTC that day.

Get Ahead of the Curve – Subscribe for CrowdSwap Updates & Offers!

Join our newsletter to get the latest news, trading tips, and special offers straight to your inbox!

CrowdSwap Newsletter

Ready to Supercharge Your Financial Knowledge?

Drop your email, and we'll deliver the Ultimate DeFi Guide straight to your inbox! 🚀