MediaWiki:Minerva.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 62: Line 62:
   var y = "drawer-".concat(x); //outputs something like "drawer-1"
   var y = "drawer-".concat(x); //outputs something like "drawer-1"
   var z = document.getElementById(y); //outputs something like document.getElementById("drawer-1")
   var z = document.getElementById(y); //outputs something like document.getElementById("drawer-1")
   var a = "drawer-button".concat(x); //outputs something like "drawer-button-1"
   var a = "drawer-button-".concat(x); //outputs something like "drawer-button-1"
   var b = document.getElementById(a); //outputs something like document.getElementById("drawer-button-1")
   var b = document.getElementById(a); //outputs something like document.getElementById("drawer-button-1")
   if (z.style.display === "block") {
   if (z.style.display === "block") {