diff options
author | Akshay <[email protected]> | 2020-01-27 05:46:06 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-01-27 05:46:06 +0000 |
commit | ab6d72b78ef4ecb77715217b04aed09c0342a684 (patch) | |
tree | 09360775663c74ac25a7e2f8c698480d2ad6555d /script | |
parent | a5662df141f440af398923264ae43faf9019b357 (diff) |
remote js
Diffstat (limited to 'script')
-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 | } | ||