diff options
-rw-r--r-- | script/gotoId.js | 6 | ||||
-rw-r--r-- | script/showPost.js | 8 |
2 files changed, 0 insertions, 14 deletions
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 @@ | |||
1 | function gotoId() { | ||
2 | if ( window.location.hash ) { | ||
3 | let hash = window.location.hash.substring(1); | ||
4 | showPost(hash); | ||
5 | } | ||
6 | } | ||
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 @@ | |||
1 | function 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 | } | ||