The University of North Carolina at Chapel Hill began offering a minor in Sexuality Studies in 2004. This minor is designed for students interested in exploring the study of sexuality in diverse cultures and historical periods.
The program is multidisciplinary, drawing on anthropology, art and art history, classics, cultural studies, economics, history, legal studies, literature, political science, psychology, religious studies, sociology, and women’s and gender studies to consider the varying ways human sexual identities and experiences have been and can be constructed and interpreted.
`;
// 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
//-----------------------------------------