diff options
Diffstat (limited to 'script/gotoId.js')
-rw-r--r-- | script/gotoId.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/gotoId.js b/script/gotoId.js new file mode 100644 index 0000000..991bf1d --- /dev/null +++ b/script/gotoId.js | |||
@@ -0,0 +1,6 @@ | |||
1 | function gotoId() { | ||
2 | if ( window.location.hash ) { | ||
3 | let hash = window.location.hash.substring(1); | ||
4 | showPost(hash); | ||
5 | } | ||
6 | } | ||