Connect with us

Nebraska

Nebraska Supreme Court questions attorney about AI use in court brief

Published

on

Nebraska Supreme Court questions attorney about AI use in court brief


OMAHA, Neb. (WOWT) – Figuring out ways to harness the power of artificial intelligence is being challenged by every industry. What works, what doesn’t and what’s ethical.

The Nebraska Supreme Court heard arguments in a divorce and custody case this month, but what the justices really wanted to know was: Did the attorney really write this?

It’s a big deal for attorneys arguing a case before the Nebraska Supreme Court. First up was an appeal of a divorce case from Omaha. But 37 seconds into the argument, the justices interrupted Omaha attorney Greg Lake.

“Before we get into that, I’d like to ask you about your brief,” a justice said.

Advertisement

“Of course,” Lake said.

“And your brief had a number of errors in it that were submitted. Can you explain to us how that occurred?” the justice asked.

“Absolutely, Your Honor. I was on my 10th wedding anniversary. While flying down there, my computer broke. And I uploaded the incorrect version of my brief,” Lake said.

Extensive errors discovered

The opposing attorney told the court that of the 63 references Lake made in his brief, 57 contained some form of defect.

“The brief that was submitted had misquotes from cases, fictitious cases, and misquotes from statutes. How were those all generated in your, I guess, the version that you did submit to us?” a justice asked.

Advertisement

“Sure. It was a draft. And when I… My writing process is when I’m drafting, I stick in things that I know wouldn’t pass muster,” Lake said.

“The elephant in the room is whether or not you used artificial intelligence. Did you?” the justice asked.

“No, I did not,” Lake said.

“With respect, if you didn’t use artificial intelligence, how do we end up with a citation to cases that don’t exist? I mean, it’s frankly a little hard to believe that’s just a citation error,” the justice said.

“Certainly, Your Honor. And again, like I said, I was… My computer was broken,” Lake said.

Advertisement

Client concerns

Jason Regan is the client whose divorce and custody arguments were essentially hijacked by the AI questions for four minutes, making him wonder if the merits of his case will even be considered.

“This was supposed to be where I felt my story would be heard,” Regan said.

“That’s why you go to a professional and pay big bucks for their expertise. I thought I was in safe hands,” Regan said.

Lake charges $375 an hour.

Expert perspective

Professor George McHendry teaches AI ethics at Creighton University.

Advertisement

“In law, that’s where we’ve seen immediate consequences of technology to made up cases,” McHendry said.

“I think you’re going to see courts grow more tired. I wouldn’t be surprised if, at some point, someone’s law license is at stake,” McHendry said.

“With a number of mistakes and basically misleading comments that were made in the brief, why shouldn’t this appeal just be treated as frivolous?” a justice asked.

“Your Honor, I don’t have a great answer for that,” Lake said.

Case outcome and broader implications

The Nebraska Supreme Court took the case under advisement. The opposing counsel suggested the entire case should be tossed. The court even asked Greg Lake’s opinion on if he should be sanctioned for his actions.

Advertisement

“I’m not running away from this… I made a mistake,” Lake said.

The Nebraska Counsel for Discipline can’t say if there’s been a complaint filed in this case. However, in the last few months a couple of attorneys in Douglas County have been sanctioned for using AI and paid fines.

An online database which follows AI hallucination court cases has compiled 958 of them so far across the world including the sanctions. Those wrongly using AI were mostly lawyers. Others are defendants who represent themselves.

The attorney general submitted a friend of the court brief as a reminder to the justices that AI plays a central role for making the job of an attorney more efficient and that Nebraska rules already say that if you use AI, the attorney has a duty to verify the accuracy of court briefs.

Advertisement



Source link

Nebraska

Nebraska volleyball ready to open spring play against Iowa State

Published

on

Nebraska volleyball ready to open spring play against Iowa State


Nebraska volleyball will play in three exhibition matches this spring. The Huskers will open the spring against Iowa State on April 11 in Sioux Falls, South Dakota.

The Cornhuskers are hitting the road for all three spring exhibition matches as the John Cook Arena at the Devaney Center has been under construction since late February. The facility is undergoing locker room upgrades and adding roughly 10,000 new seats with cupholders.

Last season, Nebraska finished the season 33-1 and No. 3 in the final AVCA poll. Iowa State ended the season 23-8 and lost to Minnesota in the second round of the NCAA tournament.

The Cyclones are coached by Christy Johnson-Lynch, who is entering her 22nd year as head volleyball coach. She also played and coached at Nebraska.

Advertisement

She was an All-American for the Huskers in 1994 and 1995. Johnson-Lynch was the starting setter for the 1995 team, which won the school’s first national volleyball championship.

This is the first spring season in which the Huskers will play three exhibition matches. Head Coach Dani Busboom Kelly is excited about the potential to play against a different team and in a gym packed with Nebraska fans.

“Not only do we get to play against an opponent, but in front of fans and have that added pressure and a different vibe. I think that’s what this team needs. And when we’re ready for things, we need to continue to push them and not hold them back.”

