A state judge in Nevada extended a temporary ban on prediction market provider Kalshi’s sports-related contracts in the Silver State on Friday.
Judge Jason Woodbury in the First Judicial District Court told attorneys at a hearing in the Carson City courthouse that he would also grant the Nevada Gaming Control Board’s request to impose a preliminary injunction against Kalshi banning it from offering some of its prediction markets until a broader court case from the state gaming regulator could be resolved. He extended the temporary restraining order he first granted on March 20 by two weeks to sort out the language of the injunction, Reuters reported Friday.
The judge’s original temporary restraining order blocked Kalshi from offering sports, entertainment and election-related bets.
The judge said buying a contract on a baseball game on Kalshi was “indistinguishable” from placing a bet on a state gaming platform, Reuters reported.
Advertisement
“So I find based on the arguments that have been presented that it is a gaming activity that is prohibited for any non-licensee to engage in,” he said.
Spokespeople for Kalshi and the Nevada Gaming Control Board did not return requests for comments.
State regulators have moved to block prediction market providers in much of the U.S., arguing that these companies’ sports-related products appear to be gambling products that should be regulated at the state level. Kalshi and other prediction market providers argue that they are federally regulated designated contract markets offering swaps, a type of derivative product, and therefore are not subject to state regulators.
The Commodity Futures Trading Commission, helmed by Chairman Mike Selig, has taken a stance agreeing with these companies. It filed an amicus brief in an appeals court case earlier this year, and sued Arizona, Illinois and Connecticut on Thursday alongside the Department of Justice, arguing that it is the proper regulator and alleging that the states are infringing on its role.
The hearing took place the same day as another hearing at a federal court in Arizona. In that hearing, Kalshi had filed to block state regulators from filing to block the prediction market provider’s products in the state. Arizona Attorney General Kris Mayes had previously filed an information alleging criminal charges against Kalshi.
Advertisement
According to the court docket, District Judge MIchael Liburdi heard arguments and is considering the motion.
Nearly a decade after the state and federal government agreed to keep Nevada’s largest abandoned mine off a federal list of highly polluted sites, the mine is almost cleaned up.
But now, conversations about reopening the 3,400-acre Anaconda Copper Mine in Lyon County to production are troubling groups that have monitored the defunct property for years. They’re questioning if that could deplete local water sources and cause further pollution — and whether they’ll have any opportunities to weigh in.
As the mine’s cleanup approaches its slated 2030 completion date, companies involved with Anaconda have performed exploratory testing at the site and applied for mining-related water permits — moves that have drawn substantial protests.
On top of concerns about how mining there again would affect the environment, critics fear the potential sale of roughly half of the mine’s land to a private company, which would mean it’s subject to less stringent environmental review.
Advertisement
The land encompassing the mine is privately and publicly owned, split between the federal Bureau of Land Management (BLM) and Singatse Peak Services LLC. BLM is considering selling its approximately 2,000-acre portion of the site to Atlantic Richfield Co. (ARCO).
The move would make Anaconda wholly private property. It would be owned jointly by Singatse Peak and ARCO, which is responsible for reclamation because of its liability from its brief period of ownership of Anaconda in the late 1970s and early 1980s. The company has pushed for the sale for years, arguing it would expedite the cleanup.
But it also means future mining at the site would only be subject to state permitting requirements, which are not as extensive as federal ones.
For decades, environmental groups and the public have relied on federal policies developed in the 1970s that mandate environmental reviews and created opportunities for public comment, said Great Basin Resource Watch Director John Hadder.
If the BLM sells its portion of the property to ARCO, he said there would be no federal environmental report if the mine becomes operational again.
Advertisement
“That’s what’s missing from the state process — they don’t do any of that,” Hadder said. “Without the federal process, we’re really missing a big piece of what should be disclosed.”
For mining on privately owned land, the state requires companies to apply for permits related to reclamation, water pollution and air quality control. But the state doesn’t conduct an environmental review, and companies are not subjected to review under the terms of the National Environmental Policy Act, which is applied in all federal transactions.
Some question the rationale behind potentially disturbing an area that was so polluted it narrowly escaped the dreaded Superfund designation.
“They’re gonna have to be careful they don’t remobilize contaminants at the site,” Hadder said. But, he said, “without a plan, without a discussion, the public doesn’t know. It’s the old thing that we’ve heard before — ‘Oh, trust us.’”
The defunct Anaconda Copper Mine as seen on March 18, 2026. (Amy Alonzo/The Nevada Independent)
Dodging Superfund designation
Advertisement
Located just outside Yerington, Anaconda was headed for the federal Superfund list — a kind of scarlet letter designation for the country’s most toxic sites — when the state assumed oversight of the mine’s remediation, despite the push by many, including former Sen. Harry Reid (D-NV), for the federal Environmental Protection Agency (EPA) to direct the cleanup.
The bulk of the site’s pollution resulted from mining by different companies that occurred before the existence of the Nevada Division of Environmental Protection (NDEP) or the establishment of Nevada’s rules around mining reclamation.
Mining operations there date back to 1918. From the 1940s to 1970s, the Anaconda Copper Mining Co. operated the mine, extracting ore and leaving behind more than 1,600 acres of waste rock, contaminated tailings and disposal ponds.
In 1977, ARCO bought the mine, but the declining prices of copper and ore, along with other factors, soon led the mine to close, and the company sold it shortly thereafter.
In 1988, Arimetco assumed control of Anaconda, with its operations adding further pollution. After Arimetco’s 2000 bankruptcy declaration, Singatse Peak Services purchased the property but was exempt from the preexisting environmental liability — that liability reverted back to ARCO after Arimetco abandoned the site.
Advertisement
The EPA stepped in, removing superficial contamination and conducting a groundwater study. It sought to place the mine on its National Priorities List — a sublist within the federal Superfund designation for the nation’s most polluted sites. It would have been Nevada’s second Superfund site.
For years, the state fought the designation, and in 2018 reached an agreement with the EPA to give NDEP and ARCO control of the cleanup, with the BLM serving as a cooperating agency.
Eight years later, cleanup is complete at the mine’s most-polluted sections, the portion formerly owned by Arimetco. ARCO will soon commence the second phase of cleanup and has spent about $45 million thus far, with the state on the hook for about 8 percent of that.
ARCO has long wanted ownership of Anaconda’s federally held land and requested a land transfer in 2017. The following year, Rep. Mark Amodei (R-NV)’s legislative effort to secure the transfer failed.
In 2021, the BLM initiated the process for selling the land to ARCO. Opponents worried at the time that removing federal oversight of the cleanup would reduce environmental standards, and amid negative community response, the sale never went through.
Advertisement
But earlier this year, the BLM again initiated the transfer, offering to sell the property to ARCO for a minimum of $760,000.
Hadder, who’s monitored the mine for decades, said he believes the land transfer goes “hand in hand” with future mining at Anaconda.
“We’re really concerned about this land sale going through as is,” he said. “The public deserves to see what the plan is and understand it.” The BLM and ARCO did not respond to The Nevada Independent‘s requestfor comment about future plans for the mine before the publication deadline.
The defunct Anaconda Copper Mine as seen on March 18, 2026. (Amy Alonzo/The Nevada Independent)
A prior cleanup success story
At other polluted mines in the state, NDEP officials and mining companies have said privatizing public land has helped expedite cleanup.
Near downtown Henderson lies the sprawling Three Kids Mine site, which was active from 1917 to 1961 and used by the U.S. government during both world wars to extract manganese, a metal that strengthens steel.
Advertisement
The site fell into disrepair after its 1961 abandonment, leaving behind asbestos, toxic waste and open pits.
Like Anaconda, cleaning up Three Kids was initially complicated because the mine lacked a “responsible party” willing or able to tackle remediation, according to Alan Pineda, an NDEP engineer who is supervising its cleanup.
But federal legislation enacted in 2014 authorized the BLM to transfer the mined lands to the City of Henderson. That transfer officially occurred a decade later, in 2024, and Henderson then sold the site to Pulte Homes, which is building a housing development atop the site. NDEP is overseeing Pulte’s activities.
BLM’s land transfer helped fix the problem of abandoned land, Pineda told The Indy, as it “paved the way for a public-private partnership and the implementation of what is essentially a voluntary cleanup by a private developer.”
The activities at Three Kids and Anaconda show how much more government intervention and enforcement there is in the reclamation of once polluted and abandoned Nevada sites, which were previously allowed to languish as public health hazards.
Advertisement
State law didn’t require mining companies to mitigate their environmental damages until 1989. And even after the state began requiring companies to not abandon potentially harmful mining sites, the financial penalties for violations were so toothless that enforcement of reclamation rules was difficult.
“None of that existed back then, and that’s why this has been more of a struggle than it should have been,” said Paul Eckert, supervisor of NDEP’s Bureau of Corrective Actions.
Eckert said it is NDEP’s belief that going forward, the regulations established in the 1990s will make it harder for operators at sites such as Three Kids and Anaconda to leave behind another mess.
“Any future mining company will be responsible, both financially and regulatorily, for cleaning up,” he said.
The view from the bottom of Three Kids Mine, a long abandoned open-pit gypsum mine as seen in Henderson on Tuesday, October 4, 2023. (Daniel Clark/The Nevada Independent)
Uncharted territory?
But unlike at Three Kids, Anaconda could see future operations. Lion Copper and Gold, owner of Singatse Peak Services, has stated it intends to bring the property “back into production through the adoption of new processing technologies and a respectful approach to the environment and local communities.”
Advertisement
Opponents question potential unforeseen consequences if there is no federal environmental review of future mining at the property.
“We’re not opposed to re-mining. What we’re opposed to is re-mining without a proper public review,” Hadder said. “It needs to be discussed and evaluated, and it needs to be done in a public sphere.”
That’s because in addition to a potential Superfund designation, the mine’s various operators have been plagued throughout the decades by a slew of violations for actions that have affected nearby residents.
NDEP issued violations to ARCO in 1982 and 1985, for groundwater pollution stemming from pre-ARCO actions. The company installed infrastructure to prevent contamination of local wells and the Walker River, but in the 1990s, residents found elevated arsenic levels in water samples.
In 2013, ARCO settled a class-action lawsuit with local residents, agreeing to pay up to$19.5 million without acknowledging wrongdoing. The company was later scrutinized after convincing state regulators to support an analysis showing less pollution tied to the mine, contradicting an EPA report.
Advertisement
Concerns from water groups and local tribes about the future of Anaconda are more particular.
Anaconda’s pit lake — an open body of water that has filled in the massive cavity where ore was pulled from for decades — sits just 200 yards from the Walker River. A January application by Singatse Peak Services with the Nevada State Engineer’s Office to drain the pit — and following practices that would be required to keep it dry — would all but guarantee a drawdown on the already-beleaguered Walker River and the shrinking Walker Lake, said Peter Stanton, executive director of the Walker Basin Conservancy. The move even drew the attention of the U.S. Board of Water Commissioners.
The Walker River Paiute Tribe, which has long opposed the land transfer, said in a statement that draining the pit would “jeopardize delivery of the Tribe’s senior decreed Walker River water right, notably later in the irrigation season, and especially in dry years.”
If mining moves forward at Anaconda, Stanton said there appears to be a lack of coordination between companies, regulators and stakeholders “to align land ownership, water rights permitting and water quality permitting for a project like this.
LAS VEGAS (KSNV) — Nevada State University’s new men’s track and field team made its debut Saturday at the UNLV Elite Track and Field Invitational, marking the program’s inaugural year.
NSU Head Track and Field Cross Country Coach Roy Session called the launch of the team significant for both his athletes and the state. “This is a special occasion for my group, as well as for the state to have a men’s track and field program represented at a college in Nevada,” he said.
Session said Nevada previously had men’s college track programs, noting UNLV had a track and field team in the 1980s and the University of Nevada, Reno had a team in the 1990s. He said Title IX, which was established to “equalize” sports, later led to those programs being cut at UNLV and UNR.
He said the new program gives athletes a chance to compete in-state. “It’s amazing because what happens in Nevada is most of the guys are pretty good were leaving the state to compete, because there was no place for them to compete, or they chose not to compete at all.”
Advertisement
With the new team, students now have the option to stay in Las Vegas at a four-year university while continuing their track careers.
Athletes can compete in events including the 4 × 1,500 meters relay, shot put, pole vault, and the 4 × 100 m relay.
Session said the team is small but growing and “doing well,” adding that a few athletes finished in the top five on Friday, April 3.
Yvonne Wade, NSU’s director of athletics, said the invitational will be a milestone for the new program. “This is their first time competing at home. This is our inaugural year, and they’re excited, and we have a lot of local talent that’s here to showcase what they can do,” Wade said.
Wade said Southern Nevada has a deep talent pool and that she believes the runners are competing without pressure. She said the program also allows athletes to remain in Nevada and Las Vegas while keeping hometown support.
Advertisement
Wade also emphasized the value of local coaching for local athletes. “NSU is gonna provide it. The coaching staff gonna provide a platform for success,” she said.
Before joining Nevada State University, Session was a champion coach at Centennial High School.
Grass Valley woman scammed out of $40,000, Nevada sheriff says, warning of scammers
Advertisement
Updated: 2:32 PM PDT Apr 3, 2026
Editorial Standards ⓘ
Advertisement
After a woman was scammed out of $40,000 in cash, the Nevada County Sheriff’s Office is reminding others to stay aware of those looking to trick you out of your money.The sheriff’s office said that an elderly Grass Valley woman received a text message that appeared to come from a bank branch she uses. The text claimed that she was possibly facing out-of-state fraud charges on her account.In response to that claim, the sheriff’s office said the woman replied, saying she did not make the charges. The scammer then called her and told her that her account was compromised.After the phone call, the woman went to multiple banking locations at the request of the scammer, removing money from her account, ultimately resulting in her losing the $40,000.Following this case, the sheriff’s office provided some tips to help prevent scams.Protect personal information and do not share personal information with unsolicited callers or messagesBe skeptical of unexpected calls or messages claiming an account is locked or compromised and to not trust links and phone numbers providedIf someone is claiming to represent a bank, hang up and contact your bank directly using only the number listed on your card or on the bank’s official website. Keep in mind caller ID can be manipulatedCarefully check emails and websites for subtle misspellings to avoid phishing and to never provide login information through links sent in messagesVerify the legitimacy of urgent financial requests before making any immediate transfers or gift card purchases as they are common scam tactics.Regularly check bank statements for any unauthorized activityTrust your instincts if something feels suspicious or unusualReport fraud to your bank and the Federal Trade Commission.See more coverage of top California stories here | Download our app | Subscribe to our morning newsletter | Find us on YouTube here and subscribe to our channel
GRASS VALLEY, Calif. —
After a woman was scammed out of $40,000 in cash, the Nevada County Sheriff’s Office is reminding others to stay aware of those looking to trick you out of your money.
The sheriff’s office said that an elderly Grass Valley woman received a text message that appeared to come from a bank branch she uses. The text claimed that she was possibly facing out-of-state fraud charges on her account.
Advertisement
In response to that claim, the sheriff’s office said the woman replied, saying she did not make the charges. The scammer then called her and told her that her account was compromised.
After the phone call, the woman went to multiple banking locations at the request of the scammer, removing money from her account, ultimately resulting in her losing the $40,000.
Following this case, the sheriff’s office provided some tips to help prevent scams.
Protect personal information and do not share personal information with unsolicited callers or messages
Be skeptical of unexpected calls or messages claiming an account is locked or compromised and to not trust links and phone numbers provided
If someone is claiming to represent a bank, hang up and contact your bank directly using only the number listed on your card or on the bank’s official website. Keep in mind caller ID can be manipulated
Carefully check emails and websites for subtle misspellings to avoid phishing and to never provide login information through links sent in messages
Verify the legitimacy of urgent financial requests before making any immediate transfers or gift card purchases as they are common scam tactics.
Regularly check bank statements for any unauthorized activity
Trust your instincts if something feels suspicious or unusual
Report fraud to your bank and the Federal Trade Commission.
See more coverage of top California stories here | Download our app | Subscribe to our morning newsletter | Find us on YouTube here and subscribe to our channel
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’);
});
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.kcra.com/alerts”);
weatherWatchLink.setAttribute(‘onclick’, “return handleWeatherLinkClick(event, ‘click_alerts’, ‘click’, ‘mobile-weather’, “https://www.kcra.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);
}
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’);
});
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.kcra.com/alerts”);
weatherWatchLink.setAttribute(‘onclick’, “return handleWeatherLinkClick(event, ‘click_alerts’, ‘click’, ‘sidelist-weather’, “https://www.kcra.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);
}
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