Connect with us

Iowa

Here's what No. 23 BYU must do to compete with No. 10 Iowa State on Tuesday night at Hilton Coliseum in Ames, Iowa, according to BYU coach Kevin Young

Published

on

Here's what No. 23 BYU must do to compete with No. 10 Iowa State on Tuesday night at Hilton Coliseum in Ames, Iowa, according to BYU coach Kevin Young


For most of the Big 12 basketball season, Iowa State has dealt with one injury after another, while BYU has been relatively healthy and at full strength.

But that could change Tuesday night (7 p.m. MST, ESPN2) when the No. 10 Cyclones host the No. 23 Cougars in one of the most important contests of the year, as far as seeding for the conference tournament is concerned.

In his weekly press briefing on Monday, BYU coach Kevin Young said that 6-foot-9 freshman Kanon Catchings could miss the showdown between teams tied for fourth place in the Big 12 standings after he sustained a left knee injury while contesting a dunk midway through the first half of BYU’s 77-56 win over West Virginia.

Special Collector’s Issue: “1984: The Year BYU was Second to None”

Advertisement

Get an inclusive look inside BYU Football’s 1984 National Championship season.

“It wasn’t as bad as it looked, which is great,” Young said. “He is kind of day to day, and that is how we are approaching it.”

Cougars on the air

No. 23 BYU (21-8, 12-6) at No. 10 Iowa State (22-7, 12-6)

  • Tuesday, 7 p.m. MST
  • Ames, Iowa
  • TV: ESPN2
  • Radio: 107.9 FM/BYURadio.org/BYU Radio app

Although BYU (21-8, 12-6) is as deep as any team in the league, Catchings’ absence could hurt because he is averaging 7.6 points and 2.3 rebounds a game and had big games in two of BYU’s most impressive wins. The Indiana native had 23 points in BYU’s overtime win over Baylor and 14 points in BYU’s 96-95 upset of No. 19 Arizona.

For the second-straight year, the BYU-Iowa State clash will feature two ranked teams — and have heavy implications for the postseason. The four top seeds earn two byes in the conference tournament and don’t have to play until the quarterfinals next Thursday in Kansas City.

Young said his team and coaching staff are aware of the big-picture importance of the matchup, noting that assistant coach Chris Burgess stays “pretty dialed in with that stuff” and passes it along, but reiterated that the Cougars generally do better when they take it day by day.

Advertisement

“Some teams are better when they just focus on what is right in front of them. That seems to be the case with this group. So that is kinda how we handle the players,” Young said. “As it relates to the staff, I am pretty singular focused. But I try to have an understanding of what is going on big picture as well.”

Regardless of what happens Tuesday night, or Saturday when BYU hosts Utah on Senior Night, BYU can do no worse than a No. 5 seed at T-Mobile Center. That’s an overachievement, considering BYU has a new coach, was picked to finish ninth in the league, and lost four of its first six conference games.

How has it come together so quickly for the Cougars?

“I think there is a lot that goes into that. If I had to narrow it down to a couple of things I just think belief, execution, togetherness,” Young said. “That’s where we have been able to move the needle.

“I think patience, as I’ve learned how to operate in this space (has also been important). … So all that stuff has been the recipe, I would say, to why we are where we are right now.”

Advertisement

This is the most significant and challenging game of the Kevin Young era, as Iowa State is 15-1 at 14,356-seat Hilton Coliseum in Ames, Iowa, and enjoys one of the best home-court advantages in all of college basketball.

Last year, in front of 14,267, BYU jumped out to a 38-27 halftime lead but was outscored 41-25 in the second half and wilted to ISU’s pressure defense late to give away a game it probably should have won.

BYU finished with 17 turnovers in the 68-63 loss, including a late blunder by point guard Dallin Hall, while ISU had only six giveaways.

“That’s one of the best atmospheres I have played in,” Hall said Saturday after scoring eight points and notching six assists against West Virginia.

Iowa State coach TJ Otzelberger also met with reporters Monday, and said the Cougars’ maturity and size in the back court, with 6-9 freshman Egor Demin running the point, along with Hall, sets them apart.

Advertisement

“Number one, Demin with the basketball … as a playmaker, facilitator, that’s a unique endeavor, for sure,” he said, then noted that reigning two-time Big 12 Player of the Week Richie Saunders and graduate Trevin Knell are two of the top 3-point shooters in the league.

“I think that’s one thing with them that you have to factor into the equation, is how well they shoot the basketball,” Otzelberger said. “They’ve got older guys. They’ve got experienced, veteran guys that know how to find ways to win. You don’t win six in a row in this league without having that type of experience.

“Saunders is playing at about as high a level as anybody is in the conference right now in terms of shooting the ball, making big plays for them late, just competing,” the coach continued.

