5,953
edits
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
// Template:TLP drawer | // Template:TLP drawer | ||
function TLPExpand( | function TLPExpand(w) { | ||
var | var x = document.getElementById(w); | ||
var | var y = "tlp-button-text-".concat(w); | ||
if ( | var z = document.getElementById(y); | ||
if (x.style.display === "block") { | |||
x.style.display = "none"; | |||
z.innerHTML = "Expand"; | z.innerHTML = "Expand"; | ||
} else { | } else { | ||
x.style.display = "block"; | |||
z.innerHTML = "Collapse"; | z.innerHTML = "Collapse"; | ||
} | } | ||
} | } |