10x - Public Applications - LifeGoalQuiz

Public facing endpoints and integration instructions for the LifeGoalQuiz app and tools.

Index

Playground

Life Goal Quiz Playground

Endpoints


    UAT
    https://publicapps-uat.10x.co.za/dists/lifegoalquiz/lifegoalquiz.js

    Production
    https://publicapps-prod.10x.co.za/dists/lifegoalquiz/lifegoalquiz.js

How to use

Add a container div, the stylesheet, and the script to your page.

Initialize the tool by calling the initLifeGoalQuiz function on the window object.


<!DOCTYPE html>
    <html>
        <head>
            ...
            <link rel='stylesheet' href='https://publicapps-uat.10x.co.za//dists/lifegoalquiz/css/lifegoalquiz.min.css'>
        </head>
        ...
        <body>
            ...
            <div id='lifeGoalQuizEmbed'></div>
            ...
            <script src='https://publicapps-uat.10x.co.za/dists/lifegoalquiz/lifegoalquiz.js' type='text/javascript'></script>
            <script type='text/javascript'>
                var initialValues = { /* object containing initial values, see example below */ };
                function exitFunction (results) { /* function that executes when the user continues */ };
      
                window.initLifeGoalQuiz(initialValues, exitFunction);
            </script>
        </body>
    </html>
    

Initialization values

The initialize function requires an object with the following properties

{}

Exit values

The exit function will be called with an object with the following properties

{}

Example of Life Goal Quiz Playground --