A way for students, faculty, and community members to come together to learn and be in a community with one another! It's an opportunity to learn about academic conversations and theories that queer gender/gendered experiences, a chance to speak out … Read more
This event will take place from 8:30 a.m. – 1:30 p.m. on Friday, March 21st in Durham, NC. The purpose of the event is to celebrate over 30 years of Reproductive Justice, reflect on RJ’s legacy, and come together to … Read more
`;
// Append the search bar container after the menu
menu.parentNode.insertBefore(searchBarContainer, menu.nextSibling);
// Create the search icon button and append it to the menu
var searchLi = document.createElement('li');
searchLi.className = 'menu-search-icon';
searchLi.innerHTML = `
`;
menu.appendChild(searchLi);
// Find the button and search bar container
var searchIconLink = document.getElementById('searchIconLink');
var searchBar = document.getElementById('searchBarContainer');
// Add click event listener to the search icon button
searchIconLink.addEventListener('click', function () {
var isExpanded = searchIconLink.getAttribute('aria-expanded') === 'true';
searchIconLink.setAttribute('aria-expanded', !isExpanded);
searchBar.style.display = isExpanded ? 'none' : 'flex';
searchIconLink.setAttribute('aria-label', isExpanded ? 'Open search bar' : 'Close search bar');
});
});
//-----------------------------------------
// Content Template: search-menu-item - end
//-----------------------------------------