This is an example HTML page where the snippet is included. unblu sessions are started using the Unblu activation elements. There are four different activation elements which are here integrated into a simple web page. The web page is only there to 'hold' the elements. In order to gain any benefit from these samples a developer might want to isolate each element and check what happens after clicking the element(s). For example, if you want to know what happens when you terminate a session, click on the 'Click to terminate the session' link and analyze the behavior to offer a clue as to how you might integrate these elements into your own web pages.
|All of the file/object/function names can be changed according to your needs.|
Create an HTML page.
Keep in mind that the snippet should be placed after the last meta tag in the head section, but before any other script. All of the other JSAPI consuming scripts must only appear after the snippet.
Include the snippet in your HTML file inside the head tag (using the appropriate location of the actual 'snippet.js' file within your project tree)
Following these steps you can use all of the activation elements that we currently support.
<a id="unblu_activation_element_start" href="#">Click to start</a>
<a id="unblu_activation_element_token" href="#">Click to start co-browsing</a>
<a id="unblu_activation_element_invitation" href="#">Click to invite someone for co-browsing</a>