Following Saturday’s match against Iowa State, the Huskers will play Creighton on Friday, April 17, at 7 p.m. at the D.J. Sokol Arena in Omaha. Nebraska ends the spring season with an exhibition match against Northern Colorado on Saturday, April 25, at the Chicoine Center in Chadron, NE.

First serve on Saturday between the Huskers and Cyclones is at 1 p.m. CT from the Sanford Pentagon in Sioux Falls. The game can be seen on the Big Ten Network, and Cornhuskers Wire will have live updates.

LINK: How to watch Nebraska volleyball face Iowa State this Saturday

Advertisement

Contact/Follow us @CornhuskersWire on X (formerly Twitter) and like our page on Facebook to follow ongoing coverage of Nebraska news, notes and opinions.





Source link

Continue Reading

Nebraska

‘Slap in the face’: Medical cannabis access uncertain in Nebraska

Published

on

‘Slap in the face’: Medical cannabis access uncertain in Nebraska


More than a year after voters overwhelmingly approved medical cannabis in Nebraska, the state is nowhere near having a functioning program.Some state lawmakers and cannabis advocates say the latest blow landed Tuesday night, when a bill offering protections to healthcare practitioners who recommend medical cannabis faltered on the legislative floor.”If there are no practitioners, there are no patients in this program,” Crista Eggers with Nebraskans for Medical Marijuana said. “What seems to be the goal of this is to make sure Nebraska never has a functioning program.”The stories of families fighting for a medical cannabis program stack up every day.”His seizures happen all the time. He’s probably he’s having probably hundreds a day,” Dominic Gillen said. “We thought we were the only family. And we’ve come to find out that there are thousands of Nebraskans that are in need of this.”Gillen’s son Will has Lennox-Gastaut syndrome, a severe form of epilepsy. So does Matthew Bronson’s son Teddy. Bronson is a disabled veteran and carries chronic pain with him every day.”I want to take something or use something that will help with the pain, but not impair me to the point where I cannot give aid to my child,” Bronson said.Both families celebrated when Nebraskans overwhelmingly greenlit a medical cannabis program.”That means 71% of the state says, ‘Let’s do this. Let’s try it,’” Bronson said.But they say lawmakers and other state officials hung the program out to dry since 2024.”The legislature has not fulfilled the real intent of the voters,” Gillen said.Sen. John Cavanaugh championed LB933, aiming to protect healthcare practitioners who recommend cannabis, a Schedule 1 substance.”Not a single doctor in Nebraska has made a recommendation because they are afraid that the retribution by the attorney general or other law enforcement against their license,” Cavanaugh said.A number of amendments, including one from Sen. Brian Hardin, throttled the bill on Tuesday night. Hardin called LB933 a “recreational marijuana bill masquerading as a medical marijuana bill” in an interview with KETV on Wednesday.That means practitioners still won’t have legal protections this year, something Cavanaugh said will be chilling to the program facing a critical attorney general.”You cannot have a medical cannabis program if no doctors are able to make a recommendation for their patients,” Cavanaugh said.Attorney General Mike Hilgers’ office said on Wednesday that he is “responsible for ensuring the safety of patients.”” is charged with reviewing complaints as to medical professionals who violate the terms of their licenses,” the statement said. “We take that obligation very seriously, and the office will look at any medical professional who has been alleged to have violated the conditions of their license.”Every other state with a medical-only cannabis program has protections for practitioners. Nebraska”It feels like a slap in the face,” Bronson said. “There’s no nice way of saying it.”Bronson and Gillen said they’ll continue to advocate for what they say is necessary for many Nebraskan patients.But they say they’re uncertain about the future as Nebraska continues to chart its own course. The Nebraska Medical Cannabis Commission has missed deadlines, restricted forms of cannabis patients can use, and capped the total number of plants cultivators can grow to just 1,250. That’s a total of 5,000 hemp plants across the four licensed cultivators.”What I’ve heard from people who want to get licenses, they’re already saying that that won’t be enough,” Gillen said.The Medical Cannabis Commission did not respond for comment on Wednesday. But it will hold its next public meeting next Monday at 1 p.m. in the State Office Building in Lincoln.Make sure you can always see the latest news, weather, sports and more from KETV NewsWatch 7 on Google search.NAVIGATE: Home | Weather | Local News | National | Sports | Newscasts on demand |

More than a year after voters overwhelmingly approved medical cannabis in Nebraska, the state is nowhere near having a functioning program.

Some state lawmakers and cannabis advocates say the latest blow landed Tuesday night, when a bill offering protections to healthcare practitioners who recommend medical cannabis faltered on the legislative floor.

Advertisement

“If there are no practitioners, there are no patients in this program,” Crista Eggers with Nebraskans for Medical Marijuana said. “What seems to be the goal of this is to make sure Nebraska never has a functioning program.”

The stories of families fighting for a medical cannabis program stack up every day.

“His seizures happen all the time. He’s probably he’s having probably hundreds a day,” Dominic Gillen said. “We thought we were the only family. And we’ve come to find out that there are thousands of Nebraskans that are in need of this.”

Advertisement

