From ab6d72b78ef4ecb77715217b04aed09c0342a684 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 27 Jan 2020 11:16:06 +0530 Subject: remote js --- script/gotoId.js | 6 ------ script/showPost.js | 8 -------- 2 files changed, 14 deletions(-) delete mode 100644 script/gotoId.js delete mode 100644 script/showPost.js (limited to 'script') diff --git a/script/gotoId.js b/script/gotoId.js deleted file mode 100644 index 991bf1d..0000000 --- a/script/gotoId.js +++ /dev/null @@ -1,6 +0,0 @@ -function gotoId() { - if ( window.location.hash ) { - let hash = window.location.hash.substring(1); - showPost(hash); - } -} diff --git a/script/showPost.js b/script/showPost.js deleted file mode 100644 index 75ffa1c..0000000 --- a/script/showPost.js +++ /dev/null @@ -1,8 +0,0 @@ -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