RouteNavigation Module
I am the RouteNavigation.
I parse the query and the hash fragment of the current URL, and expose those parameters to the app. Also, I listen to changes in the hash fragment, and can call callbacks for them.
Item Index
Methods
Methods
checkEnvironment
()
private
I return an object with various info about the execution environment.
Returns:
Object
getHashVariable
-
variable
I return the value of a hash parameter.
Parameters:
-
variable
String
Returns:
String
getQueryVariable
-
variable
I return the value of a query parameter.
Parameters:
-
variable
String
Returns:
String
getResourceURL
-
src
I return a complete path (or URL) for a resource file based on the src attribute of a resource object.
Parameters:
-
src
String
Returns:
String
routeHasChanged
()
private
I update the application state, when the hash fragment has changed.
Currently, I am only listing to changes of the parameter "annotations" and "t" (hashTime).
setHashVariable
-
id
I set the hypervideo id (in case it changes while the application is running).
Parameters:
-
id
String
Attributes
onAnnotationChange
Function
NOT USED YET
Will be called, when the hash fragment's annotationID changes.