TAG_embed Class
The end user should include this file in their website. Calling TAG_embed with the appropriate inputs will create the TAG embedding in an iframe, using the demo.html file as the iframe source.
Constructor
TAG_embed
-
tagInput
-
path
-
containerId
-
serverIp
-
width
-
height
-
allowServerChange
-
hiddenCollections
Parameters:
-
tagInput
Objectthe following property inputs are the properties of tagInput
-
path
Propertyrelative path from your html file to the TAG directory (e.g., './a/b/TAG')
-
containerId
Propertythe id of the div in which you want to embed TAG
-
serverIp
Propertythe ip adress of the server to which you want to connect
-
width
Propertythe desired width of TAG
-
height
Propertythe desired height of TAG
-
allowServerChange
Propertyshould a button be shown on the splash screen that allows server change?
-
hiddenCollections
Propertya list of collection IDs for published collections to be hidden
Item Index
Methods
browserVersion
()
Get the current browser version Borrowed from http://stackoverflow.com/questions/5916900/detect-version-of-browser
registerTelemetry
-
element
-
etype
-
ttype
Register an element with the telemetry module
telemetryRequests
()
Make a request to the telemetry server using the requests variable