SUI Price is Breaking Out—Is it Heading Towards a New ATH at $5? (2024)

  • Menu
  • SUI Price is Breaking Out—Is it Heading Towards a New ATH at $5? (2)
  • Advertise

'); jQuery('.loader').show(); const EVENTS_HOME_URL = "https://events.coinpedia.org"; var viewAllPosts = document.getElementsByClassName('viewAllPosts')[0]; var viewAllLink = document.getElementsByClassName('viewAllLink')[0]; var viewAllLinkProfessional = document.getElementsByClassName('view_professional')[0]; var viewAllLinkCompany = document.getElementsByClassName('view_company')[0]; var viewAllLinkCryptocurrency = document.getElementsByClassName('view_cryptocurrency')[0]; var viewAllLinkExchange = document.getElementsByClassName('view_exchange')[0]; ////////// mobile ////////////////// var viewAllPostsMb = document.getElementsByClassName('viewAllPosts_mb')[0]; var viewAllLinkMb = document.getElementsByClassName('viewAllLink_mb')[0]; var viewAllLinkProfessionalMb = document.getElementsByClassName('view_professional_mb')[0]; var viewAllLinkCompanyMb = document.getElementsByClassName('view_company_mb')[0]; var viewAllLinkCryptocurrencyMb = document.getElementsByClassName('view_cryptocurrency_mb')[0]; var viewAllLinkExchangeMb = document.getElementsByClassName('view_exchange_mb')[0]; // Update the href dynamically with search query viewAllPosts.href = 'https://coinpedia.org/?s=' + encodeURIComponent(query); viewAllLink.href = 'https://events.coinpedia.org/global_search/?search=' + encodeURIComponent(query); viewAllLinkProfessional.href = 'https://events.coinpedia.org/global_search/?search=' + encodeURIComponent(query); viewAllLinkCompany.href = 'https://events.coinpedia.org/global_search/?search=' + encodeURIComponent(query); viewAllLinkCryptocurrency.href = 'https://markets.coinpedia.org/?search=' + encodeURIComponent(query); viewAllLinkExchange.href = 'https://markets.coinpedia.org/exchanges/?search=' + encodeURIComponent(query); // mobile view // Update the href dynamically with search query viewAllPostsMb.href = 'https://coinpedia.org/?s=' + encodeURIComponent(query); viewAllLinkMb.href = 'https://events.coinpedia.org/global_search/?search=' + encodeURIComponent(query); viewAllLinkProfessionalMb.href = 'https://events.coinpedia.org/global_search/?search=' + encodeURIComponent(query); viewAllLinkCompanyMb.href = 'https://events.coinpedia.org/global_search/?search=' + encodeURIComponent(query); viewAllLinkCryptocurrencyMb.href = 'https://markets.coinpedia.org/?search=' + encodeURIComponent(query); viewAllLinkExchangeMb.href = 'https://markets.coinpedia.org/exchanges/?search=' + encodeURIComponent(query); // Fetch events, speakers, and organizers jQuery.ajax({ url: 'https://coinpedia.org/wp-admin/admin-ajax.php', method: 'POST', data: { action: 'fetch_events_lists', query: query }, success: function(response) { jQuery('.loader').hide(); let data = JSON.parse(response); let eventsHTML = ''; let speakersHTML = ''; let organizersHTML = ''; if (data.message) { // Events if (data.message.events && data.message.events.length > 0) { data.message.events.forEach(function(event) { var eventsImageURL = event.event_image ? `https://image.coinpedia.org/app_uploads/events/${event.event_image}` : 'https://image.coinpedia.org/app_uploads/profile/default.png'; var eventURL = `${EVENTS_HOME_URL}/${event.event_url}`; eventsHTML += `

${highlightText(event.event_title, query)}

`; }); jQuery('#events-suggestions').html(eventsHTML); jQuery('#events-suggestions-mb').html(eventsHTML); jQuery('.viewAllLink').show(); jQuery('.viewAllLink_mb').show(); } else { jQuery('#events-suggestions').html('

No events found.

'); jQuery('#events-suggestions-mb').html('

No events found.

'); jQuery('.viewAllLink').hide(); jQuery('.viewAllLink_mb').hide(); } // Speakers if (data.message.speakers && data.message.speakers.length > 0) { data.message.speakers.forEach(function(speaker) { var profileImageURL = speaker.profile_image ? `https://image.coinpedia.org/app_uploads/profile/${speaker.profile_image}` : 'https://image.coinpedia.org/app_uploads/profile/default.png'; speakersHTML += `

${highlightText(speaker.full_name, query)}

