// 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
November Recap 2024
Monthly Highlights

November Recap 2024

November is filled with exciting developments and achievements. With a strong focus on launching our VIP plan and the ambitious

October Recap 2024
Monthly Highlights

October Recap 2024

This October recap signifies a vital step toward our ongoing growth and aspirations. We are excited to continue building on

September Recap 2024
Monthly Highlights

September Recap 2024

In this September Recap, CrowdSwap achieved remarkable milestones that have significantly advanced us toward our long-term goals. These achievements are

August Monthly Recap
Monthly Highlights

August Monthly Recap

In recent days, we’ve made significant strides toward realizing our ambitious goals at CrowdSwap. A cornerstone of our vision is

July Recap
Monthly Highlights

July Recap

In the past month, our team has been fully immersed in designing comprehensive plans and establishing essential strategies for the

June Recap
Monthly Highlights

June Recap

In the past months, we at CrowdSwap have made great strides in our mission to make DeFi more accessible to

What Happened in May
Monthly Highlights

May Recap

The CrowdSwap team is continuously striving to make your DeFi experience enjoyable, secure, simple, and accessible. This effort has been

April Recap
Monthly Highlights

April Recap

At the end of April, in line with our monthly routine, we will explain activities that have taken place on

March Recap
Monthly Highlights

March Recap

In March, CrowdSwap made history with the introduction of the ETF in Decentralized Finance. This unique feature marks a milestone

February Recap
Monthly Highlights

February Recap

As March ends, we want to share the new updates we have made on the platform over the last month.

January Recap
Monthly Highlights

January Recap

We finished the year’s first month and carefully planned what was coming. This year will be a big effort in

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! 🚀