// 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

Upgrade Your Business With CrowdSwap Services

Are you looking for an edge over your rivals? In today’s highly competitive market, only businesses that offer the best and most practical features thrive. Our services can help boost your competitive advantage. So save your business with CrowdSwap

Trusted By Countless Business, Such As

Crypto Exchange Widget

A simple design equipped with everything you need.

Easy Integration

A simple four-step process that requires minimum coding skill

User-friendly interface

With just a few clicks, customers can easily exchange crypto assets in an intuitive and simple design

Customizable

Adjust the look and feel of the widget to match your brand and preferences

Online support team

You and your customers can contact our online support team anytime with questions or issues. We are ready to help you 24/7

Earn referral commission

Earn a percentage of the fees generated by your referrals, a passive income stream for your business

Cross-chain exchange

Customers can exchange crypto assets in minutes with competitive prices across seven networks

Payment Widget

The Best Crypto Payment Method

Seamless integration

Simple process with minimum coding skill requirement

Global Reach

Accept payments with any token from anywhere at any time

Customized Control

You can receive your preferred token while allowing customers to pay with their chosen token

No KYC required

A quick and effortless payment experience for your customers without KYC

Secure transactions

Crypto payments use CrowdSwap’s robust security

CrowdSale

The most reliable multi-chain IDO launchpad

Various pricing models are available

Tailored KYC options according to your preferences

Seamless access to investors and communities

Customizable sales configurations to suit your needs

Enhanced security with verified participants (KYB/ KYC)

Crowd API

The quickest way to accurate market data

Multi-chain

Access data on nearly any token across seven blockchains

Referral Commission

Earn a percentage of the fees generated by your referrals

Online Support

Our 24/7 support team is always just a message away to resolve any issues that may occur

Multi-source

CrowdSwap's price estimations aren't limited to our DEX; we use data from numerous platforms

Reliable

With over three years of experience, CrowdSwap has developed a superior price algorithm to ensure the best market prices

CrowDex

More practical and efficient LP Farms

Customizable Fee

Swap fees can be tailored and modified to align with current market conditions

Inflation Protection

adjust the reward amount based on transaction volume to protect your token from inflation

Rebalancing

A solution Tailored to adapt to dynamic market conditions, allowing for the addition of rewards on a monthly, weekly, or even daily basis as needed

CrowdSwap Community

Our community is always on the lookout for new investment opportunities, ready to embrace innovation

CrowDex

How CrowdSwap can help you in your business?

Tell us a little about your product by filling the form or email us. we will contact you in 24 hours.