Error during evaluation of widget-bundle-css
<!-- [1. CRITICAL] Blogger Standard Head Content - MUST BE PRESENT and EARLY -->
<b:include data='blog' name='all-head-content'/>
<!-- External Resources -->
<script src='https://cdn.tailwindcss.com'/>
<link crossorigin='anonymous' href='https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css' integrity='sha512-9usAa10IRO0HhonpyAIVpjrylPvoDwiPUiKdWk5t3PyolY1cOd4DSE0Ga+ri4AuTroPR5aQvXU9xC6qOPnzFeg==' referrerpolicy='no-referrer' rel='stylesheet'/>
<!-- [2. CRITICAL] Blogger Skin for CSS - Place your custom CSS here -->
<b:skin><![CDATA[
/* --- Custom CSS --- */
body { background-color: #f3f4f6; font-family: sans-serif; }
.header-footer-bg { background-color: #1a2c51; color: white; }
.content-bg { background-color: #ffffff; border-radius: 0.5rem; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.section-bg { background-color: #2a3f6d; color: white; border-radius: 0.5rem; padding: 1.5rem; margin-bottom: 1.5rem; }
.game-card { background-color: #ffffff; color: #1f2937; border-radius: 0.375rem; border: 1px solid #e5e7eb; transition: box-shadow 0.3s ease; }
.game-card:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); cursor: pointer; }
.game-card img.team-logo { width: 28px; height: 28px; margin-right: 0.5rem; flex-shrink: 0; }
.status-badge { padding: 0.25rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.live-status { background-color: #ef4444; color: white; }
.final-status { background-color: #6b7280; color: white; }
.team-name { font-weight: 600; line-height: 1.2; }
.vs-text { color: #6b7280; font-weight: 700; }
.live-score { font-weight: 700; font-size: 0.9rem; min-width: 25px; text-align: right; }
.stream-btn { background-color: #dc2626; transition: background-color 0.3s ease; }
.stream-btn:hover { background-color: #b91c1c; }
.no-games { text-align: center; padding: 2rem; color: #9ca3af; }
.blog-card { background-color: #ffffff; color: #1f2937; border-radius: 0.375rem; overflow: hidden; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.blog-card img { width: 100%; height: 120px; object-fit: cover; }
.blog-card-title { padding: 0.75rem; font-size: 0.875rem; font-weight: 500; text-align: center; }
.teams-logo-bar img { height: 32px; width: 32px; transition: transform 0.2s ease-in-out; }
.teams-logo-bar img:hover { transform: scale(1.1); }
.blogget-widget { background-color: #ffffff; border-radius: 0.5rem; box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); padding: 1.5rem; margin-bottom: 1.5rem; color: #1f2937; }
.blogget-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: #1a2c51; border-bottom: 2px solid #e5e7eb; padding-bottom: 0.5rem; }
.blogget-post { display: flex; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #f3f4f6; }
.blogget-post:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.blogget-post-img { width: 80px; height: 80px; object-fit: cover; border-radius: 0.25rem; margin-right: 1rem; flex-shrink: 0; }
.blogget-post-content { flex: 1; }
.blogget-post-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blogget-post-meta { display: flex; font-size: 0.75rem; color: #6b7280; }
.blogget-post-date { margin-right: 0.75rem; }
.blogget-post-author { font-weight: 500; }
.blogget-post-excerpt { font-size: 0.85rem; margin-top: 0.5rem; color: #4b5563; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blogget-recent-post { display: flex; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid #f3f4f6; }
.blogget-recent-post:last-child { border-bottom: none; }
.blogget-recent-post-img { width: 50px; height: 50px; object-fit: cover; border-radius: 0.25rem; margin-right: 0.75rem; flex-shrink: 0; }
.blogget-recent-post-title { font-size: 0.85rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blogget-view-all { display: inline-block; margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: #2a3f6d; text-decoration: none; }
.blogget-view-all:hover { text-decoration: underline; }
/* --- End of Custom CSS --- */
]]></b:skin>
<!-- [3. CRITICAL] Include necessary CSS for widgets - MUST BE AFTER b:skin and INSIDE head -->
<b:include name='widget-bundle-css'/>
<!-- Optional: Outer wrapper for better control -->
<div class='body-wrapper'>
<!-- Header -->
<header class='header-footer-bg py-3'>
<div class='container mx-auto px-4 flex justify-between items-center'>
<h1 class='text-sm sm:text-lg font-semibold'>Reddit NBA Streams | NBA Streams | NBAbite live stream</h1>
<a class='text-sm sm:text-lg font-semibold hover:text-gray-300' href='#blog'>Blog</a> <!-- Consider changing "#blog" to a real link -->
</div>
</header>
<div class='container mx-auto px-4 py-6'>
<!-- Top Section (Games Area) -->
<div class='content-bg p-4 mb-6'>
<div class='text-center text-gray-700 font-semibold mb-4 text-sm'>
NBA Games Schedule
</div>
<div class='section-bg'>
<div class='mb-6'>
<div class='flex justify-between items-center mb-3'>
<h2 class='text-lg sm:text-xl font-bold'>Live Games (<span id='live-games-count'>0</span>)</h2>
<button class='bg-red-600 hover:bg-red-700 text-white text-xs font-semibold py-1 px-3 rounded-full flex items-center' onclick='refreshGames()'>
<i class='fas fa-sync-alt mr-1'/> Refresh
</button>
</div>
<div class='grid grid-cols-1 md:grid-cols-2 gap-4' id='live-games'>
<div class='no-games col-span-full'>
<i class='fas fa-spinner fa-spin text-4xl mb-3'/>
<p class='font-medium'>Loading Live Games...</p>
</div>
</div>
</div>
<div>
<div class='flex justify-between items-center mb-3'>
<h2 class='text-lg sm:text-xl font-bold'>Upcoming Games (<span id='upcoming-games-count'>0</span>)</h2>
<div class='text-xs hidden md:block' id='current-time'>Loading time...</div>
</div>
<div class='league-content grid grid-cols-1 md:grid-cols-2 gap-4' id='nba'>
<div class='no-games col-span-full'>
<i class='fas fa-spinner fa-spin text-4xl mb-3'/>
<p class='font-medium'>Loading Upcoming NBA Games...</p>
</div>
</div>
<div class='grid grid-cols-1 md:grid-cols-2 gap-4 mt-6'>
<!-- Placeholder for Final Games -->
</div>
</div>
<div class='text-xs text-center mt-4 md:hidden' id='mobile-current-time'>Loading time...</div>
</div>
</div> <!-- End Content BG -->
<!-- ****** BLOGGER SECTION (FOR LAYOUT WIDGETS) ****** -->
<b:section class='my-custom-section container mx-auto px-4 mb-6' id='customSection1' maxwidgets='3' name='My Custom Area (Add Widgets Here)' showaddelement='yes' tag='div'/>
<!-- ****** END BLOGGER SECTION ****** -->
<!-- Text Content Section -->
<section class='content-bg p-6 mb-6 text-gray-800'>
<h2 class='text-xl sm:text-2xl font-bold mb-3'>Reddit NBA Streams| NBA Streams| NBAbite Live Streams</h2>
<p class='text-sm sm:text-base mb-4'>Which free, high-definition channel is the best for live-streaming NBA games? The majority of NBA enthusiasts have this question. The next post will explain how to get the NBA watching channel. Discover the top games from one of the most renowned competitions in the world.</p>
<h3 class='text-lg sm:text-xl font-semibold mb-2'>What Are NBA Streams?</h3>
<p class='text-sm sm:text-base mb-4'>World-wide, the NBA is the most watched sport. Each game, including its playoffs, is watched by millions of people. This page has the solution to the question "what NBA channel?" that many basketball lovers have. This page will provide in-depth information. There are free Basketball streams. Additionally, you may view the top basketball contests from the NBA tournament. NBA Streams is without a doubt the finest choice for streaming NBA games in general for those wishing to follow the NBA this season or the one after that and support their club. NBA Streams offers the most access without having to pay for a variety of different channels. I really hope you find this information to be very beneficial as you pursue your interest.</p>
<h3 class='text-lg sm:text-xl font-semibold mb-2'>REDDIT NBA STREAMS</h3>
<p class='text-sm sm:text-base mb-4'>If you're having problems discovering a live sports broadcast from reliable sources. On Reddit, users also have the option of establishing their personal groups, or subreddits. Nearly each sport you can imagine has a subreddit. The fact that Reddit does not broadcast live sporting events must always be kept in mind. Users on Reddit frequently post links to useful streams they've found on other websites. It turns out that owners of streaming websites also share their URLs on corresponding subreddits. As a result, people may simply participate in actively supporting the worthwhile streams you'll find here.</p>
<h3 class='text-lg sm:text-xl font-semibold mb-2'>NBAbite Live Streams</h3>
<p class='text-sm sm:text-base'>Reddit NBA broadcasts might be effectively supplanted by live streaming on NBAbite. On our website, you may now watch free live NBA broadcasts. All of the team games will be available to you. It is now possible to watch NBA games on a tablet, laptop, or smartphone thanks to the advancement of modern technology.<br/><br/>Your favorite game, NBA, now has a new home at NBAbite live streaming , where you can watch every basketball game for free. Simply visit the NBAbite live stream site to access the several free links that will take you directly to that game.</p>
</section>
<!-- Example Blog Posts Section (optional) -->
<!-- <b:section id='main' class='main' name='Main Blog Posts' showaddelement='no' maxwidgets='1'> -->
<!-- <b:widget id='Blog1' type='Blog' locked='true'/> -->
<!-- </b:section> -->
</div> <!-- End Container -->
<!-- Footer -->
<footer class='header-footer-bg py-6 text-xs sm:text-sm'>
<div class='container mx-auto px-4'>
<div class='text-center mb-4 text-gray-300 flex flex-wrap justify-center gap-x-3 gap-y-1'>
<a class='hover:text-white' href='#'>StreamEast</a> | <a class='hover:text-white' href='#'>TOTALSPORTEK</a> | <a class='hover:text-white' href='#'>FOOTYBYTE</a> | <a class='hover:text-white' href='#'>NFLBITE</a> | <a class='hover:text-white' href='#'>NBABITE</a> | <a class='hover:text-white' href='#'>SPORTSURGE</a> | <a class='hover:text-white' href='#'>HESGOAL</a> | <a class='hover:text-white' href='#'>SOCCER STREAMS</a> | <a class='hover:text-white' href='#'>FOOTBALL STREAMS</a> | <a class='hover:text-white' href='#'>CRACKSTREAMS</a> | <a class='hover:text-white' href='#'>METHSTREAMS</a> | <a class='hover:text-white' href='#'>WEAKSTREAMS</a> | <a class='hover:text-white' href='#'>SCORE 808</a> | <a class='hover:text-white' href='#'>F1 STREAMS</a> | <a class='hover:text-white' href='#'>FREE STREAMS</a> | <a class='hover:text-white' href='#'>Hoofoot</a> | <a class='hover:text-white' href='#'>STREAM2WATCH</a>
</div>
<h3 class='text-center font-semibold text-base sm:text-lg mb-4'>Reddit NBA Streams| NBA Streams | NBABITE live stream</h3>
<p class='text-center text-gray-400 mb-4 text-xs px-2'>Disclaimer: None of the videos is hosted by this site. Streams hosted on external sites like Youtube etc are provided with links here. This site is not responsible for the legality of the content. For legal issues, please contact appropriate media file owners/hosters.</p>
<div class='flex justify-center items-center gap-4'>
<a class='text-gray-300 hover:text-white text-xl' href='#'><i class='fab fa-instagram'/></a>
<a class='text-gray-300 hover:text-white text-xl' href='#'><i class='fab fa-tiktok'/></a>
<!-- Replace DMCA ID Here -->
<a class='dmca-badge' href='//www.dmca.com/Protection/Status.aspx?ID=REPLACE_WITH_YOUR_DMCA_ID' title='DMCA.com Protection Status'> <img alt='DMCA.com Protection Status' class='h-6' src='https://images.dmca.com/Badges/dmca_protected_sml_120n.png?ID=REPLACE_WITH_YOUR_DMCA_ID'/></a> <script src='https://images.dmca.com/Badges/DMCABadgeHelper.min.js'> </script>
</div>
</div>
</footer>
</div> <!-- End body-wrapper -->
<!-- JavaScript (Place before closing </body>) -->
<script>//<![CDATA[
// --- Custom JavaScript ---
function updateCurrentTime() {
const now = new Date();
const options = { weekday: 'short', year: 'numeric', month: 'short', day: 'numeric', hour: '2-digit', minute: '2-digit', timeZoneName: 'short' };
const formattedTime = now.toLocaleDateString('en-US', options);
const timeEl = document.getElementById('current-time');
const mobileTimeEl = document.getElementById('mobile-current-time');
if (timeEl) timeEl.textContent = formattedTime;
if (mobileTimeEl) mobileTimeEl.textContent = formattedTime;
}
updateCurrentTime();
setInterval(updateCurrentTime, 60000);
function refreshGames() {
console.log("Refreshing games...");
fetchGames();
const refreshBtn = document.querySelector('button[onclick="refreshGames()"]');
if (!refreshBtn) return;
const originalHtml = refreshBtn.innerHTML;
refreshBtn.innerHTML = '<i class="fas fa-spinner fa-spin mr-1"></i> Refreshing';
refreshBtn.disabled = true;
setTimeout(() => { if (refreshBtn) { refreshBtn.innerHTML = originalHtml; refreshBtn.disabled = false; } }, 2000);
}
async function fetchGames() {
try {
console.log("Fetching game data...");
const nbaResponse = await fetch('https://webws.365scores.com/web/games/current/?appTypeId=5&competitions=103');
if (!nbaResponse.ok) throw new Error(`NBA fetch failed: ${nbaResponse.status}`);
const nbaData = await nbaResponse.json();
const allGames = [...(nbaData.games || [])];
processGames(nbaData, 'nba');
separateLiveGames(allGames);
updateTotalUpcomingCount();
console.log("Game data processed.");
} catch (error) {
console.error('Error fetching games:', error);
const errorMsg = `<div class="no-games col-span-full"><i class="fas fa-exclamation-triangle text-4xl mb-3 text-red-400"></i><p class="font-medium">Error loading games</p><p class="text-sm">Could not fetch data. Please try refreshing.</p></div>`;
const liveEl = document.getElementById('live-games');
const nbaEl = document.getElementById('nba');
if(liveEl) liveEl.innerHTML = errorMsg;
if(nbaEl) nbaEl.innerHTML = errorMsg;
}
}
function processGames(data, containerId) {
console.log(`Processing upcoming for ${containerId}`);
const container = document.getElementById(containerId);
if (!container) { console.error(`Container #${containerId} not found.`); return; }
const validGames = (data?.games || [])
.filter(game => game.statusText === "Scheduled" && game.homeCompetitor?.id && game.homeCompetitor?.name && game.awayCompetitor?.id && game.awayCompetitor?.name)
.sort((a, b) => new Date(a.startTime) - new Date(b.startTime));
if (validGames.length === 0) { container.innerHTML = `<div class="no-games col-span-full"><i class="far fa-calendar-times text-4xl mb-3"></i><p class="font-medium">No upcoming games found for this league.</p></div>`; return; }
container.innerHTML = '';
validGames.forEach(game => {
const gameDate = new Date(game.startTime);
const localTimeStr = gameDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit', timeZoneName: 'short' });
const localDateStr = gameDate.toLocaleDateString([], { month: 'short', day: 'numeric' });
const homeTeam = game.homeCompetitor.name, awayTeam = game.awayCompetitor.name;
const homeTeamId = game.homeCompetitor.id, awayTeamId = game.awayCompetitor.id;
const logoBaseUrl = "https://imagecache.365scores.com/image/upload/f_png,w_34,h_34,c_limit,q_auto:eco,dpr_2,d_Competitors:default1.png/v1/Competitors/";
const homeLogoUrl = `${logoBaseUrl}${homeTeamId}`, awayLogoUrl = `${logoBaseUrl}${awayTeamId}`;
// --- Adjust this link structure as needed ---
const link = `/search/label/${encodeURIComponent(homeTeam.replace(/\s+/g, '-'))}-vs-${encodeURIComponent(awayTeam.replace(/\s+/g, '-'))}-live-stream`;
const now = new Date(), diffMs = gameDate - now;
let timeDiffStr = 'Starting soon';
if (diffMs > 0) {
const diffHours = Math.floor(diffMs / 3600000), diffMins = Math.floor((diffMs % 3600000) / 60000);
if (diffHours >= 24) { const diffDays = Math.floor(diffHours / 24); timeDiffStr = `${diffDays} day${diffDays > 1 ? 's' : ''} from now`; }
else if (diffHours > 0) { timeDiffStr = `${diffHours}h ${diffMins}m from now`; }
else if (diffMins > 0){ timeDiffStr = `${diffMins}m from now`; }
}
const gameElement = document.createElement('div'); gameElement.className = 'game-card p-4';
gameElement.onclick = () => window.location.href = link; // Navigate within site
gameElement.innerHTML = `<div class="text-center text-xs text-blue-600 font-semibold mb-3">${timeDiffStr}</div><div class="flex flex-col mb-2"><div class="flex items-center mb-2"><img src="${homeLogoUrl}" alt="${homeTeam} logo" class="team-logo"><span class="team-name text-sm">${homeTeam}</span></div>
<div class="flex items-center mt-2"><img src="${awayLogoUrl}" alt="${awayTeam} logo" class="team-logo"><span class="team-name text-sm">${awayTeam}</span></div></div><div class="border-t border-gray-200 mt-3 pt-2 flex justify-between items-center text-xs text-gray-500"><span>${localDateStr}</span><span>${localTimeStr}</span></div>`;
container.appendChild(gameElement);
});
}
function separateLiveGames(allGames) {
console.log("Separating live games...");
const liveContainer = document.getElementById('live-games');
if (!liveContainer) { console.error("Live games container not found."); return; }
const liveGames = (allGames || [])
.filter(game => game.statusText && !["Scheduled", "Ended", "Final", "Final (OT)", "Postponed", "Cancelled", "Abandoned"].includes(game.statusText) && game.homeCompetitor?.id && game.homeCompetitor?.name && game.awayCompetitor?.id && game.awayCompetitor?.name)
.sort((a, b) => new Date(a.startTime) - new Date(b.startTime));
const liveCountEl = document.getElementById('live-games-count'); if(liveCountEl) liveCountEl.textContent = liveGames.length;
if (liveGames.length === 0) { liveContainer.innerHTML = `<div class="no-games col-span-full"><i class="fas fa-basketball-ball text-4xl mb-3"></i><p class="font-medium">No live games right now.</p><p class="text-sm">Check the upcoming schedule below.</p></div>`; return; }
liveContainer.innerHTML = '';
liveGames.forEach(game => {
const homeTeam = game.homeCompetitor.name, awayTeam = game.awayCompetitor.name;
const homeTeamId = game.homeCompetitor.id, awayTeamId = game.awayCompetitor.id;
const homeScore = game.homeCompetitor.score ?? '0', awayScore = game.awayCompetitor.score ?? '0';
const logoBaseUrl = "https://imagecache.365scores.com/image/upload/f_png,w_34,h_34,c_limit,q_auto:eco,dpr_2,d_Competitors:default1.png/v1/Competitors/";
const homeLogoUrl = `${logoBaseUrl}${homeTeamId}`, awayLogoUrl = `${logoBaseUrl}${awayTeamId}`;
// --- Adjust this link structure as needed ---
const link = `/search/label/${encodeURIComponent(homeTeam.replace(/\s+/g, '-'))}-vs-${encodeURIComponent(awayTeam.replace(/\s+/g, '-'))}-live-stream`;
const gameElement = document.createElement('div'); gameElement.className = 'game-card p-4';
gameElement.onclick = () => window.location.href = link; // Navigate within site
gameElement.innerHTML = `<div class="flex justify-between items-center mb-2"><div class="text-xs font-medium text-gray-500">${game.competitionName || 'NBA'}</div><span class="status-badge live-status">LIVE</span></div><div class="flex items-center justify-between mb-1"><div class="flex items-center flex-grow min-w-0"><img src="${homeLogoUrl}" alt="${homeTeam} logo" class="team-logo"><span class="team-name text-sm truncate" title="${homeTeam}">${homeTeam}</span></div><span class="live-score ml-2">${homeScore}</span></div><div class="flex items-center justify-between mb-3"><div class="flex items-center flex-grow min-w-0"><img src="${awayLogoUrl}" alt="${awayTeam} logo" class="team-logo"><span class="team-name text-sm truncate" title="${awayTeam}">${awayTeam}</span></div><span class="live-score ml-2">${awayScore}</span></div>${game.gameTimeDisplay ? `<div class="game-quarter text-center text-xs text-red-600 font-semibold mb-3">${game.gameTimeDisplay}</div>` : ''}<div class="border-t border-gray-200 mt-2 pt-2 flex justify-end items-center"><button onclick="event.stopPropagation(); window.location.href='${link}';" class="stream-btn text-white px-3 py-1 rounded-full text-xs font-medium">Watch Stream <i class="fas fa-external-link-alt ml-1"></i></button></div>`;
liveContainer.appendChild(gameElement);
});
}
function updateTotalUpcomingCount() {
const nbaContainer = document.getElementById('nba');
let totalCount = 0;
if (nbaContainer) { totalCount += nbaContainer.querySelectorAll('.game-card').length; }
const countEl = document.getElementById('upcoming-games-count');
if (countEl) { countEl.textContent = totalCount; }
}
document.addEventListener('DOMContentLoaded', () => {
console.log("DOM Loaded. Initializing fetch.");
fetchGames();
setInterval(fetchGames, 3 * 60 * 1000); // Refresh every 3 minutes
console.log("Auto-refresh interval set.");
});
// --- End of Custom JavaScript ---
//]]></script>
<!-- [4. CRITICAL] Include necessary JS for widgets - MUST BE just before </body> -->
<b:include name='widget-bundle-js'/>