This namespace contains general utility functions and data.
Methods
-
getQueryParameter(name) → {string}
-
Get the value of a query string parameter.
Parameters:
Name Type Description name
string The name of the query string parameter to retrieve
Returns:
The value of the query string parameter or undefined if it was not found
- Type
- string
-
getRelativeUrl(path) → {string}
-
Get the relative URL for the specified path relative to our page URL. For example, if the page URL is 'http://mydomain.com:8080/app/test.html' and you want the relative 'audio' path, it will return 'http://mydomain.com:8080/app/audio/'. The returned path will always end in a '/' path separator.
Parameters:
Name Type Description path
string The path that we want as the relative to our page url
Returns:
The relative URL
- Type
- string