Connect with us

Boston, MA

Celtics remind Cavaliers: NBA's East still runs through Boston

Published

on

Celtics remind Cavaliers: NBA's East still runs through Boston


Jayson Tatum led the Celtics with 33 points in their 120-117 victory Tuesday to end Cleveland’s 15-0 start to the season. (Photo by Winslow Townson/Getty Images)

BOSTON — Everyone knew the deal. The Cleveland Cavaliers entered Tuesday’s game against the reigning champions with a 15-0 record, second-best start to a season ever, and it was an NBA Cup game to boot.

“We knew,” said Boston Celtics guard Derrick White. “Everybody knew.”

In front of a national television audience, the Celtics reminded the Cavaliers that the Eastern Conference still runs through Boston. They made five of their first eight 3-point attempts, took an 18-8 advantage midway through the opening quarter and never trailed again in a 120-117 victory Cleveland never quit.

Advertisement

Boston pushed its lead to 65-48 by halftime, making nine more 3-pointers on 11 attempts in the second quarter. We could call it a barrage if it were not so expected. This is what the Celtics do. Their 51.1 3-point attempts lead the league by almost six per game. Even at a middling conversion rate, they sink nearly 20 triples a night. Make it 22 on Tuesday. Better keep up if you ever want that math to work in your favor.

The Cavs could not. They shot 10-for-29 from deep and climbed uphill all night as a result. This was a deviation from their norm. They have been playing faster and with more freedom under new head coach Kenny Atkinson, who learned in his time with the Golden State Warriors that the ball should never stick.

Except it did against Boston. “Not great,” Atkinson said of his team’s preparedness.

“The first thing we learned was the force and physicality,” he added. “They had playoff force and physicality; we had regular-season force and physicality. And that’s why we were down 17 at the half.”

They responded in the second half, trimming a 21-point deficit to 86-84 over seven minutes of the third quarter. Some of it was the Celtics settling for contested 3s, rather than creating open ones. Most of it was the Cavaliers pounding the paint. Whether it was Donovan Mitchell taking Neemias Queta off the dribble or Cleveland’s bigs posting smaller defenders, the Cavs outscored Boston on the interior 60-36.

Advertisement

Credit to Cleveland for not conceding the undefeated record, but the Celtics answered that call, too.

“It’s simple: We just locked in on defense,” said Boston’s Jayson Tatum, who finished with 33 points, 12 rebounds and seven assists. “We’ve been in that situation a million times where it’s time to win.”

So they did, which could be interpreted as a bad sign for the Cavaliers, who considered this game a measuring stick of their seriousness as a contender. But Evan Mobley drew a different conclusion.

“From what I saw out there, we could beat anybody,” said Cleveland’s rising star.

Is that feeling different from last year, when Boston ousted Cleveland in a second-round playoff series?

Advertisement

“Not really, honestly,” added Mobley (22 points, 11 rebounds). “Last year it felt the same way. We were right there. We lost the series, but most of the games we were right there with them the whole time.”

Can beat the Celtics and will beat the Celtics are two different things. For as much positivity as the Cavaliers drew from their first loss of the season, there is this: Boston will soon reincorporate All-Star center Kristaps Porzingis, who unlocks another dimension for a team that won a title largely without him.

The Celtics assigned Porzingis to their G League affiliate Monday. Instead of sending him to Maine, they brought the entire developmental team to Porzingis, so he could simulate serious game action for the first time since his surgery, sources told Yahoo Sports. Attendees were pleased with his performance, which is a) to be expected from anyone relaying that information and b) better than the alternative.

Either way, Porzingis’ return is now a matter of weeks, not months, even if he may not be available when these two teams meet again Dec. 1. That is the next measuring stick. This one fell short for the Cavs, who look different from last season yet still a tier below the fully healthy version of the reigning champs.



Source link

Advertisement

Boston, MA

Biddeford woman runs Boston Marathon in honor of late mother

Published

on

Biddeford woman runs Boston Marathon in honor of late mother


Jessica Johnson of Biddeford will run her fourth Boston Marathon next week. (Courtesy of Jessica Johnson)

Running the storied Boston Marathon is probably every runner’s dream. But for Jessica Johnson, a Biddeford resident and Massabesic Middle School teacher, it wasn’t an overwhelming desire that prompted her. It was boredom.

“I was bored during COVID,” she said. “I was just bored, so I laced up my sneakers, and off I went.” 

