Connect with us

Kansas

Kansas takes top spot in AP Top 25 men's basketball preseason poll over Alabama and defending champs UConn

Published

on

Kansas takes top spot in AP Top 25 men's basketball preseason poll over Alabama and defending champs UConn


Kansas star center Hunter Dickinson will have even more help this season, with Jayhawks coach Bill Self bringing in a few key transfers. (Photo by Chris Gardner/Getty Images)

With college men’s basketball approaching, the Associated Press released the preseason Top 25 poll on Monday. Kansas once again is at No. 1, with Alabama in second and UConn, the defending NCAA champions, in third.

Kansas received 30 first-place votes to take the top spot, while Alabama received 14 and UConn received 11. Houston, who is in the No. 4 spot, received four first-place votes, while No. 6 Gonzaga received one.

Rounding out the rest of the Top 10 is Iowa State in fifth, Duke — led by top freshman recruit Cooper Flagg — at No. 7, and Baylor, North Carolina and Arizona in eight, ninth and tenth, respectively.

Advertisement

Kansas, who topped the preseason poll last year as well, struggled throughout the season and eventually lost to Gonzaga in the second round of the NCAA tournament. This season — in addition to senior Jayhawks stars Hunter Dickinson, Dajuan Harris Jr. and KJ Adams Jr. — Kansas coach Bill Self added several key transfers, with A.J. Storr (Wisconsin), Zeke Mayo (South Dakota State) and Rylan Griffen (Alabama) joining the squad.

“We welcome being No. 1, especially with our returning players like Hunter, Dajuan and KJ, and then you add the players we brought in,” Self said, per the Associated Press. “The goal is to be No. 1 at the end of the season, and though we welcome this, it is not the end goal.”

The Big 12 conference has some of the highest-ranked teams in the poll, holding three of the top five and five of the top 10. The SEC has the most in the Top 25 overall, with nine teams in total.

Purdue, ranked No. 14, will be readjusting without star center Zach Edey, who was drafted by the Memphis Grizzlies. Rutgers, meanwhile, is at No. 25, marking the first time that the team has been ranked in the preseason poll since 1978, per the AP.

The full AP preseason Top 25 poll from October 24, 2024

Advertisement

1. Kansas

2. Alabama

3. UConn

4. Houston

5. Iowa State

Advertisement

6. Gonzaga

7. Duke

8. Baylor

9. North Carolina

10. Arizona

Advertisement

11. Auburn

12. Tenneessee

13. Texas A&M

14. Purdue

15. Creighton

Advertisement

16. Arkansas

17. Indiana

18. Marquette

19. Texas

20. Cincinnati

Advertisement

21. Florida

22. UCLA

23. Kentucky

24. Ole Miss

25. Rutgers

Advertisement



Source link

Kansas

Multiple communities report damage, 3 people injured after tornado-producing storms

Published

on

Multiple communities report damage, 3 people injured after tornado-producing storms


KANSAS CITY, Mo. (KCTV) – Multiple communities in Kansas have had damage after reported tornadoes and severe storms.

The city of Ottawa, Kansas, says that after the National Weather Service issued a tornado warning at approximately 7:25 p.m. on Monday, April 13, a storm caused structural damage.

Hillsdale Kansas suffered storm damage from possible tornado-producing storm.

Officials say that 3 people suffered minor injuries at a home with significant damage east of Ottawa, in Franklin County. The city says that no injuries or fatalities have been reported within city limits.

Officials say the majority of the town is without power, and streetlights aren’t working. KCTV reported that Main St. from 1st to 6th does have lights back on, as of 10:36 p.m.

Advertisement

Ottawa USD 290 has cancelled school on Tuesday, April 14, due to the storm aftermath.

Multiple buildings in Hillsdale, Kansas, were damaged after reports of a tornado.(DJ Inlow)

Officials are asking community members to stay off the roadways and to stay away from downed power lines. They also say that all City and County emergency personnel are responding to the weather event.

Ottawa’s Police Chief asked people to stay home overnight as they work to clear storm debris from streets

