summaryrefslogtreecommitdiff
path: root/www/js/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/utils.js')
-rw-r--r--www/js/utils.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/www/js/utils.js b/www/js/utils.js
index eeebadd..af0b479 100644
--- a/www/js/utils.js
+++ b/www/js/utils.js
@@ -190,3 +190,8 @@ function clock_init() {
function clock_add_callback(cb) {
clock.addCallback(cb);
}
+
+function locationHashValue() {
+ var hash = window.location.hash.match(/#([a-z]+)\/?.*/);
+ return hash ? hash[1] : '';
+}