From 3ec1bb430d8df19ee498881c4909192d45751b8d Mon Sep 17 00:00:00 2001 From: NerdyPepper Date: Tue, 30 Jul 2019 14:13:46 +0530 Subject: first generation --- script/showPost.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 script/showPost.js (limited to 'script') 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 @@ +function showPost(id) { + let post = document.getElementById(id); + if (post.style.display == "none") { + post.style.display = "block"; + } else { + post.style.display = "none"; + } +} + -- cgit v1.2.3