`; }); jQuery('#professional-suggestions').html(speakersHTML); jQuery('#professional-suggestions-mb').html(speakersHTML); jQuery('.view_professional').show(); jQuery('.view_professional_mb').show(); } else { jQuery('#professional-suggestions').html('

No professionals found.

'); jQuery('#professional-suggestions-mb').html('

No professionals found.

'); jQuery('.view_professional').hide(); jQuery('.view_professional_mb').hide(); } // Organizers if (data.message.organizers && data.message.organizers.length > 0) { data.message.organizers.forEach(function(organizer) { var defaultImageURL = organizer.company_logo ? `https://image.coinpedia.org/app_uploads/profile/${organizer.company_logo}` : 'https://image.coinpedia.org/app_uploads/profile/default.png'; organizersHTML += `

${highlightText(organizer.company_name, query)}

`; }); jQuery('#companies-suggestions').html(organizersHTML); jQuery('#companies-suggestions-mb').html(organizersHTML); jQuery('.view_company').show(); jQuery('.view_company_mb').show(); } else { jQuery('#companies-suggestions').html('

No companies found.

'); jQuery('#companies-suggestions-mb').html('

No companies found.

'); jQuery('.view_company').hide(); jQuery('.view_company_mb').hide(); } } }, error: function() { jQuery('.loader').hide(); console.error('Failed to fetch data.'); } }); // Fetch resources jQuery.ajax({ url: 'https://coinpedia.org/wp-admin/admin-ajax.php', method: 'POST', data: { action: 'fetch_resources', query: query }, success: function(response) { let resources; try { resources = JSON.parse(response); } catch (e) { console.error('Failed to parse JSON response:', response); return; } let resourceHTML = ''; if (resources.error) { jQuery('.resourcenotfound').show().text(resources.error); } else if (resources.length > 0) { resources.forEach(function(resource) { resourceHTML += `

${highlightText(resource.title, query)}

`; }); jQuery('#resource-suggestions').html(resourceHTML); jQuery('.viewAllPosts').show(); jQuery('#resource-suggestions-mb').html(resourceHTML); jQuery('.viewAllPosts_mb').show(); } else { jQuery('#resource-suggestions').html('

No posts found.

'); jQuery('.viewAllPosts').hide(); jQuery('#resource-suggestions-mb').html('

No posts found.

'); jQuery('.viewAllPosts_mb').hide(); } const tabMenu = document.querySelector('.tab-menu'); let isDragging = false; let startX; let scrollLeft; tabMenu.addEventListener('mousedown', (e) => { isDragging = true; tabMenu.classList.add('dragging'); startX = e.pageX - tabMenu.offsetLeft; scrollLeft = tabMenu.scrollLeft; }); tabMenu.addEventListener('mouseleave', () => { isDragging = false; tabMenu.classList.remove('dragging'); }); tabMenu.addEventListener('mouseup', () => { isDragging = false; tabMenu.classList.remove('dragging'); }); tabMenu.addEventListener('mousemove', (e) => { if (!isDragging) return; e.preventDefault(); const x = e.pageX - tabMenu.offsetLeft; const move = (x - startX) * 1.5; // Adjust this value for scroll speed tabMenu.scrollLeft = scrollLeft - move; }); }, error: function(xhr, status, error) { console.error('AJAX request failed:', status, error); } }); /*************** Markets api cryptocurrency global search integration url ************************/ jQuery.ajax({ url: 'https://coinpedia.org/wp-admin/admin-ajax.php', method: 'POST', data: { action: 'fetch_markets_cryptocurrency_lists', query: query }, success: function(response) { jQuery('.loader').hide(); let data; try { data = JSON.parse(response); } catch (e) { console.error('Failed to parse response JSON:', e); return; } let crypto_base_url = 'https://markets.coinpedia.org'; let cryptocurrencyHTML = ''; let walletAddressHTML = ''; let hasCryptocurrencies = false; let hasWalletAddresses = false; jQuery('#cryptocurrency-suggestions').html(''); jQuery('#wallet-address-suggestions').html(''); // Handle cryptocurrency data if (data.cryptocurrencies && data.cryptocurrencies.message) { if (data.cryptocurrencies.message.length > 0) { hasCryptocurrencies = true; // Set the flag to true if there are cryptocurrencies data.cryptocurrencies.message.forEach(function(crypto) { let cryptoImageURL = crypto.token_image ? `https://image.coinpedia.org/app_uploads/markets/cryptocurrencies/${crypto.token_image}` : 'https://image.coinpedia.org/app_uploads/profile/default.png'; cryptocurrencyHTML += `