The other reason, and one of her biggest motivators for running marathons, is her mother, who died of brain cancer in 2002.

Advertisement

All of Johnson’s races have been in her honor.

This year, Johnson is running in partnership with Dana Farber Cancer Institute raising money for cancer research. 

“My mom would’ve been my biggest cheerleader,” she said. “I always think of my mom.” 

Johnson’s mom often shows up in mysterious ways on marathon courses. Two years ago, Johnson got very sick on the Boston Marathon course. 

“I don’t know what happened,” she said. “I probably shouldn’t have kept going, but I did.” 

Advertisement

At Mile 15, Johnson stopped at a bus that was there to pick up runners who needed to step away from the course. 

She asked her mom for a sign to keep going. 

“Her favorite song came on the bus radio,” Johnson said. “I finished the race for her.” 

Johnson started running at the end of 2021, and by 2022, she qualified for her first half marathon. Since then, she has completed marathons across the country, including three Boston Marathons.

Johnson’s young daughters meet her at the finish line each year. (Courtesy of Jessica Johnson)

Next week, on April 20, she will run the Boston Marathon for the fourth time on its 130th anniversary, alongside 30,000 fellow runners. 

Advertisement

Founded in 1897, the Boston Marathon is one of the pinnacles of racing for marathon runners. It was one of the first to allow women to compete, and the first to feature a wheelchair division. 

Each year, over 500,000 spectators line up along the course to cheer on runners — from Hopkinton, to Natick, to Newton and finally, the finish line in Boston’s Copley Square, where Johnson’s daughters will be waiting for her. 

Johnson’s daughters have motivated her to finish the race every time, she said. 

“I’m always looking to set an example of what hard work does,” Johnson said. “But it’s also about body positivity. I work really hard to get out there, and that’s what I want to show them.” 

Each year, Johnson runs the marathon in honor of her mother, who passed away from brain cancer. (Courtesy of Jessica Johnson)

Johnson also runs to honor others who have lost their lives to cancer. Year after year, she asks her community who they would like to honor, and writes their names on her arms. 

Advertisement

“Why not find a way to honor other people’s memories too?” she said. 

While each of her marathons has been powerful and uplifting, next week’s race will be her last. 

She hopes to run a different marathon each spring, something she can’t do while running in Boston. 

“I want a personal record on this one. That will give me closure,” she said. “I’m going to go out with a bang.” 

Johnson is still fundraising for the race, and donations can be made through her Venmo, @RunForResearch. All proceeds will benefit Dana Farber Cancer Institute.

Advertisement



Source link

Continue Reading

Boston, MA

Man seriously hurt in Dorchester crash – Boston News, Weather, Sports | WHDH 7News

Published

on

Man seriously hurt in Dorchester crash – Boston News, Weather, Sports | WHDH 7News


DORCHESTER, MASS. (WHDH) – A man was rushed to the hospital after a crash between a car and a scooter in Dorchester, according to Boston police.

Police responded to Aspinwall Road at approximately 8:51 p.m. for a report of a motor vehicle accident. Officers said they found one victim hurt on scene. He was taken to the hospital with life-threatening injuries. 

People who live in the area said the intersection sees a lot of scooter traffic in the warmer months of the year.

“It’s a little bit dangerous, especially when it gets warm because people are riding mopeds and riding bikes and stuff, and they do tricks,” said one woman who lives in the area. “It’s just a big intersection where cars are coming from every different way and you never know what’s going to happen.”

Advertisement

The crash is under investigation.

This is a developing news story; stay with 7NEWS on-air and online for the latest details.

