Capstone/ui/templates/script.templ

11 lines
235 B
Plaintext
Raw Normal View History

2023-10-28 10:45:47 -04:00
package templates
2023-10-28 11:15:42 -04:00
templ toggleNavBar() {
<script>
2023-10-28 10:45:47 -04:00
function toggleNavbar(collapseID) {
document.getElementById(collapseID).classList.toggle("hidden");
document.getElementById(collapseID).classList.toggle("block");
}
2023-10-28 11:15:42 -04:00
</script>
2023-10-28 10:45:47 -04:00
}