ADAM WIDGET INSTALLATION

To embed Adam chat widget:

1. include style sheet

2. include JS library

3. Create a container element with an ID

4. Initialize chat widget by calling AdamChat.init('adam-chat');,

1. pass in container element ID as the first argument

5. Adam chat button will be inserted into DOM with fixed position

example page with the widget embeded: https://test-chat.travtus.com/embeddable.html


<!DOCTYPE html>

    <html lang="en">

    <head>

        <meta charset="utf-8">

        <meta name="viewport" content="width=device-width, initial-scale=1.0">

        <title> Adam Widget</title>

        <link href="https://test-chat.travtus.com/assets/index.css" rel="stylesheet" type="text/css">
        <script src="https://test-chat.travtus.com/index.js?clientId=testclientid"></script>

    </head>

    <body>

        <div id="adam-chat"></div>

        <script>

             (function () {

                window.onload = function () {

                    AdamChat.init('adam-chat');        
                }

            })()

        </script>

    </body>

    </html>