function collapseSection(id,btn_id){
  let tgt = document.getElementById(id);
  let btn = document.getElementById(btn_id);

  if(tgt.style.display === "block"){
    tgt.style.display = "none";
    btn.innerHTML = "Expand";
  }else{
    tgt.style.display = "block";
    btn.innerHTML = "Collapse";
  }
}
/**
* toggles visibility of a content sections on the Docker UI
* @param {string} id of the section to toggle
* @param {string} btn_id id of the button calling this function
*/
toggles visibility of a content sections on the Docker UI
toggles visibility of a content sections on the Docker UI
function collapseSection(id,btn_id){
  let tgt = document.getElementById(id);
  let btn = document.getElementById(btn_id);
  if(tgt.style.display === "block"){
    tgt.style.display = "none";
    btn.innerHTML = "Expand";
  }else{
    tgt.style.display = "block";
    btn.innerHTML = "Collapse";
  }
}
function collapseSection ( id , btn_id ) { let tgt = document . getElementById ( id ) ; let btn = document . getElementById ( btn_id ) ; if ( tgt . style . display === "block" ) { tgt . style . display = "none" ; btn . innerHTML = "Expand" ; } else { tgt . style . display = "block" ; btn . innerHTML = "Collapse" ; } }
toggles visibility of a content sections on the Docker UI
toggles visibility of a content sections on the Docker UI