aboutsummaryrefslogtreecommitdiff
path: root/script/gotoId.js
diff options
context:
space:
mode:
Diffstat (limited to 'script/gotoId.js')
-rw-r--r--script/gotoId.js6
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 @@
1function gotoId() {
2 if ( window.location.hash ) {
3 let hash = window.location.hash.substring(1);
4 showPost(hash);
5 }
6}