aboutsummaryrefslogtreecommitdiff
path: root/script/showPost.js
diff options
context:
space:
mode:
authorNerdyPepper <[email protected]>2019-07-30 09:43:46 +0100
committerNerdyPepper <[email protected]>2019-07-30 09:43:46 +0100
commit3ec1bb430d8df19ee498881c4909192d45751b8d (patch)
treed0efa8f3d875b6122bce9358c18d222647f231be /script/showPost.js
parent4e9883d799fcf08f68a30fba78e734d1978c5f09 (diff)
first generation
Diffstat (limited to 'script/showPost.js')
-rw-r--r--script/showPost.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/script/showPost.js b/script/showPost.js
new file mode 100644
index 0000000..07a9719
--- /dev/null
+++ b/script/showPost.js
@@ -0,0 +1,9 @@
1function showPost(id) {
2 let post = document.getElementById(id);
3 if (post.style.display == "none") {
4 post.style.display = "block";
5 } else {
6 post.style.display = "none";
7 }
8}
9