Last active
December 11, 2015 15:24
-
-
Save merih/de8299b0b97b9c6597cb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function () { | |
document.getElementById("files").addEventListener("click", function (ev) { | |
if (ev.target.classList.contains("file-header")) { | |
ev.preventDefault(); | |
var fileBody = ev.target.nextElementSibling; | |
if (fileBody.classList.contains("zpl-hidden")) { | |
fileBody.classList.remove("zpl-hidden"); | |
fileBody.style.display = "block"; | |
} else { | |
fileBody.classList.add("zpl-hidden"); | |
fileBody.style.display = "none"; | |
} | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment