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:
-
tagInputObjectthe following property inputs are the properties of tagInput
-
pathPropertyrelative path from your html file to the TAG directory (e.g., './a/b/TAG')
-
containerIdPropertythe id of the div in which you want to embed TAG
-
serverIpPropertythe ip adress of the server to which you want to connect
-
widthPropertythe desired width of TAG
-
heightPropertythe desired height of TAG
-
allowServerChangePropertyshould a button be shown on the splash screen that allows server change?
-
hiddenCollectionsPropertya 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
