aboutsummaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-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