// Example script to toggle the 'open' class
document.querySelectorAll('h3.collapsible').forEach(function(header) {
header.addEventListener('click', function() {
header.classList.toggle('open'); // toggles rotation class
// toggle content display if you want it
var content = header.nextElementSibling;
if (content && content.classList.contains('content')) {
if (content.style.display === 'block') {
content.style.display = 'none';
} else {
content.style.display = 'block';
}
}
});
});