At this time, there is no estimate as to when power will be restored in Ottawa.

In Hillsdale, Kansas, a spotter shared a photo of a tornado. Viewer photos show significant damage there, as well.

Storm damage after reported tornado in Hillsdale, Kansas
Storm damage after reported tornado in Hillsdale, Kansas(DJ Inlow)

KCTV5 will make updates as they’re made available.

Advertisement



Source link

Continue Reading

Kansas

Alert Days ahead: Multiple chances for rain, thunderstorms this week in the Kansas City metro

Published

on

Alert Days ahead: Multiple chances for rain, thunderstorms this week in the Kansas City metro


There are multiple chances for rain and thunderstorms this week, including two First Alert Weather Alert Days highlighting the potential for severe thunderstorms. The first Alert Day is Tuesday. Most of the morning and afternoon will be dry, warm, humid and windy. After 5 p.m., ongoing thunderstorms across Oklahoma and southern Kansas will begin moving northeast toward Kansas City. The risk of severe weather will increase after that time and continue through 1 a.m. Wednesday, as thunderstorms lift across areas primarily along and east of Interstate 35 in eastern Kansas and central Missouri. The primary threats are large to very large hail and damaging winds. The tornado risk is low. The severe weather potential on Wednesday depends on whether the atmosphere is able to recover and destabilize after Tuesday night’s storms, Wednesday morning rain and lingering cloud cover. A dryline and cold front will approach the region from the west during the afternoon and evening, providing the focus for showers and thunderstorms that may produce large hail and damaging winds. Another cold front will bring renewed chances for showers and thunderstorms Friday afternoon and evening, and with conditions similar to Wednesday in place, there is at least some potential for severe thunderstorms. Please keep in mind that while this is a common and favorable pattern for showers and thunderstorms, most thunderstorms this week will not produce severe weather. That said, sufficient wind shear, lift, instability and moisture on Tuesday, Wednesday and Friday will provide an environment where thunderstorms could thrive and support all types of severe weather. Check the forecast twice daily for updates, review your severe weather safety plan and have multiple ways to receive weather alerts.

There are multiple chances for rain and thunderstorms this week, including two First Alert Weather Alert Days highlighting the potential for severe thunderstorms.

The first Alert Day is Tuesday. Most of the morning and afternoon will be dry, warm, humid and windy. After 5 p.m., ongoing thunderstorms across Oklahoma and southern Kansas will begin moving northeast toward Kansas City. The risk of severe weather will increase after that time and continue through 1 a.m. Wednesday, as thunderstorms lift across areas primarily along and east of Interstate 35 in eastern Kansas and central Missouri.

Advertisement

The primary threats are large to very large hail and damaging winds. The tornado risk is low.

Advertisement

The severe weather potential on Wednesday depends on whether the atmosphere is able to recover and destabilize after Tuesday night’s storms, Wednesday morning rain and lingering cloud cover.

A dryline and cold front will approach the region from the west during the afternoon and evening, providing the focus for showers and thunderstorms that may produce large hail and damaging winds.

This KMBC 9 weather map shows that severe storms are possible around the entire Kansas City region on Wednesday afternoon and evening.

Advertisement

Another cold front will bring renewed chances for showers and thunderstorms Friday afternoon and evening, and with conditions similar to Wednesday in place, there is at least some potential for severe thunderstorms.

Please keep in mind that while this is a common and favorable pattern for showers and thunderstorms, most thunderstorms this week will not produce severe weather. That said, sufficient wind shear, lift, instability and moisture on Tuesday, Wednesday and Friday will provide an environment where thunderstorms could thrive and support all types of severe weather.

Check the forecast twice daily for updates, review your severe weather safety plan and have multiple ways to receive weather alerts.

This KMBC 9 weather map shows severe storms are possible in the entire Kansas City region on Friday.

Advertisement



Source link

Continue Reading

Kansas

Multiple chances of strong thunderstorms this week for Kansas City

Published

on

Multiple chances of strong thunderstorms this week for Kansas City


