MediaWiki:Mobile.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 37: Line 37:
       y.style.display = "none";
       y.style.display = "none";
     }
     }
}
// 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";
  }
}
}