Vanity function for calculating URLs
authorJoey Schulze <joey@infodrom.org>
Sun, 9 Jun 2019 21:55:00 +0000 (23:55 +0200)
committerJoey Schulze <joey@infodrom.org>
Sun, 9 Jun 2019 21:55:00 +0000 (23:55 +0200)
src/infodrom.js

index 11e5db1..42bf6b7 100644 (file)
@@ -66,6 +66,12 @@ function make_editable(selector)
            callback: editable_callback
        });
 }
+
+function site_url(path)
+{
+    return SERVICE_ROOT + path;
+}
+
 (function($){
     $.fn.ltag = function() {
        return this.prop("tagName").toLowerCase();