Skip to content

Commit

Permalink
toggle?
Browse files Browse the repository at this point in the history
  • Loading branch information
CherrelleTucker committed Dec 30, 2024
1 parent 3933fc1 commit 7601435
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions _tabs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1391,10 +1391,17 @@ ul li {

<!-- JavaScript for card toggling -->
<script>

function toggleCard(button) {
button.classList.toggle('active');
const content = button.nextElementSibling;
content.classList.toggle('show');
}

/**
* Toggles the expanded/collapsed state of a card
* @param {HTMLElement} header - The header element that was clicked
*/
function toggleCard(header) {
// Toggle active class on header
header.classList.toggle('active');
Expand All @@ -1414,7 +1421,7 @@ function toggleCard(header) {
}
}
});
}
}*/

// Optional: Add keyboard navigation
document.addEventListener('keydown', function(event) {
Expand Down

0 comments on commit 7601435

Please sign in to comment.