5,953
edits
No edit summary |
No edit summary |
||
Line 74: | Line 74: | ||
function drawerExpand(x) { | function drawerExpand(x) { | ||
var | var content = document.getElementById("drawer-content-"+x); | ||
var button = document.getElementById("drawer-button-"+x); | |||
if (content.style.display === "block") { | |||
var | content.style.display = "none"; | ||
if ( | button.innerHTML = "Expand"; | ||
} else { | } else { | ||
content.style.display = "block"; | |||
button.innerHTML = "Collapse"; | |||
} | } | ||
} | } |