Iowa State forces 15.2 turnovers per game, which ranks 17th nationally. The Cyclones use those turnovers to get out in transition and fuel their offense. They average 80.2 points per game, which is No. 42 in the country.

BYU averages 81.0 points, 32nd in the country.

Advertisement

“I think we have to go in there with the mindset that no matter what they do, we are going to be under control offensively,” Young said. “… Their defense is different than West Virginia’s. But at the same time, I am big on proof of concepts. We have proven that we can (score) against good defensive teams, particularly one whose M.O. is to turn you over.”

Young said turnovers were “a weakness of ours” earlier in the season, “but we are starting to use people’s aggression against them. I think that is the ultimate key to the game.”

Iowa State guard Demarion Watson (4) and forward Hason Ward (24) stop a shot attempt by BYU forward Fousseyni Traore (45) during game, Wednesday, March 6, 2024, in Ames, Iowa. The two top-25 teams meet again in Ames on Tuesday night, with Big 12 tourney seeding ramifications on the line.
Iowa State guard Demarion Watson (4) and forward Hason Ward (24) stop a shot attempt by BYU forward Fousseyni Traore (45) during game, Wednesday, March 6, 2024, in Ames, Iowa. The two top-25 teams meet again in Ames on Tuesday night, with Big 12 tourney seeding ramifications on the line. | Matthew Putney, Associated Press



Source link

Iowa

Iowa State basketball lands Northern Iowa transfer Leon Bond III

Published

on

Iowa State basketball lands Northern Iowa transfer Leon Bond III


play

The name’s Bond — Leon Bond III — and he’s Iowa State men’s basketball’s first transfer portal commit of the 2026 cycle.

Bond was one of several reported to be visiting Ames this weekend, and he announced his commitment on Friday, April 10. He will have one year of eligibility remaining.

Advertisement

Bond, a 6-foot-5, 200-pound guard from Wauwatosa, Wisconsin, spent the last two seasons at Northern Iowa, after originally starting his collegiate career at Virginia.

Bond is coming off of a career-best year with the Panthers. He averaged 11.9 points, 4.7 rebounds and 1.5 assists, while shooting 47.3% overall, 36.2% from 3-point range and 75% from the free-throw line. He earned All-Defensive Team honors in the Missouri Valley Conference and was one of the key players in helping Northern Iowa win the conference tournament and make its first NCAA Tournament appearance in a decade.

Across his two seasons in Cedar Falls with the Panthers, he appeared in 59 games with 57 starts and averaged 11 points and 4.6 rebounds per game. Before that, he played one season for former coach Tony Bennett at Virginia in 2023-24, where he played 24 games off the bench, averaging 4.1 points over 12.3 minutes per game.

Offensively, he’s a solid athlete capable of getting to the basket and making plays above the rim, while showing an improved perimeter jumper that he’s worked on over the years. Defensively, he provides versatility and an ability to guard multiple positions. His length, athleticism and motor bode well for him as he transitions into Iowa State’s system.

Advertisement

As the first transfer commit for Iowa State, Bond is helping replenish the Cyclones’ roster after the graduations of Tamin Lipsey, Joshua Jefferson, Nate Heise, Dominick Nelson and Eric Mulder.

They also saw Mason Williams and Cade Kelderman enter the portal since it first opened on April 7. College basketball players will have until April 21 to decide if they are staying with their current schools or entering the transfer portal.

Eugene Rapay covers Iowa State athletics for the Des Moines Register. Contact Eugene at erapay@gannett.com. Follow him on Twitter at @erapay5.





Source link

Advertisement
Continue Reading

Iowa

Iowa wrestling taps Jacob Warner as new assistant coach

Published

on

Iowa wrestling taps Jacob Warner as new assistant coach


play

Iowa wrestling will bring in a familiar face to fill out its coaching staff, tapping five-time NCAA All-American Jacob Warner to join as an assistant coach.

Advertisement

The Hawkeye wrestling program announced the decision on April 10. He replaces Bobby Telford, who took a position outside of wrestling after the 2025-26 season ended.

With Warner’s hire, all four official coaching positions at Iowa are held by former Hawkeye wrestlers — head coach Tom Brands, associate head coach Terry Brands, assistant coach Ryan Morningstar and Warner. (Telford also wrestled for the Hawkeyes.)

While Warner does not have official coaching experience, being in the Hawkeye Wrestling Club allowed him to help sharpen athletes still competing in the college ranks. Warner has been credited by several wrestlers in the program for helping their development, none bigger than national champion Stephen Buchanan.

“Jacob knows what it takes to compete at the highest level, both on and off the mat,” Tom Brands said in a release. “He represents everything Iowa wrestling stands for. His toughness, discipline and relentless work ethic will be a tremendous asset to our staff and our student-athletes.”

