Connect with us

Maryland

Loyola University Maryland acknowledges historical ties to slavery, calls for continued examination – Catholic Review

Published

on

Loyola University Maryland acknowledges historical ties to slavery, calls for continued examination – Catholic Review


Loyola University Maryland officially acknowledged its historical ties to slavery with the Jan. 17 release of a comprehensive 27-page report detailing the Baltimore university’s connections to the slave trade. 

The report notes that the connections between slavery and Jesuit higher education first came to national attention in 2016 when a New York Times story detailed the ways Georgetown University in Washington, D.C., benefitted from the proceeds of the 1838 sale of 272 African American men, women and children who were enslaved by the Maryland Province of the Jesuits.

Loyola was among those Catholic institutions of the Maryland Province to benefit from the sale of the slaves, known as the “GU272.” 

A 12-member task force, comprising Loyola undergraduate students, faculty, staff and descendants of slaves sold by the Jesuits, found direct financial connections between Loyola’s founding in 1852 and the sale of the 272 enslaved people in 1838. 

Advertisement
Terrence M. Sawyer holds a bust of St. Ignatius Loyola, presented to him by Baltimore Bishop Emeritus Denis J. Madden at Sawyer’s Oct. 12, 2022 inauguration as president of Loyola University Maryland in Baltimore. He supported the formation of a task force to study the school’s ties to slavery. (Kevin J. Parks/CR Staff)

It highlighted instances where Loyola Jesuits rented enslaved individuals between July 1855 and December 1860, indicating that the university was a likely beneficiary of slave labor.

The research uncovered Loyola’s involvement with the Confederacy during the Civil War, with 22 students, faculty or staff joining the Confederate forces. The university hosted prominent Confederate sympathizers associated with the “Lost Cause” ideology in the late 19th century.

When Loyola launched the task force in December 2021, it formally joined Universities Studying Slavery (USS), a consortium of more than 90 institutions examining their ties to slavery, the report said.

Loyola’s president, Terrence Sawyer, convened the formation of the task force when he was the incoming president. He was joined by then-acting President Amanda M. Thomas.

Mélisande Short-Colomb, a research and community engagement associate at Georgetown University, was one of the members of the task force. She is descended from two of the enslaved people sold by the Jesuits. She feels deeply connected to her ancestors through a lineage spanning 12 generations, she said.

Advertisement

“As a product of this rich heritage, I possess a thorough understanding of my identity and family history,” Short-Colomb said, noting the importance of acknowledging the legacy and impact of slavery not only from an institutional but also from a spiritual and moral perspective.

Short-Colomb believes Loyola’s acknowledgment marks a significant step, as it becomes the first Jesuit school after Georgetown to acknowledge publicly its link to the historical slave sale.

Georgetown has taken steps toward reconciliation, including a financial contribution to a foundation aiding descendants of those sold.

Loyola’s task force recommended several tangible ways Loyola can respond to its uncovered history. Just a few of those recommendations include the establishment of a university-wide initiative that continues Loyola’s examination of its connections to slavery and its legacies; engaging in a “comprehensive re-telling of Loyola’s story” and honoring the GU272 ancestors and other individuals whose contributions to Loyola have gone previously unacknowledged or uncelebrated.

The task force recommended renaming Loyola’s Jenkins Hall and the Jenkins Society, both of which are named in honor of George Carrell Jenkins, a Confederate soldier and advocate of the Lost Cause. It also suggested making Loyola accessible to members of the GU272 descendant community and expanding Loyola’s support for existing campus initiatives focused on diversity, equity, inclusion and justice. 

Advertisement

According to a statement on Loyola’s website, the university will consider the report’s recommendations as part of the university’s next strategic plan, which it said is positioned for adoption and implementation in Spring 2024.

Lynn Locklear Nehemiah, a retired dentist and active nonprofit worker who serves as vice-chair of the White Marsh Historical Society and is a member of the Loyola task force, underlined the necessity for universities to educate students about the historical impact of slavery in order to build a more empathetic society.

Nehemiah’s family includes her third-great-grandmother, Louisa Mahoney Mason, who was one of the last Jesuit slaves to be freed in 1864.

Nehemiah applauded the university’s commitment to the process and conversation, expressing pride in the collaborative work.

“I think Loyola has taken a very bold step, acknowledging their ties and honoring our ancestors and their contributions,” said Nehemiah, further emphasizing that Loyola has set a good example for other schools. Studying the past benefits all of society and the Catholic community, she said.

Advertisement

“This is really about healing,” she said, “healing the soul of the university, healing the soul of the church and on our part, forgiveness.”

