function toggleReferencedSection()

in _includes/index/index.js [7:24]


function toggleReferencedSection( parentId, expand )
{
  console.log( "toggleReferencedSection(): parentId=" + parentId + " expand=" + expand);
  if (parentId !== ""){
    sectionName = parentId.replace("index", "section");
    //console.log( "toggleReferencedSection(): sectionName=" + sectionName);
    sectionHeader = document.getElementById(sectionName);
    section = sectionHeader.nextElementSibling;
    if(expand){
          sectionHeader.style.backgroundImage = "url('../images/elements/circle-minus.png')";
          section.style.display = "block";
    }
    else{
          sectionHeader.style.backgroundImage = "url('../images/elements/circle-plus.png')";
          section.style.display = "none";
    }
  }
}