Advertisement

As a wrestler, Warner had a career record of 97-28 in a Hawkeye singlet. He took seventh at the NCAA Championships in 2019 as a redshirt freshman, earned All-American honors for the canceled 2020 NCAA Championships, then was fourth in 2021, an NCAA runner-up in 2022 and finished his career in fifth place in 2023. Warner also has experience on the major World stages. He won a bronze medal at the 2016 Cadet World Championships and was on the 2018 Junior World team for the United States.

The Hawkeyes have a pivotal 2026-27 season ahead, following a fourth-place finish at the NCAA Championships and a regular season to forget. Time will tell whether Warner’s official addition to the staff can help spark better results as the Hawkeyes look to return to their championship ways.

“Our fans, I see them on the street, I see them here, I see them there, I say, ‘We got to do better for you,’” Tom Brands said after the NCAA Championships. “We know that.”

Eli McKown covers high school sports and wrestling for the Des Moines Register. Contact him at Emckown@gannett.com. Follow him on Twitter at @EMcKown23.

Advertisement





Source link

Continue Reading

Iowa

Iowa State women’s basketball team adds transfer guard from Kent State

Published

on

Iowa State women’s basketball team adds transfer guard from Kent State


Iowa State women’s basketball team adds transfer guard from Kent State

Advertisement

ROUND PICK. WE’LL BE PULLING FOR HIM. THE DRAFT STARTS THURSDAY, APRIL 23RD. CYCLE IN. WOMEN LOST NEARLY THEIR ENTIRE ROSTER THURSDAY. THEY GOT ONE BACK. MAYA BABBITT IS COMING OVER FROM KENT STATE. SHE LED THAT TEAM AT 16 POINTS PE

Advertisement

Iowa State women’s basketball team adds transfer guard from Kent State

Updated: 10:40 PM CDT Apr 9, 2026

Editorial Standards

Advertisement

Iowa State got a strong start on its 2026 transfer class Thursday.Kent State guard Mya Babbitt announced her commitment to Iowa State.Babbitt, a 5’8″ guard from Papillion, Nebraska, has been a two-year starter for the Golden Flashes and earned second-team All-MAC honors in 2025-26 after averaging 16.1 points and 4.0 rebounds per game. She also set the Kent State record for 3-pointers in a season as a sophomore, making 83 3-pointers at a 41.5% clip.Babbitt is the first incoming transfer to announce her commitment to Iowa State this offseason. She will have one year of eligibility remaining.The Cyclones are tasked with replacing nearly the entire roster from 2025-26 after nine players entered the transfer portal.Senior-to-be Arianna Jackson has announced her return, as has reserve guard Freya Jensen. Iowa State also brings in highly touted recruit Macy Comito. Comito led Carlisle High School to its first state title this winter.» Subscribe to KCCI’s YouTube page» Download the free KCCI app to get updates on the go: Apple | Google Play

Iowa State got a strong start on its 2026 transfer class Thursday.

Advertisement

Kent State guard Mya Babbitt announced her commitment to Iowa State.

Babbitt, a 5’8″ guard from Papillion, Nebraska, has been a two-year starter for the Golden Flashes and earned second-team All-MAC honors in 2025-26 after averaging 16.1 points and 4.0 rebounds per game. She also set the Kent State record for 3-pointers in a season as a sophomore, making 83 3-pointers at a 41.5% clip.

This content is imported from Twitter.
You may be able to find the same content in another format, or you may be able to find more information, at their web site.

Advertisement

Babbitt is the first incoming transfer to announce her commitment to Iowa State this offseason. She will have one year of eligibility remaining.

The Cyclones are tasked with replacing nearly the entire roster from 2025-26 after nine players entered the transfer portal.

Senior-to-be Arianna Jackson has announced her return, as has reserve guard Freya Jensen. Iowa State also brings in highly touted recruit Macy Comito. Comito led Carlisle High School to its first state title this winter.

» Subscribe to KCCI’s YouTube page

» Download the free KCCI app to get updates on the go: Apple | Google Play

Advertisement
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’);
});

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

Advertisement

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 };

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) {}

Advertisement

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’);

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.kcci.com/alerts”);
weatherWatchLink.setAttribute(‘onclick’, “return handleWeatherLinkClick(event, ‘click_alerts’, ‘click’, ‘mobile-weather’, “https://www.kcci.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);
}
}
}
}

Advertisement

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);
}

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

Advertisement

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;

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

Advertisement

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’;

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.kcci.com/alerts”);
weatherWatchLink.setAttribute(‘onclick’, “return handleWeatherLinkClick(event, ‘click_alerts’, ‘click’, ‘sidelist-weather’, “https://www.kcci.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

Loading more articles…



Source link

Advertisement
Continue Reading

Trending