${highlightText(crypto.token_name, query)} ${crypto.symbol}

`; }); jQuery('#cryptocurrency-suggestions').html(cryptocurrencyHTML); jQuery('.view_cryptocurrency').show(); jQuery('#cryptocurrency-suggestions-mb').html(cryptocurrencyHTML); jQuery('.view_cryptocurrency_mb').show(); } } else { console.error('Unexpected data format for cryptocurrencies:', data); } // If cryptocurrencies data is empty, check wallet addresses if (!hasCryptocurrencies && data.wallet_addresses && data.wallet_addresses.message) { if (Object.keys(data.wallet_addresses.message).length > 0) { hasWalletAddresses = true; var wallet_data = data.wallet_addresses.message.currency; var walletImageURL = '/assets/img/default_token.png'; walletAddressHTML += `

${highlightText(wallet_data.name, query)} (${wallet_data.symbol}) #${wallet_data.tokenType}

`; jQuery('#wallet-address-suggestions').html(walletAddressHTML); jQuery('.view_cryptocurrency').hide(); jQuery('#wallet-address-suggestions-mb').html(walletAddressHTML); jQuery('.view_cryptocurrency_mb').hide(); } } else if (!hasCryptocurrencies) { console.error('Unexpected data format for wallet addresses:', data); } // Display "not found" message only if both are empty if (!hasCryptocurrencies && !hasWalletAddresses) { jQuery('#cryptocurrency-suggestions').html('

No currencies found.

'); jQuery('.view_cryptocurrency').hide(); jQuery('#cryptocurrency-suggestions-mb').html('

No currencies found.

'); jQuery('.view_cryptocurrency_mb').hide(); } }, error: function() { jQuery('.loader').hide(); console.error('Failed to fetch data.'); }});/********* Markets exchange api integration ********************/jQuery.ajax({ url: 'https://coinpedia.org/wp-admin/admin-ajax.php', method: 'POST', data: { action: 'fetch_markets_exchange_lists', query: query }, success: function(response) { jQuery('.loader').hide(); let data; try { data = JSON.parse(response); } catch (e) { console.error('Failed to parse response JSON:', e); return; } let exchangecurrencyHTML = ''; if (data.message) { if (data.message.length > 0) { data.message.forEach(function(exchange) { let exchange_base_url = 'https://markets.coinpedia.org'; let exchangeImageURL = exchange.exchange_image ? `https://image.coinpedia.org/app_uploads/markets/exchanges/${exchange.exchange_image}` : 'https://image.coinpedia.org/app_uploads/profile/default.png'; exchangecurrencyHTML += `

${highlightText(exchange.exchange_name, query)}

`; }); jQuery('#markets-exchange-suggestions').html(exchangecurrencyHTML); jQuery('.view_exchange').show(); jQuery('#markets-exchange-suggestions-mb').html(exchangecurrencyHTML); jQuery('.view_exchange_mb').show(); } else { jQuery('#markets-exchange-suggestions').html('

No market exchanges found.

'); jQuery('.view_exchange').hide(); jQuery('#markets-exchange-suggestions-mb').html('

No market exchanges found.

'); jQuery('.view_exchange_mb').hide(); } } else { console.error('Unexpected data format:', data); } }, error: function() { jQuery('.loader').hide(); console.error('Failed to fetch data.'); }});}jQuery(document).ready(function($) { $('.tab-item').on('click', function() { var tabId = $(this).data('tab'); $('.tab-item').removeClass('active'); $(this).addClass('active'); $('.tab-content').removeClass('active'); $('#' + tabId).addClass('active'); }); $(document).click(function(event) { if (!$(event.target).closest('.custom-search-container').length) { $('.hide-suggestions-tabs').hide(); } });});

  • SUI Price is Breaking Out—Is it Heading Towards a New ATH at $5? (2024)
    Top Articles
    Latest Posts
    Recommended Articles
    Article information

    Author: Tyson Zemlak

    Last Updated:

    Views: 5882

    Rating: 4.2 / 5 (63 voted)

    Reviews: 94% of readers found this page helpful

    Author information

    Name: Tyson Zemlak

    Birthday: 1992-03-17

    Address: Apt. 662 96191 Quigley Dam, Kubview, MA 42013

    Phone: +441678032891

    Job: Community-Services Orchestrator

    Hobby: Coffee roasting, Calligraphy, Metalworking, Fashion, Vehicle restoration, Shopping, Photography

    Introduction: My name is Tyson Zemlak, I am a excited, light, sparkling, super, open, fair, magnificent person who loves writing and wants to share my knowledge and understanding with you.