Public facing endpoints and integration instructions for the LifeGoalQuiz app and tools.
UAT
https://publicapps-uat.10x.co.za/dists/lifegoalquiz/lifegoalquiz.js
Production
https://publicapps-prod.10x.co.za/dists/lifegoalquiz/lifegoalquiz.js
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>
The initialize function requires an object with the following properties
{}
The exit function will be called with an object with the following properties
{}