Template:Navbox Example.

From Funkinchan
Revision as of 02:15, 3 October 2023 by Jedevari (talk | contribs)
Jump to navigationJump to search

<script>

   function toggleNavbox(element) {
       var content = element.parentElement.parentElement.nextElementSibling;
       if (content.style.display === "none" || content.style.display === "") {
           content.style.display = "block";
           element.textContent = "hide";
       } else {
           content.style.display = "none";
           element.textContent = "show";
       }
   }

</script>