News
26 May 2025, 12:35
Here’s Where XRP Price Will Be if BlackRock Files for Spot ETF Now!
The post Here’s Where XRP Price Will Be if BlackRock Files for Spot ETF Now! appeared first on Coinpedia Fintech News XRP has always been in the news—whether it’s about regulations, new tech, or real-world use. But now, something even bigger could be on the way. There are growing rumors that BlackRock, the world’s largest asset manager with $11.6 trillion in assets, might soon file for a spot XRP ETF. Now, many are wondering where could XRP’s price go if BlackRock files this week? Betting Odds Suggest Big Moves Ahead Traders on Polymarket, a popular blockchain-based prediction platform, are putting their money where their mouth is. They now believe there’s an 83% chance the SEC will approve an XRP ETF, up from just 68% a month ago. That kind of spike shows growing confidence in XRP’s future in the U.S. market. If BlackRock does apply, it could mark a major turning point for XRP. When it filed for a Bitcoin ETF, prices soared. The same happened with Ethereum. Now, if XRP becomes the next target, history could repeat itself. Why This Filing Could Be a Game-Changer There’s growing speculation that BlackRock might be quietly preparing to launch a spot XRP ETF. According to Vandell Aljarra, Co-founder of Black Swan Capital, BlackRock likely wants to move forward with an XRP ETF. However, the biggest challenge is still the ongoing regulatory issues. The main concern is the unresolved Ripple vs. SEC case, which questions whether XRP is a security. This legal uncertainty has made XRP a more risky asset compared to Bitcoin and Ethereum, which already have clearer regulatory status. XRP Price To Go If BlackRock Files for XRP ETF As of now, the XRP price is trading around $2.33 , reflecting a pump of 1.8% in the last 24 hours. If BlackRock does file for a spot XRP ETF, experts believe the price could quickly jump past $3, and possibly reach $4.60 or even higher in the coming months, especially if the ETF eventually gets approved.
26 May 2025, 12:22
Trump Condemns Putin Amid Rising Tensions: What This Means for BTC and Market Risk
In recent weeks, the cryptocurrency market has witnessed heightened volatility, influenced significantly by global geopolitical developments. Former U.S. President Donald Trump’s recent remarks condemning Russian President Vladimir Putin’s aggressive military
26 May 2025, 12:22
New MicroStrategy Bitcoin Acquisition Pushes Holdings Past 580K BTC Mark
The post New MicroStrategy Bitcoin Acquisition Pushes Holdings Past 580K BTC Mark appeared first on Coinpedia Fintech News MicroStrategy, now Strategy, is at it again. For the seventh week in a row, the company has expanded its already massive Bitcoin treasury, proving once again that its conviction runs deeper than most. What a bold power move! While most companies play it safe, MicroStrategy keeps doubling down – even when prices are near all-time highs. But why now? And how big is their bet really? Let’s unpack what just happened. Details of Strategy’s Latest Bitcoin Purchase In its latest acquisition, MicroStrategy scooped up 4,020 BTC for roughly $427.1 million , paying an average of $106,237 per coin . As of May 26, the firm holds a staggering 580,250 BTC , acquired for around $40.61 billion – at an average cost basis of $69,979 per Bitcoin . According to the company, it has achieved a BTC Yield of 16.8% year-to-date in 2025 , a metric that aims to capture performance beyond traditional profit figures. While critics debate the validity of such internal calculations, it’s hard to argue with results when you’re holding nearly half a million BTC. A Relentless Streak with ‘Strategy’ to Back It Up Just last week, MicroStrategy added 7,390 BTC to its holdings in a single move worth nearly $765 million. That brought its total stash at the time to 576,230 BTC, locking in an unrealized gain of $23.1 billion – a profit larger than the market cap of many Fortune 500 giants. The company’s co-founder, Michael Saylor , foreshadowed the buy on X, writing: “I only buy Bitcoin with money I can’t afford to lose.” This marks 7 straight weeks of accumulation – a pattern that speaks volumes about MicroStrategy’s outlook, especially in the face of market volatility. Analysts See a $10 Trillion Future Market analyst Jeff Walton isn’t holding back. Speaking to the Financial Times , he had previously claimed MicroStrategy could one day become “the most valuable publicly traded corporation in the world”, thanks to its Bitcoin arsenal. “Strategy holds more of the best assets, and the most pristine collateral, on the entire planet than any other company, by multiples,” Walton said. He also noted the firm’s ability to raise billions in under two months, a feat most public companies can only dream of. But All Eyes Are on the Lawsuit Yet beneath the headlines, not everything is bullish. MicroStrategy is currently facing a class action lawsuit in the Eastern District of Virginia. Filed by Pomerantz LLP, the case accuses the firm of misleading investors over the implications of new Bitcoin accounting rules under ASU 2023-08. The dispute is around a potential $5.91 billion fair-value loss that critics say wasn’t properly communicated. The complaint also alleges that metrics like “BTC Yield” and “BTC $ Gain” paint an overly optimistic picture not backed by GAAP accounting standards. The backlash has already hit. May 1 earnings confirmed investor concerns. Between record buys, soaring profits, and regulatory heat, the company sits at the intersection of innovation and risk. Will it pay off is a question only time can answer.
26 May 2025, 12:12
Florida Proposes Law to Eliminate Capital Gains Tax on XRP
In a groundbreaking policy move that could significantly reshape the cryptocurrency landscape in the United States, Florida has introduced a legislative proposal aiming to eliminate state-level capital gains tax on digital assets, including XRP. This development was first spotlighted by crypto influencer Amelie, who posted on X, “FLORIDA PROPOSES LAW TO ELIMINATE CAPITAL GAINS TAX ON XRP.” The announcement has sent ripples of excitement through the XRP and broader crypto communities, fueling discussions about how such legislation could propel Florida into the forefront of crypto-friendly jurisdictions. JUST IN: FLORIDA PROPOSES LAW TO ELIMINATE CAPITAL GAINS TAX ON #XRP https://t.co/hM4NGuQ35U pic.twitter.com/fE3PqThnUz — 𝓐𝓶𝓮𝓵𝓲𝓮 (@_Crypto_Barbie) May 26, 2025 Florida’s Bold Legislative Shift Florida has long positioned itself as an innovation hub, welcoming blockchain companies, fintech startups, and tech entrepreneurs with open arms. The new proposal to eliminate capital gains tax on digital assets like XRP further cements the state’s reputation as a leader in crypto policy experimentation. Although Florida does not currently impose a state capital gains tax, residents only pay federal capital gains taxes — the proposed law seeks to clarify and codify exemptions specifically for digital assets. This clarity could provide a significant incentive for crypto investors, traders, and businesses to migrate operations or residency to Florida, enhancing the state’s competitiveness on the national stage. What makes this move particularly groundbreaking is that it positions Florida as one of the first U.S. states to formally recognize and exempt crypto assets like XRP from state-level capital gains taxation in explicit legal language. While federal tax obligations would still apply, this exemption would lower the overall tax burden for Florida-based investors, making it far more attractive compared to less progressive states. Implications for XRP and Broader Crypto Adoption The potential elimination of capital gains tax on XRP is more than just a tax break; it’s a signal of growing institutional acceptance and government acknowledgment of XRP’s utility. XRP, designed as a bridge currency for cross-border payments, has long been celebrated for its speed, scalability, and minimal transaction costs. This legislative move not only validates XRP’s role in the future of finance but could also unlock new levels of adoption by removing tax friction for everyday users and institutional players alike. Eliminating capital gains taxes means that investors could trade XRP more freely, without worrying about incurring additional state-level tax liabilities each time they convert, spend, or reinvest their digital assets. This reduced friction may encourage greater transactional use of XRP, moving it further beyond a speculative asset and into its envisioned role as a true medium of exchange and cross-border liquidity tool. Economic and Regulatory Ripple Effects Florida’s proposal also has broader economic and regulatory implications. By creating a more hospitable tax environment for crypto, the state positions itself as a magnet for blockchain businesses, investment funds, crypto exchanges, and fintech startups. Companies seeking regulatory clarity and tax advantages may flock to Florida, creating jobs, stimulating economic activity, and enhancing the state’s reputation as a blockchain innovation center. We are on twitter, follow us to connect with us :- @TimesTabloid1 — TimesTabloid (@TimesTabloid1) July 15, 2023 Furthermore, if Florida’s initiative proves successful, it could inspire other U.S. states to explore similar tax incentives. With federal regulation over crypto still evolving, state-level experiments like this one provide valuable case studies on how local policy can influence national trends. Observers in states like Texas, Wyoming, and Colorado — all known for their crypto-forward policies — will no doubt be watching Florida’s efforts closely. The Road Ahead for the Proposal While the proposal has generated excitement, it is important to remember that it must still pass through Florida’s legislative process before becoming law. Lawmakers will need to navigate debates over potential revenue impacts, regulatory compliance, and alignment with federal tax obligations. However, given Florida’s history of crypto-friendly stances and its ambition to lead in financial innovation, many analysts are optimistic about the bill’s prospects. In the weeks and months ahead, crypto investors, tax professionals, and blockchain industry leaders will be closely monitoring the legislative process. If the bill passes, Florida could become a pioneer in modern crypto taxation — not only benefiting XRP holders but potentially setting the stage for a new wave of state-level crypto policy innovation across the United States. As Amelie’s post captures, this is not just a local tax story; it’s a transformative moment for XRP, for Florida, and possibly for the entire U.S. crypto ecosystem. The floodgates of innovation, investment, and adoption may soon swing wide open. Disclaimer : This content is meant to inform and should not be considered financial advice. The views expressed in this article may include the author’s personal opinions and do not represent Times Tabloid’s opinion. Readers are urged to do in-depth research before making any investment decisions. Any action taken by the reader is strictly at their own risk. Times Tabloid is not responsible for any financial losses. Follow us on Twitter , Facebook , Telegram , and Google News The post Florida Proposes Law to Eliminate Capital Gains Tax on XRP appeared first on Times Tabloid .
26 May 2025, 11:58
Bitfinex Alpha | Beware of Profit Taking
Review full report Subscribe to Bitfinex Alpha Subscribe to Bitfinex Alpha! Want to receive Alpha from Bitfinex every week? Subscribe if (document.cookie.indexOf('sticky-note-subscribe=1') === -1) { document.querySelector('#sticky-note-subscribe').style.display = 'block'}document.querySelector('#sticky-note-subscribe-cta').addEventListener('click', (e) => { e.preventDefault(); document.querySelector('#sticky-note-subscribe').style.display = 'none' document.cookie = 'sticky-note-subscribe=1; max-age=7776000';}); .wp-block-buttons > .wp-block-button { flex: 1;}.wp-block-buttons .wp-block-button .wp-block-button__link { display: block; text-align: center;}.wp-block-buttons .wp-block-button:last-child .wp-block-button__link { background-color: #1ABC91; border-color: #1abc9c; color: #fff;} Following a 32 percent decline from January’s all-time highs, BTC has rallied more than 50 percent, reaching new highs of $111,880, and has now entered a phase of healthy consolidation. Strong ETF inflows, surging spot market participation, and positive net realised cap growth have contributed to structural buying in the market, rather than speculative excess. Even as macro risk aversion has returned, with news of possible 50 percent US tariffs on European imports, Bitcoin has held firm—unwinding excess leverage and absorbing profit-taking without a significant breakdown. With such strong gains, profit taking becomes an increasing possibility at these levels . This resilience is drawing attention to Bitcoin’s evolving role as a macro-sensitive, conviction-driven asset that now trades more in line with global liquidity flows than retail sentiment. Notably, Metaplanet’s $104 million accumulation of Bitcoin, and Michigan’s proposed crypto-friendly legislation further validate the narrative of growing institutional and policy-level support for digital assets. Looking ahead, Bitcoin’s ability to continue to consolidate above its short-term holder cost basis around $95,000 remains key. With over $11.4 billion in short-term holder profits realised in the past month, near-term supply overhang is expected—but so is structural demand. ETF bid strength, low volatility, and spot premium all suggest a maturing market poised for eventual continuation once macro clarity improves. The coming weeks will likely determine whether Bitcoin’s latest breakout was a local high or the prelude to a more aggressive leg higher in Q3. In the meantime, the US faces growing financial strain as long-term Treasury yields surge and the dollar weakens amid credit downgrades, rising debt , and looming tariffs. Investor confidence is shaken, with yields on 10-year and 30-year bonds surpassing 4.5 and 5 percent , reflecting scepticism over fiscal discipline and inflation risks. The steepening 30Y/10Y yield curve , typically a growth signal, now reflects fears over long-term risk—not optimism. With foreign demand weakening and Fed support of the bond market fading, markets are pricing in a new era of higher rates and volatility . The bond market is no longer reacting to headlines—it’s warning of a structural shift in how risk is priced. Last week, both institutional adoption and regulatory momentum advanced on multiple fronts. Publicly listed firms Strategy, Metaplanet, and Semler Scientific collectively acquired over 8,800 BTC , reinforcing Bitcoin’s role as a strategic treasury asset. Strategy now holds more than 2.7 percent of Bitcoin’s total supply, highlighting a growing trend among corporations to treat BTC as a long-term reserve in times of economic uncertainty.On the adoption front, FIFA announced it is building its own blockchain on Avalanche, shifting from previous partners Algorand and Polygon. The new EVM-compatible network will make it easier for developers and fans to access digital collectibles, positioning FIFA to scale its Web3 ambitions. The post Bitfinex Alpha | Beware of Profit Taking appeared first on Bitfinex blog .
26 May 2025, 11:40
Florida to Eliminate Capital Gains Tax on Bitcoin, XRP, and Stocks
The post Florida to Eliminate Capital Gains Tax on Bitcoin, XRP, and Stocks appeared first on Coinpedia Fintech News Florida has introduced a groundbreaking bill that could change how Bitcoin, XRP, and stocks are taxed—at least at the state level. If passed, this legislation would exempt state capital gains tax on crypto and traditional stock profits, setting a powerful precedent in the U.S. and potentially driving crypto adoption nationwide. Just in: Florida unveils bill to scrap capital gains taxes on #Bitcoin . #CoinPedia #CryptoNews #Blockchain #CryptoMarket — Coinpedia (@CoinpediaNews) May 26, 2025 What’s in Florida’s New Crypto Tax Proposal The bill, championed by Florida’s Republican leadership under Governor Ron DeSantis , aims to eliminate capital gains tax on Bitcoin, XRP, and stocks at the state level. This would allow investors to retain more of their profits , giving Florida a major competitive edge in the crypto space. However, federal capital gains tax still applies —only Congress can change that. Bitcoin and XRP React Positively In the past 24 hours: Bitcoin price surged 2.4% , now trading around $109,835 XRP rose by 2.2% and currently stands at $2.34 Short-term trends show: Asset 30-Day Growth 3-Month Growth BTC +16.55% +19.6% XRP +5.42% +2.71% Some analysts believe this proposal could help push Bitcoin to $135,000 in the next 3 months. Aligns With Trump’s National Crypto Vision This Florida initiative appears to align with President Donald Trump’s broader push for crypto-friendly regulation . Trump, now leading the U.S. administration, has signaled strong support for digital assets and blockchain innovation. With 27 U.S. states governed by Republicans , more pro-crypto tax bills could follow. Public Opinion: A Divided Response Supporters say: It could make Florida the crypto capital of the U.S. Attract big businesses and high-net-worth investors Critics warn: It might complicate tax filings Could clash with federal tax regulations , causing confusion Why This Matters for the Entire Crypto Market If Florida passes this bill, it could spark a wave of similar legislation in other Republican-led states. That momentum may: Pressure federal lawmakers to act on nationwide crypto tax reforms Lead to a more unified framework for crypto adoption across the U.S. Final Take This isn’t just a Florida story—it’s a potential turning point for U.S. crypto policy . Whether you’re a crypto investor, trader, or builder, keep an eye on this bill—it might shape the next phase of crypto growth in America. .article_register_shortcode { padding: 18px 24px; border-radius: 8px; display: flex; align-items: center; margin: 6px 0 22px; border: 1px solid #0052CC4D; background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 82, 204, 0.1) 100%); } .article_register_shortcode .media-body h5 { color: #000000; font-weight: 600; font-size: 20px; line-height: 22px; text-align:left; } .article_register_shortcode .media-body h5 span { color: #0052CC; } .article_register_shortcode .media-body p { font-weight: 400; font-size: 14px; line-height: 22px; color: #171717B2; margin-top: 4px; text-align:left; } .article_register_shortcode .media-body{ padding-right: 14px; } .article_register_shortcode .media-button a { float: right; } .article_register_shortcode .primary-button img{ vertical-align: middle; width: 20px; margin: 0; display: inline-block; } @media (min-width: 581px) and (max-width: 991px) { .article_register_shortcode .media-body p { margin-bottom: 0; } } @media (max-width: 580px) { .article_register_shortcode { display: block; padding: 20px; } .article_register_shortcode img { max-width: 50px; } .article_register_shortcode .media-body h5 { font-size: 16px; } .article_register_shortcode .media-body { margin-left: 0px; } .article_register_shortcode .media-body p { font-size: 13px; line-height: 20px; margin-top: 6px; margin-bottom: 14px; } .article_register_shortcode .media-button a { float: unset; } .article_register_shortcode .secondary-button { margin-bottom: 0; } } Never Miss a Beat in the Crypto World! Stay ahead with breaking news, expert analysis, and real-time updates on the latest trends in Bitcoin, altcoins, DeFi, NFTs, and more. .subscription-options li { display: none; } .research-report-subscribe{ background-color: #0052CC; padding: 12px 20px; border-radius: 8px; color: #fff; font-weight: 500; font-size: 14px; width: 96%; } .research-report-subscribe img{ vertical-align: sub; margin-right: 2px; } Subscribe to News var templateIds = "6"; var listOfSubscribed = []; function subscribed_popupmodal(template_id) { var templateId = '6'; getAllSubscriberCategoryList([templateId]); var subcribemodal = window.parent.document.getElementById('subscribe-modal-design'); if (subcribemodal) { var modalContent = ` Never Miss a Beat in the Crypto World! Stay informed and gain the edge you need to navigate the crypto world. Select your subscription now Daily Get real-time crypto news, market insights, and blockchain updates. Weekly Stay updated with major trends, funding news, and price analysis. Monthly Receive a detailed report with market analysis and expert predictions. Subscribe Now `; subcribemodal.innerHTML = modalContent; } subscribe_unsubscribe_status(template_id); //getAllSubscriberCategoryList(template_id); } function toggleSubscription(subscription, template_id) { var subscriptionCheckbox = document.getElementById(subscription + '_' + template_id); var li = document.getElementById(subscription + 'Selected_' + template_id); if (subscriptionCheckbox.checked) { li.classList.add('active'); } else { li.classList.remove('active'); } } function getAllSubscriberCategoryList(getcategoryId) { jQuery.ajax({ url: 'https://coinpedia.org/wp-admin/admin-ajax.php', type: 'GET', data: { action: 'subscribe_api_ajax_request', apiurl: '/app/email_newsletter/list', }, success: function(response) { var result = JSON.parse(response.message); if (result.status === true) { var idstosubscribed = [] // Populate listOfSubscribed with subscribed category IDs result.message.forEach(listofcategory => { if (listofcategory.subscribe_status === 1) { if (!listOfSubscribed.includes(listofcategory._id)) { listOfSubscribed.push(listofcategory._id); } if (!idstosubscribed.includes(listofcategory.news_cp_category_row_id)) { idstosubscribed.push(listofcategory.news_cp_category_row_id); } } }); idstosubscribed.forEach(id => { var subscribeButton = document.getElementById('subscribe_' + id); var unsubscribeButton = document.getElementById('unsubscribe_' + id); if (subscribeButton && unsubscribeButton) { subscribeButton.style.display = 'none'; unsubscribeButton.style.display = 'block'; var showDownloadReport = document.getElementById('download_report'); if (showDownloadReport) { showDownloadReport.style.display = 'block'; } } }); } }, error: function(xhr, status, error) { console.error('Error:', error); } }); } function subscribe_unsubscribe_status(getcategoryId) { var elementTounsubscribe = parent.document.getElementById('unsubscribe_' + getcategoryId); var elementTosubscribe = parent.document.getElementById('subscribe_' + getcategoryId); jQuery.ajax({ url: 'https://coinpedia.org/wp-admin/admin-ajax.php', type: 'POST', data: { action: 'subscribe_api_ajax_request', apiurl: '/app/email_newsletter/list?category_row_id=' + getcategoryId, }, success: function(response) { var result = JSON.parse(response.message); if (result.status === true) { parent.jQuery('.skeliton-loader-block').hide(); var hasSubscribeStatusOne = false; result.message.forEach(subscribeStatus => { if (listOfSubscribed.includes(subscribeStatus._id) && subscribeStatus.subscribe_status === 1) { hasSubscribeStatusOne = true; } if (subscribeStatus.notification_type === 3) { parent.document.getElementById('monthlySelected_' + getcategoryId).style.display = 'block'; parent.document.getElementById('monthly_' + getcategoryId).setAttribute('data-id', subscribeStatus._id); if (subscribeStatus.subscribe_status === 1) { parent.document.getElementById('monthly_' + getcategoryId).checked = true; } } else if (subscribeStatus.notification_type === 2) { parent.document.getElementById('weeklySelected_' + getcategoryId).style.display = 'block'; parent.document.getElementById('weekly_' + getcategoryId).setAttribute('data-id', subscribeStatus._id); if (subscribeStatus.subscribe_status === 1) { parent.document.getElementById('weekly_' + getcategoryId).checked = true; } } else if (subscribeStatus.notification_type === 1) { parent.document.getElementById('dailySelected_' + getcategoryId).style.display = 'block'; parent.document.getElementById('daily_' + getcategoryId).setAttribute('data-id', subscribeStatus._id); if (subscribeStatus.subscribe_status === 1) { parent.document.getElementById('daily_' + getcategoryId).checked = true; } } if (subscribeStatus.subscribe_status === 1) { listOfSubscribed.push(subscribeStatus._id); } }); if (hasSubscribeStatusOne) { elementTosubscribe.style.display = 'none'; elementTounsubscribe.style.display = 'block'; } else { elementTosubscribe.style.display = 'block'; elementTounsubscribe.style.display = 'none'; } } }, error: function(xhr, status, error) { console.error('Error:', error); } }); } function logSelectedSubscriptions(categoryid) { var unsubscribemodal = document.querySelector('.unsubscribed-popup-modal .modal'); var subscribedmodal = document.querySelector('.subscribed-popup-modal .modal'); unsubscribemodal.innerHTML=''; subscribedmodal.innerHTML=''; var selectedSubscriptions = []; var storeCheckedId = []; var checkboxes = document.querySelectorAll('#subscription-options-' + categoryid + ' input[type="checkbox"]'); var errorMessage = document.getElementById('error-message-select'); // Use a Set to handle unique data-ids var uniqueSubscribedIds = new Set(listOfSubscribed); checkboxes.forEach(function(checkbox) { var dataId = parseInt(checkbox.getAttribute('data-id')); if (checkbox.checked) { selectedSubscriptions.push(checkbox.id); storeCheckedId.push(dataId); } else { uniqueSubscribedIds.delete(dataId); // Remove unchecked data-id } }); // Update listOfSubscribed with unique values listOfSubscribed = Array.from(uniqueSubscribedIds); var selectedSubscriptionsString = selectedSubscriptions.join(', '); var concatinateSubscribeId = [...new Set(storeCheckedId.concat(listOfSubscribed))]; var categoryData = { 'subscribed_categories': concatinateSubscribeId }; var requestSubscriberData = { action: 'handle_dynamic_api_request_with_headers', security: 'd26857c532', endpoint: '/app/email_newsletter/update_categories', token: '', data: categoryData }; jQuery.ajax({ url: 'https://coinpedia.org/wp-admin/admin-ajax.php', type: 'POST', data: requestSubscriberData, beforeSend: function(xhr) { xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); }, success: function(response) { try { response = response.data; if (storeCheckedId.length === 0) { var unsubcribedPopUpmodal = ` You’ve Unsubscribed Successfully We're sorry to see you go! Your subscription has been canceled. If you change your mind, you can re-subscribe anytime. Thank you for being part of our community! `; unsubscribemodal.innerHTML = unsubcribedPopUpmodal; document.querySelector('#subscribe-modal-design .modal').style.display = 'none'; unsubscribemodal.style.display = 'block'; unsubscribemodal.classList.remove('hide'); unsubscribemodal.classList.add('show'); document.getElementById('subscribe_' + categoryid).style.display = 'block'; document.getElementById('unsubscribe_' + categoryid).style.display = 'none'; var showDownloadReport = document.getElementById('download_report'); if (showDownloadReport) { showDownloadReport.style.display = 'none'; } } else { var subscribedPopupModal = ` Thank you for subscribing! Thank you for subscribing to our crypto and blockchain newsletter! You’ll now receive the latest news, insights, and updates straight to your inbox. Welcome to our community! `; let selectedSubscriptionsArray = selectedSubscriptionsString.split(','); let subscribedCategories = selectedSubscriptionsArray.map(subscription => subscription.split('_')[0]); let subscribedCategoriesString = subscribedCategories.join(', '); subscribedmodal.innerHTML = subscribedPopupModal; if (document.getElementById('selectidname')) { document.getElementById('selectidname').textContent = subscribedCategoriesString; } document.querySelector('#subscribe-modal-design .modal').style.display = 'none'; subscribedmodal.style.display = 'block'; subscribedmodal.classList.remove('hide'); subscribedmodal.classList.add('show'); document.getElementById('subscribe_' + categoryid).style.display = 'none'; document.getElementById('unsubscribe_' + categoryid).style.display = 'block'; var showDownloadReport = document.getElementById('download_report'); if (showDownloadReport) { showDownloadReport.style.display = 'block'; } } } catch (e) { console.error('Error parsing response:', e); } }, }); } function closeModal(template_id) { var modalId = template_id; var modal = document.querySelector('#' + modalId); // Using querySelector to find the modal if (modal) { modal.classList.add('hide'); modal.classList.remove('show'); setTimeout(function() { modal.style.display = 'none'; }, 500); } else { console.warn('Modal not found:', modalId); } } function closeunsubscribemodal() { var unsubscribemodal = document.querySelector('.unsubscribed-popup-modal .modal'); if (unsubscribemodal) { unsubscribemodal.classList.add('hide'); unsubscribemodal.classList.remove('show'); } setTimeout(function() { unsubscribemodal.style.display = 'none'; }, 500); } function closesubscribemodal() { var subscribedmodal = document.querySelector('.subscribed-popup-modal .modal'); setTimeout(function() { subscribedmodal.style.display = 'none'; }, 500); if (subscribedmodal) { subscribedmodal.classList.add('hide'); subscribedmodal.classList.remove('show'); } } function withoutLoginClicked(withoutlogin_id) { localStorage.setItem('subscribe_without_Login', 'true'); localStorage.setItem('subscribe_clicked_id', withoutlogin_id); } document.addEventListener('DOMContentLoaded', function() { const subscribewithoutData = localStorage.getItem('subscribe_without_Login'); const subscribe_clicked_cat_id = localStorage.getItem('subscribe_clicked_id'); // Function to get cookies function getCookie(name) { let value = "; " + document.cookie; let parts = value.split("; " + name + "="); if (parts.length == 2) return parts.pop().split(";").shift(); } // Get user token from cookies const userToken = getCookie('user_token'); if (subscribewithoutData === 'true' && userToken) { // Call the modal function with the category ID subscribed_popupmodal(subscribe_clicked_cat_id); // Remove the flag and category ID from localStorage localStorage.removeItem('subscribe_without_Login'); localStorage.removeItem('subscribe_clicked_id'); } }); /************************** update susbcriber content **************************** */ function initializeSubscriptionButton() { var initialListItems = document.querySelectorAll('.subscription-options input[type="checkbox"]'); initialListItems.forEach(function(item) { console.log(item.checked, 'Initial Checkbox checked status'); }); var listItems = document.querySelectorAll('.subscription-options li'); if (listItems.length === 0) return; var anyActive = false; listItems.forEach(function(item) { var checkbox = item.querySelector('input[type="checkbox"]'); if (checkbox) { if (checkbox.checked) { item.classList.add('active'); anyActive = true; // Set anyActive to true } else { item.classList.remove('active'); // Remove 'active' class if checkbox is unchecked } } }); } function updateButtonText(anyActive) { var subscribeButtonSpan = document.querySelector('.subscribe-submit .changeBtnText'); if (subscribeButtonSpan) { if (anyActive) { subscribeButtonSpan.textContent = 'Subscribe Now'; } else { subscribeButtonSpan.textContent = 'Unsubscribe'; } } } function updateSubscriptionButton() { var listItems = document.querySelectorAll('.subscription-options li'); if (listItems.length === 0) return; var anyActive = false; listItems.forEach(function(item) { var checkbox = item.querySelector('input[type="checkbox"]'); if (checkbox) { if (checkbox.checked) { item.classList.add('active'); anyActive = true; // Set anyActive to true } else { item.classList.remove('active'); // Remove 'active' class if checkbox is unchecked } } }); // Update the button text based on whether any list item has the 'active' class updateButtonText(anyActive); } document.addEventListener('click', function(event) { var clickedItem = event.target.closest('.subscription-options li'); if (clickedItem) { var checkbox = clickedItem.querySelector('input[type="checkbox"]'); if (checkbox) { checkbox.checked = !checkbox.checked; updateSubscriptionButton(); } } });