David Carey Jr., Loyola’s Doehler Chair in History, and a task force member, expressed the university’s intention to continue the conversation and collaborate with descendants, especially Black residents in Baltimore.

Carey, a parishioner of St. Ignatius in Baltimore, said Loyola’s research is just the beginning.

“The goal is to open our campus, creating an inclusive environment and working toward racial justice within our own community,” he said.

To further delve into the complexities of Loyola’s history with slavery, Carey said a more detailed 334-page book titled “Untold Truths: Exposing Slavery and Its Legacies at Loyola” is scheduled to be published in April by Loyola-based Apprentice House Press.

Advertisement

Short-Colomb highlighted ongoing efforts toward reparations through initiatives such as the Descendants Truth and Reconciliation Fund (DTRF) and the Thurgood Marshall College Fund (TMCF), which announced the establishment of a scholarship program aimed at supporting descendants of Jesuit and Catholic slaveholding in the United States.

The initiative spans early childhood education through post-secondary education, promoting truth, racial healing and reconciliation in various communities.

Administered by the TMCF, the program provides annual, need-based scholarships of up to $10,000 to eligible descendants for their college expenses.

“In taking ownership of our past,” the Loyola task force report said, “we are asserting that there is no guarantee of a more just future. Instead, we are calling our community to work for it.” 

The Archdiocese of Baltimore has also formed a 17-member commission to research its ties to slavery going back hundreds of years.

Advertisement

“This important commission is being formed to continue the archdiocese’s journey to racial justice,” said Archbishop William E. Lori, who has written two pastoral letters on racial justice. “It is essential that we continue to acknowledge the ties to slavery the archdiocese has had in its past and within its foundational history.”

George Matysek Jr. contributed to this story.

Email Adriana Montes at amontes@CatholicReview.org

Read More Racial Justice

Copyright © 2024 Catholic Review Media



Source link

Advertisement

Maryland

Deadly motorcycle crash closes busy stretch of Connecticut Avenue in Montgomery Co. – WTOP News

Published

on

Deadly motorcycle crash closes busy stretch of Connecticut Avenue in Montgomery Co. – WTOP News


A deadly crash involving a motorcycle shut down a stretch of Connecticut Avenue in Chevy Chase, Maryland, early Tuesday.

A deadly crash involving a motorcycle shut down a stretch of Connecticut Avenue in Chevy Chase, Maryland, early Tuesday.

Montgomery County police said officers responded around 6:15 a.m. to a report of a crash involving a car and a motorcycle at Manor Road and Connecticut Avenue.

A motorcyclist was found in serious condition. Police said the man died at the scene.

Advertisement

A woman driving the car was hospitalized with minor injuries.

Connecticut Avenue is closed in both directions between Jones Bridge Road and Manor Road as police investigate the collision.

The crash is the latest in a series of deadly motorcycle incidents across Maryland, including a deadly hit-and-run in Charles County that left one man dead Saturday.

A map of the area is below.

CLICK MAP FOR THE LATEST ROAD CONDITIONS FROM THE WTOP TRAFFIC CENTER: Map shows closure of Connecticut Avenue in both directions, south of Interstate 495 in Chevy Chase, Md.

Get breaking news and daily headlines delivered to your email inbox by signing up here.

Advertisement

© 2026 WTOP. All Rights Reserved. This website is not intended for users located within the European Economic Area.



Source link

Continue Reading

Maryland

Maryland House passes bill to end automatic charging of some juveniles as adults

Published

on

Maryland House passes bill to end automatic charging of some juveniles as adults


Maryland lawmakers have approved a bill that would end the automatic charging of certain juveniles as adults and is now on its way to the governor’s office for review.

The Youth Charging Reform Act passed the House of Delegates on Monday after clearing the Senate last week. The bill aims to end the automatic charging of 16- and 17-year-olds as adults for certain drug, assault, and gun offenses.

ALSO READ | Bill to end automatic charging of some juveniles as adults inches closer to passage

The bill drew significant opposition from several top prosecutors in Maryland, including Baltimore City State’s Attorney Ivan Bates, Prince George’s County State’s Attorney Tara Jackson, Montgomery County State’s Attorney John McCarthy, and Anne Arundel County State’s Attorney Anne Colt Leitess.

Advertisement

For months, they’ve warned that the change could weaken accountability and pose public safety risks.

“DJS is not equipped to deal with these increased violent offenders, and the legislature should defer the implementation of this bill until the programs are in place,” McCarthy said.

