Show Hide Text

Editorial team makes use of a Show/Hide UI feature frequently. As part of the Arches conversion, the individual instances of this will be stripped. We need to rebuild this functionality in a way that makes it easy for editors to add these expand/collapse blocks. 

Attached is a version of the current code for reference.
`


<script language="javascript" type="text/javascript">

   function showHide(shID) {

      if (document.getElementById(shID)) {

         if (document.getElementById(shID + '-show').style.display != 'none') {

            document.getElementById(shID + '-show').style.display = 'none';

            document.getElementById(shID).style.display = 'block';

         }

         else {

            document.getElementById(shID + '-show').style.display = 'inline';

            document.getElementById(shID).style.display = 'none';

         }

      }

   }

</script>

TODO

  • Create Component ➕ 2023-07-10