MediaWiki:Minerva.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
/* All JavaScript here will be loaded for users of the MinervaNeue skin */
/* All JavaScript here will be loaded for users of the MinervaNeue skin */
// Template:TLP drawer
function TLPExpand(x) {
  var y = document.getElementById(x);
  if (y.style.display === "block") {
    y.style.display = "none";
    document.getElementById("tlp-button-text").innerHTML = "Expand";
  } else {
    y.style.display = "block";
    document.getElementById("tlp-button-text").innerHTML = "Collapse";
  }
}