(Copyright (c) 2026 Sunbeam Television. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox



Source link

Advertisement
Continue Reading

Boston, MA

One Boston Day 2026: How to volunteer, take part across Boston

Published

on

One Boston Day 2026: How to volunteer, take part across Boston


One Boston Day 2026: How to volunteer, take part across Boston

Advertisement

HE’S NOW BEING CHARGED WITH ARMED ROBBERY. WE’RE COMING UP ON 637 AND WE ARE ALMOST THERE. A WEEK FROM TODAY, THOUSANDS OF RUNNERS WILL TURN ONTO BOYLSTON STREET AND CROSS THE FINISH LINE OF THE BOSTON MARATHON AND BOSTON AND THE BAY ARE KICKING OFF A WHOLE WEEK OF EVENTS BEFORE THE BIG DAY. STARTING WEDNESDAY, THE LINES ARE PAINTED PENDING GOOD WEATHER. THE WORK ON THE STARTING LINE BEGINS THAT DAY IN HOPKINTON. WORK ON THE FINISH LINE IN BACK BAY SHOULD BEGIN ON THURSDAY. SO EXCITING. ON WEDNESDAY IT WILL MARK ONE BOSTON DAY. OF COURSE, THAT’S THE DAY WE HONOR HOW THE CITY CAME TOGETHER IN THE DAYS FOLLOWING THE BOSTON MARATHON BOMBING. YOU ARE ASKED TO SHARE ACTS OF KINDNESS ALL DAY LONG. FINALLY, EVERYTHING MARATHON RELATED COMES TOGETHER ON FRIDAY WITH THE BOSTON MARATHON FAN EXPO. LIKE PREVIOUS YEARS, THAT WILL BE AT THE HYNES CONVENTION CENTER. FOR INFORMATION ON ALL THE EVENTS THIS WEEK, YOU CAN KEEP AN EYE ON WCVB.COM AND OUR MOBILE APP. THAT IS A THRILLING MOMENT WHEN YOU GO TO PICK UP YOUR NUMBER. IT WON’T BE LONG NOW. THE 130TH BOSTON MARATHON ON MONDAY, APRIL 20TH, WCVB.

Advertisement

One Boston Day 2026: How to volunteer, take part across Boston

Updated: 2:17 PM EDT Apr 13, 2026

Editorial Standards

Advertisement

Residents and visitors are encouraged to share acts of kindness marking One Boston Day on Wednesday, honoring how the city came together in the days after the Boston Marathon bombing, 13 years ago. The day will also include the annual memorials along Boylston Street. “I hope everyone will join their neighbors today in honoring those we lost and celebrating the love that makes Boston a home for everyone,” Mayor Michelle Wu wrote in a statement. “As spring arrives in Boston each year, we are reminded of the hope and spirit of our city,” said Bill Richard, who created a foundation in honor of his son, Martin, who was killed in the bombing.How to get involvedThe city of Boston and partner organizations are offering several ways for people to participate in One Boston Day and related events, according to the city:Volunteer projects citywide: City departments will host service opportunities on April 15 and in the days leading up to Marathon Monday.Neighborhood cleanup: A youth and family cleanup is scheduled for Saturday, April 18, at 9 a.m. at Franklin Park Playstead, organized by the Mayor’s Office of Civic Organizing. Volunteers are asked to register ahead of time. Free ‘Stop the Bleed’ training: Virtual sessions will be held April 15 at noon and 6 p.m. to teach lifesaving bleeding control techniques, offered by the Stepping Strong Center at Brigham and Women’s Hospital. Acts of kindness: Residents are encouraged to perform individual acts of kindness in their neighborhoods throughout the day and week.

Residents and visitors are encouraged to share acts of kindness marking One Boston Day on Wednesday, honoring how the city came together in the days after the Boston Marathon bombing, 13 years ago.

Advertisement

The day will also include the annual memorials along Boylston Street.

“I hope everyone will join their neighbors today in honoring those we lost and celebrating the love that makes Boston a home for everyone,” Mayor Michelle Wu wrote in a statement.

“As spring arrives in Boston each year, we are reminded of the hope and spirit of our city,” said Bill Richard, who created a foundation in honor of his son, Martin, who was killed in the bombing.

Advertisement

How to get involved

The city of Boston and partner organizations are offering several ways for people to participate in One Boston Day and related events, according to the city:

  • Volunteer projects citywide: City departments will host service opportunities on April 15 and in the days leading up to Marathon Monday.
  • Neighborhood cleanup: A youth and family cleanup is scheduled for Saturday, April 18, at 9 a.m. at Franklin Park Playstead, organized by the Mayor’s Office of Civic Organizing. Volunteers are asked to register ahead of time.
  • Free ‘Stop the Bleed’ training: Virtual sessions will be held April 15 at noon and 6 p.m. to teach lifesaving bleeding control techniques, offered by the Stepping Strong Center at Brigham and Women’s Hospital.
  • Acts of kindness: Residents are encouraged to perform individual acts of kindness in their neighborhoods throughout the day and week.

`;
}

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

`;
}

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

Loading more articles…



Source link

Continue Reading

Trending