Gillen’s son Will has Lennox-Gastaut syndrome, a severe form of epilepsy. So does Matthew Bronson’s son Teddy. Bronson is a disabled veteran and carries chronic pain with him every day.

“I want to take something or use something that will help with the pain, but not impair me to the point where I cannot give aid to my child,” Bronson said.

Both families celebrated when Nebraskans overwhelmingly greenlit a medical cannabis program.

“That means 71% of the state says, ‘Let’s do this. Let’s try it,’” Bronson said.

But they say lawmakers and other state officials hung the program out to dry since 2024.

Advertisement

“The legislature has not fulfilled the real intent of the voters,” Gillen said.

Sen. John Cavanaugh championed LB933, aiming to protect healthcare practitioners who recommend cannabis, a Schedule 1 substance.

“Not a single doctor in Nebraska has made a recommendation because they are afraid that the retribution by the attorney general or other law enforcement against their license,” Cavanaugh said.

A number of amendments, including one from Sen. Brian Hardin, throttled the bill on Tuesday night. Hardin called LB933 a “recreational marijuana bill masquerading as a medical marijuana bill” in an interview with KETV on Wednesday.

That means practitioners still won’t have legal protections this year, something Cavanaugh said will be chilling to the program facing a critical attorney general.

Advertisement

“You cannot have a medical cannabis program if no doctors are able to make a recommendation for their patients,” Cavanaugh said.

Attorney General Mike Hilgers’ office said on Wednesday that he is “responsible for ensuring the safety of patients.”

“[The Attorney General] is charged with reviewing complaints as to medical professionals who violate the terms of their licenses,” the statement said. “We take that obligation very seriously, and the office will look at any medical professional who has been alleged to have violated the conditions of their license.”

Every other state with a medical-only cannabis program has protections for practitioners. Nebraska

“It feels like a slap in the face,” Bronson said. “There’s no nice way of saying it.”

Advertisement

Bronson and Gillen said they’ll continue to advocate for what they say is necessary for many Nebraskan patients.

But they say they’re uncertain about the future as Nebraska continues to chart its own course. The Nebraska Medical Cannabis Commission has missed deadlines, restricted forms of cannabis patients can use, and capped the total number of plants cultivators can grow to just 1,250. That’s a total of 5,000 hemp plants across the four licensed cultivators.

“What I’ve heard from people who want to get licenses, they’re already saying that that won’t be enough,” Gillen said.

The Medical Cannabis Commission did not respond for comment on Wednesday. But it will hold its next public meeting next Monday at 1 p.m. in the State Office Building in Lincoln.

Make sure you can always see the latest news, weather, sports and more from KETV NewsWatch 7 on Google search.

Advertisement

NAVIGATE: Home | Weather | Local News | National | Sports | Newscasts on demand |



Source link

Continue Reading

Nebraska

Nebraska Humane Society asking for help after abandoned dog found severely starved in Omaha

Published

on

Nebraska Humane Society asking for help after abandoned dog found severely starved in Omaha


Nebraska Humane Society investigating after abandoned dog found severely starved in Omaha

Advertisement

Advertisement

Nebraska Humane Society investigating after abandoned dog found severely starved in Omaha

Updated: 9:08 AM CDT Apr 8, 2026

Editorial Standards

Advertisement

The Nebraska Humane Society is asking for the public’s help after an abandoned dog was found severely starved in Omaha.Animal control officers found the boxer mix in a plastic kennel near 31st Street and Fowler Avenue on Friday, the shelter said.The dog, which the Nebraska Humane Society has named Jedi, was in critical condition and is receiving lifesaving treatment.Officials said the case appears to involve long-term neglect, and Jedi had ribs, vertebrae and pelvic bones that were easily visible with no palpable fat.Anyone with information is asked to call 402-444-7800, option 1.Make sure you can always see the latest news, weather, sports and more from KETV NewsWatch 7 on Google search.NAVIGATE: Home | Weather | Local News | National | Sports | Newscasts on demand |

The Nebraska Humane Society is asking for the public’s help after an abandoned dog was found severely starved in Omaha.

Animal control officers found the boxer mix in a plastic kennel near 31st Street and Fowler Avenue on Friday, the shelter said.

Advertisement

The dog, which the Nebraska Humane Society has named Jedi, was in critical condition and is receiving lifesaving treatment.

Officials said the case appears to involve long-term neglect, and Jedi had ribs, vertebrae and pelvic bones that were easily visible with no palpable fat.

Anyone with information is asked to call 402-444-7800, option 1.

Advertisement

This content is imported from Facebook.
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.

Make sure you can always see the latest news, weather, sports and more from KETV NewsWatch 7 on Google search.

NAVIGATE: Home | Weather | Local News | National | Sports | Newscasts on demand |

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

Advertisement

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

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

Advertisement

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

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

Advertisement

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

Advertisement

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

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

Advertisement

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

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

`;
}

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

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

Advertisement

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

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

Advertisement

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

Advertisement

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

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

Advertisement

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

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

Advertisement

Loading more articles…



Source link

Continue Reading

Trending