Multiple chances of strong thunderstorms this week for Kansas City

Advertisement

TODAY WAS IMPACT DAY FOR THE RAIN THAT MOVED OUT FOR THE NIGHT THOUGH. METEOROLOGIST PETE GRIGSBY JOINING ME NOW PETE. A VERY RAINY DAY AHEAD. A KIND OF A CHILL RAIN THOUGH BEFORE THESE STORMS ROLL IN. IT WAS, BUT IT WAS VERY GENTLE, KIND OF A LIGHT TO MODERATE RAINFALL AT MOST. AND YOU KNOW WHAT? IT’S WELL NEEDED RAINFALL. THOSE YOU SOUTH OF I-670. SOME OF YOU GOT POCKETS OF ABOUT A HALF AN INCH TOTAL FOR TODAY. NOT BAD. FARTHER NORTH, NOT AS MUCH, BUT STILL THE NUMBERS ARE FAIRLY IMPRESSIVE WITH SOMETHING THAT REALLY DIDN’T PRODUCE A MAJOR THUNDERSTORM. A HEAVY DOWNPOURS LIKE THAT. SO WE LIKE THAT. BUT HOWEVER, THINGS ARE ABOUT TO CHANGE AS WE DEAL WITH SOMETHING TOTALLY DIFFERENT WHEN IT COMES TO TUESDAY AND WEDNESDAY. WE MADE THEM ALERT DAYS BECAUSE SEVERE WEATHER THREATS, MOSTLY IN THE AFTERNOONS AND EVENING HOURS FOR BOTH DAYS, ANYTHING FROM WIND, HAIL, DAMAGING HAIL. OF COURSE, A LARGE SIZE AND TORNADIC THREAT IS ALSO INVOLVED WITH THAT. AS WE GET MORE INFORMATION IN, ESPECIALLY THROUGH TOMORROW, WE CAN FINE TUNE IT, ESPECIALLY WHAT WE CAN BE STACKING THE SHOW WITH. WHAT’S MORE IMPORTANT. OKAY, THAN KEEPING AN ALERT ON THIS. ALL OF EASTERN KANSAS AND MISSOURI. LOOK HOW MUCH REAL ESTATE THAT COVERS, ESPECIALLY FOR TUESDAY AND COME WEDNESDAY, IT REALLY DOESN’T CHANGE THAT MUCH. IT’S JUST KIND OF MIGRATES SLIGHTLY TO THE EAST. SO NO DOUBT TWO DAYS TO KEEP A CLOSE EYE OUT AND KEEP IT TUNED RIGHT HERE ON CHANNEL NINE FOR UPDATES. A QUIET, BEAUTIFUL NIGHT. SO DON’T WORRY ABOUT ANYTHING OVERNIGHT TONIGHT. WE’RE COMFORTABLE 69 DEGREES. OUR WIND FLOW ABOUT 16 MILES AN HOUR, AND TOMORROW MORNING WILL START OUT ABOUT 64 TO 65 FOR YOUR MORNING START HEADING FOR A VERY NICE COMFORTABLE AFTERNOON. AND THEN TUESDAY WILL BE THE KEY DAY TO KEEP AN EYE OUT. MORE ABOUT THAT OF COURSE YOUR NINE DAY FORECAST. THAT’S ALL COMING UP IN OUR KMBC NINE NEWS APP HELPS YOU STAY AHEAD OF THE RAIN. GET ALERTS SENT STRAIGHT TO YOUR PHONE AND TRACK STORMS IN REAL TIME. WITH O

After a round of beneficial rain Sunday, the focus now shifts to a more active stretch of weather across the Kansas City area.Tuesday and Wednesday are both Alert Days, with multiple chances for thunderstorms developing across eastern Kansas and western Missouri.Storms are most likely during the afternoon and evening hours both days, when conditions will be more favorable for stronger development.The main threats will be strong wind gusts and large hail, and there is also a tornado risk that cannot be ruled out.This setup covers a large part of the region, so much of the Kansas City metro could see impacts at some point during this stretch. Timing and specific impacts will become clearer as we get closer.Conditions stay quiet and warm through Monday before storm chances increase.The bottom line is to stay weather aware and make sure alerts are enabled on your phone as we head into midweek.