Maryland sheriffs also joined the pushback, including Carroll County Sheriff Jim Dewees, who previously said, “This is not a smart move, by any means, I don’t like it because, and I think by and large, law enforcement doesn’t like it, because we don’t have a whole lot of trust in the juvenile court system and the DJS system.”

ALSO READ | FOX45 sends video of prosecutors’ concerns to lawmakers backing juvenile justice bill

Supporters of the bill argued that most cases end up in the juvenile system regardless, and therefore, it makes sense to start them in the Department of Juvenile Services.

Advertisement

“They’re already ingesting that work anyway; they’re already doing that workload anyway,” Sen. Will Smith, lead sponsor of the legislation, previously told FOX45 News. “We’re just wasting time and money by sending them to the adult system first.”

Comment with Bubbles

JOIN THE CONVERSATION (6)

The bill now awaits at Gov. Wes Moore’s desk for a final decision.



Source link

Advertisement
Continue Reading

Maryland

B-W Parkway to close for bridge replacement

Published

on

B-W Parkway to close for bridge replacement


WBAL

Maryland Route 295

Advertisement

SOURCE: WBAL

Advertisement

Baltimore-Washington Parkway, exit ramps to close in Jessup for bridge replacement

WBAL logo

Updated: 10:31 AM EDT Apr 6, 2026

Editorial Standards

Advertisement

A portion of the Baltimore-Washington Parkway will close for two weekends in Jessup, where a bridge will be demolished.Check our LIVE traffic map and cameras in the WBAL-TV 11 News appThe Maryland State Highway Administration said Maryland Route 295 ramps will close, weather permitting, at Maryland Route 175 for an interchange reconstruction project.Southbound MD 295 will close between Maryland Routes 100 and 32 starting at 10 p.m. on April 10 until 5 a.m. on April 13 with the following lane and ramp closures.Both ramps from MD 100 onto southbound MD 295.Both ramps from Arundel Mills Boulevard onto southbound MD 295.Southbound MD 295 ramp to eastbound and westbound MD 175.Westbound MD 175 ramp to southbound MD 295.Northbound MD 295 will close between Maryland Routes 32 and 100 starting at 10 p.m. on April 17 until 5 a.m. on April 20 with the following ramp closures.Both ramps from MD 32 onto northbound MD 295.Eastbound MD 175 ramp to northbound MD 295.Northbound MD 295 ramp to eastbound and westbound MD 175.The mainline MD 175 lanes on the new bridge will remain open to traffic. The SHA said signs will be posted for detours to include MD 100, Interstate 95 and MD 32. Those going to Baltimore-Washington International Thurgood Marshall Airport are advised to use alternate north-south routes such as I-95, U.S. Route 1 or I-97 to reach I-195.The overall interchange reconstruction project completion is scheduled for Fall 2027, schedule and weather permitting.

A portion of the Baltimore-Washington Parkway will close for two weekends in Jessup, where a bridge will be demolished.

Advertisement

The Maryland State Highway Administration said Maryland Route 295 ramps will close, weather permitting, at Maryland Route 175 for an interchange reconstruction project.

Southbound MD 295 will close between Maryland Routes 100 and 32 starting at 10 p.m. on April 10 until 5 a.m. on April 13 with the following lane and ramp closures.

  • Both ramps from MD 100 onto southbound MD 295.
  • Both ramps from Arundel Mills Boulevard onto southbound MD 295.
  • Southbound MD 295 ramp to eastbound and westbound MD 175.
  • Westbound MD 175 ramp to southbound MD 295.

Northbound MD 295 will close between Maryland Routes 32 and 100 starting at 10 p.m. on April 17 until 5 a.m. on April 20 with the following ramp closures.

  • Both ramps from MD 32 onto northbound MD 295.
  • Eastbound MD 175 ramp to northbound MD 295.
  • Northbound MD 295 ramp to eastbound and westbound MD 175.

The mainline MD 175 lanes on the new bridge will remain open to traffic.

The SHA said signs will be posted for detours to include MD 100, Interstate 95 and MD 32.

Advertisement

Those going to Baltimore-Washington International Thurgood Marshall Airport are advised to use alternate north-south routes such as I-95, U.S. Route 1 or I-97 to reach I-195.

The overall interchange reconstruction project completion is scheduled for Fall 2027, schedule and weather permitting.

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

Advertisement

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

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

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

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

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

Advertisement

var location = { zip: window.DEFAULT_ZIPCODE };

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

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

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

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

Advertisement

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

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

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

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

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

Advertisement

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

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

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

updateWeatherBackground(weatherData.current.icon_name);
}
}

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

Advertisement

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

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

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

`;
}

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

Loading more articles…

Advertisement



Source link

Continue Reading

Trending