Advertisement

After a round of beneficial rain Sunday, the focus now shifts to a more active stretch of weather across the Kansas City area.

Tuesday and Wednesday are both Alert Days, with multiple chances for thunderstorms developing across eastern Kansas and western Missouri.

Advertisement

Storms are most likely during the afternoon and evening hours both days, when conditions will be more favorable for stronger development.

The main threats will be strong wind gusts and large hail, and there is also a tornado risk that cannot be ruled out.

This setup covers a large part of the region, so much of the Kansas City metro could see impacts at some point during this stretch.

Timing and specific impacts will become clearer as we get closer.

Conditions stay quiet and warm through Monday before storm chances increase.

Advertisement

The bottom line is to stay weather aware and make sure alerts are enabled on your phone as we head into midweek.

Advertisement

`;
}

function refreshWeatherIframe(containerId) {
var iframeId = ‘weather-iframe-‘ + containerId;
var iframe = document.getElementById(iframeId);
if (iframe && iframe.src) {
var originalSrc = iframe.src;
iframe.src = originalSrc + (originalSrc.indexOf(‘?’) > -1 ? ‘&’ : ‘?’) + ‘t=” + Date.now();
}
}

function initializeWeatherBox(container) {
var containerId = container.getAttribute(“data-container-id’);
var isWeatherBoxV2 = containerId === ‘home-weather-v2’;

function switchWeatherTab(tabName, clickedElement) {
container.querySelectorAll(‘[data-tab-id]’).forEach(function(tab) {
tab.classList.remove(‘open’);
tab.setAttribute(‘aria-selected’, ‘false’);
});

Advertisement

clickedElement.classList.add(‘open’);
clickedElement.setAttribute(‘aria-selected’, ‘true’);

container.querySelectorAll(‘[data-content-id]’).forEach(function(content) {
content.style.display = ‘none’;
content.setAttribute(‘hidden’, ‘true’);
});

var targetContent = container.querySelector(‘[data-content-id=”‘ + tabName + ‘”]’);
if (targetContent) {
targetContent.style.display = ‘block’;
targetContent.removeAttribute(‘hidden’);
}
}

function loadWeatherData() {
// If weather data is already being loaded, wait for it
if (window.weatherDataPromise) {
window.weatherDataPromise.then(function(data) {
if (data && data.data) {
var weatherContainer = container.closest(‘.weather-box-container’);
if (weatherContainer) {
weatherContainer.style.display = ‘flex’;
updateCurrentWeather(data.data);
updateForecastTabs(data.data);
updateWeatherAlertsBar(data.data);
}
}
});
return;
}

var location = { zip: window.DEFAULT_ZIPCODE };

Advertisement

try {
var storedLocations = localStorage.getItem(‘hrst.zip.history’);
if (storedLocations) {
var locations = JSON.parse(storedLocations);
if (locations && locations.length > 0) {
location = locations[0];
}
}
} catch (e) {}

var apiUrl = (window.DEWY_HOSTNAME || ”) + ‘/api/v1/weather/full/’ + location.zip;

if (window.fetch) {
window.weatherDataPromise = fetch(apiUrl)
.then(function(response) { return response.json(); })
.then(function(data) {
if (data && data.data) {
var article = container.closest(‘.article–wrapper’);
var weatherContainer = container.closest(‘.weather-box-container’);
if (weatherContainer) {
weatherContainer.style.display = ‘flex’;
updateCurrentWeather(data.data);
updateForecastTabs(data.data);
updateWeatherAlertsBar(data.data);
}
return data;
}
})
.catch(function(error) {
console.error(‘Error loading weather:’, error);
// Reset to unknown background on error
updateWeatherBackground(‘unknown’);
});
}
}

function updateWeatherAlertsBar(weatherData) {
var weatherWatchHeader = container.querySelector(‘.weather-watch-header’);
if (!weatherWatchHeader) return;

var weatherWatchText = weatherWatchHeader.querySelector(‘.weather-watch-text’);
var weatherWatchLink = weatherWatchHeader.querySelector(‘.weather-watch-link’);

Advertisement

if (weatherData.alerts_count > 0) {
weatherWatchHeader.className=”weather-watch-header has-alerts”;
if (weatherWatchText) {
weatherWatchText.textContent = `Weather Alerts (${weatherData.alerts_count})`;
}
if (weatherWatchLink) {
if (!weatherWatchLink.getAttribute(‘data-initial-href’)) {
weatherWatchLink.setAttribute(‘data-initial-href’, weatherWatchLink.getAttribute(‘href’));
weatherWatchLink.setAttribute(‘data-initial-onclick’, weatherWatchLink.getAttribute(‘onclick’) || ”);
}
weatherWatchLink.setAttribute(‘href’, “https://www.kmbc.com/alerts”);
weatherWatchLink.setAttribute(‘onclick’, “return handleWeatherLinkClick(event, ‘click_alerts’, ‘click’, ‘mobile-weather’, “https://www.kmbc.com/alerts”);”);
}
} else {
weatherWatchHeader.className=”weather-watch-header”;
if (weatherWatchText) {
weatherWatchText.textContent = containerId === ‘home-weather-v2’ ? ‘Watch Latest Forecast’ : ‘Latest Forecast’;
}
if (weatherWatchLink) {
var initialHref = weatherWatchLink.getAttribute(‘data-initial-href’);
var initialOnclick = weatherWatchLink.getAttribute(‘data-initial-onclick’);
if (initialHref) {
weatherWatchLink.setAttribute(‘href’, initialHref);
}
if (initialOnclick) {
weatherWatchLink.setAttribute(‘onclick’, initialOnclick);
}
}
}
}

function updateCurrentWeather(weatherData) {
if (weatherData.current) {
var tempValue = weatherData.current.temp_f || ”;
var skyValue = weatherData.current.sky || ”;
var feelsLikeValue = weatherData.current.feels_like_f || weatherData.current.temp_f || ”;

var tempEl = container.querySelector(‘.weather-grid–current-temp-value’);
if (tempEl) {
tempEl.textContent = tempValue;
tempEl.setAttribute(‘aria-label’, tempValue + ‘ degrees Fahrenheit’);
}

var iconEl = container.querySelector(‘.weather-grid–current-icon’);
if (iconEl && weatherData.current.icon_name) {
iconEl.className=”weather-grid–current-icon weather-current-icon icon icon-weather-” + weatherData.current.icon_name;
}

var skyEl = container.querySelector(‘.weather-grid–sky’);
if (skyEl) {
skyEl.textContent = skyValue;
skyEl.setAttribute(‘aria-label’, ‘Current condition: ‘ + skyValue);
}

Advertisement

var feelsEl = container.querySelector(‘.weather-grid–feels’);
if (feelsEl) {
feelsEl.textContent = feelsLikeValue + ‘°F’;
feelsEl.setAttribute(‘aria-label’, feelsLikeValue + ‘ degrees Fahrenheit’);
}

var weatherContainer = container.querySelector(‘.weather-temp-container’);
if (weatherContainer) {
var summary = ‘Current temperature ‘ + tempValue + ‘ degrees Fahrenheit, ‘ +
skyValue + ‘, feels like ‘ + feelsLikeValue + ‘ degrees’;
weatherContainer.setAttribute(‘aria-label’, summary);
}

updateWeatherBackground(weatherData.current.icon_name);
}
}

function updateWeatherBackground(iconName) {
try {
var bgPath = weatherImages.backgrounds[iconName] || weatherImages.backgrounds.unknown;
container.style.backgroundImage=”url(” + bgPath + ‘)’;
} catch (e) {
console.log(‘Error updating weather background:’, e);
}
}

function updateForecastTabs(weatherData) {
var visibleItems = isWeatherBoxV2 ? 6 : 5;

Advertisement

if (weatherData.hourly) {
var hourlyContainer = container.querySelector(‘.weather-hourly-forecast’);
if (hourlyContainer) {
var html=””;
var maxHours = Math.min(visibleItems, weatherData.hourly.length);

for (var i = 0; i 0 ? currentIndex – 1 : tabs.length – 1;
tabs[prevIndex].focus();
break;
case ‘ArrowRight’:
e.preventDefault();
var nextIndex = currentIndex

`;
}

function refreshWeatherIframe(containerId) {
var iframeId = ‘weather-iframe-‘ + containerId;
var iframe = document.getElementById(iframeId);
if (iframe && iframe.src) {
var originalSrc = iframe.src;
iframe.src = originalSrc + (originalSrc.indexOf(‘?’) > -1 ? ‘&’ : ‘?’) + ‘t=” + Date.now();
}
}

function initializeWeatherBox(container) {
var containerId = container.getAttribute(“data-container-id’);
var isWeatherBoxV2 = containerId === ‘home-weather-v2’;

Advertisement

function switchWeatherTab(tabName, clickedElement) {
container.querySelectorAll(‘[data-tab-id]’).forEach(function(tab) {
tab.classList.remove(‘open’);
tab.setAttribute(‘aria-selected’, ‘false’);
});

clickedElement.classList.add(‘open’);
clickedElement.setAttribute(‘aria-selected’, ‘true’);

container.querySelectorAll(‘[data-content-id]’).forEach(function(content) {
content.style.display = ‘none’;
content.setAttribute(‘hidden’, ‘true’);
});

var targetContent = container.querySelector(‘[data-content-id=”‘ + tabName + ‘”]’);
if (targetContent) {
targetContent.style.display = ‘block’;
targetContent.removeAttribute(‘hidden’);
}
}

function loadWeatherData() {
// If weather data is already being loaded, wait for it
if (window.weatherDataPromise) {
window.weatherDataPromise.then(function(data) {
if (data && data.data) {
var weatherContainer = container.closest(‘.weather-box-container’);
if (weatherContainer) {
weatherContainer.style.display = ‘flex’;
updateCurrentWeather(data.data);
updateForecastTabs(data.data);
updateWeatherAlertsBar(data.data);
}
}
});
return;
}

Advertisement

var location = { zip: window.DEFAULT_ZIPCODE };

try {
var storedLocations = localStorage.getItem(‘hrst.zip.history’);
if (storedLocations) {
var locations = JSON.parse(storedLocations);
if (locations && locations.length > 0) {
location = locations[0];
}
}
} catch (e) {}

var apiUrl = (window.DEWY_HOSTNAME || ”) + ‘/api/v1/weather/full/’ + location.zip;

if (window.fetch) {
window.weatherDataPromise = fetch(apiUrl)
.then(function(response) { return response.json(); })
.then(function(data) {
if (data && data.data) {
var article = container.closest(‘.article–wrapper’);
var weatherContainer = container.closest(‘.weather-box-container’);
if (weatherContainer) {
weatherContainer.style.display = ‘flex’;
updateCurrentWeather(data.data);
updateForecastTabs(data.data);
updateWeatherAlertsBar(data.data);
}
return data;
}
})
.catch(function(error) {
console.error(‘Error loading weather:’, error);
// Reset to unknown background on error
updateWeatherBackground(‘unknown’);
});
}
}

function updateWeatherAlertsBar(weatherData) {
var weatherWatchHeader = container.querySelector(‘.weather-watch-header’);
if (!weatherWatchHeader) return;

Advertisement

var weatherWatchText = weatherWatchHeader.querySelector(‘.weather-watch-text’);
var weatherWatchLink = weatherWatchHeader.querySelector(‘.weather-watch-link’);

if (weatherData.alerts_count > 0) {
weatherWatchHeader.className=”weather-watch-header has-alerts”;
if (weatherWatchText) {
weatherWatchText.textContent = `Weather Alerts (${weatherData.alerts_count})`;
}
if (weatherWatchLink) {
if (!weatherWatchLink.getAttribute(‘data-initial-href’)) {
weatherWatchLink.setAttribute(‘data-initial-href’, weatherWatchLink.getAttribute(‘href’));
weatherWatchLink.setAttribute(‘data-initial-onclick’, weatherWatchLink.getAttribute(‘onclick’) || ”);
}
weatherWatchLink.setAttribute(‘href’, “https://www.kmbc.com/alerts”);
weatherWatchLink.setAttribute(‘onclick’, “return handleWeatherLinkClick(event, ‘click_alerts’, ‘click’, ‘sidelist-weather’, “https://www.kmbc.com/alerts”);”);
}
} else {
weatherWatchHeader.className=”weather-watch-header”;
if (weatherWatchText) {
weatherWatchText.textContent = containerId === ‘home-weather-v2’ ? ‘Watch Latest Forecast’ : ‘Latest Forecast’;
}
if (weatherWatchLink) {
var initialHref = weatherWatchLink.getAttribute(‘data-initial-href’);
var initialOnclick = weatherWatchLink.getAttribute(‘data-initial-onclick’);
if (initialHref) {
weatherWatchLink.setAttribute(‘href’, initialHref);
}
if (initialOnclick) {
weatherWatchLink.setAttribute(‘onclick’, initialOnclick);
}
}
}
}

function updateCurrentWeather(weatherData) {
if (weatherData.current) {
var tempValue = weatherData.current.temp_f || ”;
var skyValue = weatherData.current.sky || ”;
var feelsLikeValue = weatherData.current.feels_like_f || weatherData.current.temp_f || ”;

var tempEl = container.querySelector(‘.weather-grid–current-temp-value’);
if (tempEl) {
tempEl.textContent = tempValue;
tempEl.setAttribute(‘aria-label’, tempValue + ‘ degrees Fahrenheit’);
}

var iconEl = container.querySelector(‘.weather-grid–current-icon’);
if (iconEl && weatherData.current.icon_name) {
iconEl.className=”weather-grid–current-icon weather-current-icon icon icon-weather-” + weatherData.current.icon_name;
}

Advertisement

var skyEl = container.querySelector(‘.weather-grid–sky’);
if (skyEl) {
skyEl.textContent = skyValue;
skyEl.setAttribute(‘aria-label’, ‘Current condition: ‘ + skyValue);
}

var feelsEl = container.querySelector(‘.weather-grid–feels’);
if (feelsEl) {
feelsEl.textContent = feelsLikeValue + ‘°F’;
feelsEl.setAttribute(‘aria-label’, feelsLikeValue + ‘ degrees Fahrenheit’);
}

var weatherContainer = container.querySelector(‘.weather-temp-container’);
if (weatherContainer) {
var summary = ‘Current temperature ‘ + tempValue + ‘ degrees Fahrenheit, ‘ +
skyValue + ‘, feels like ‘ + feelsLikeValue + ‘ degrees’;
weatherContainer.setAttribute(‘aria-label’, summary);
}

updateWeatherBackground(weatherData.current.icon_name);
}
}

function updateWeatherBackground(iconName) {
try {
var bgPath = weatherImages.backgrounds[iconName] || weatherImages.backgrounds.unknown;
container.style.backgroundImage=”url(” + bgPath + ‘)’;
} catch (e) {
console.log(‘Error updating weather background:’, e);
}
}

Advertisement

function updateForecastTabs(weatherData) {
var visibleItems = isWeatherBoxV2 ? 6 : 5;

if (weatherData.hourly) {
var hourlyContainer = container.querySelector(‘.weather-hourly-forecast’);
if (hourlyContainer) {
var html=””;
var maxHours = Math.min(visibleItems, weatherData.hourly.length);

for (var i = 0; i 0 ? currentIndex – 1 : tabs.length – 1;
tabs[prevIndex].focus();
break;
case ‘ArrowRight’:
e.preventDefault();
var nextIndex = currentIndex

Loading more articles…



Source link

Advertisement
Continue Reading
Advertisement

Trending