packages/demo-html/public/callbacks.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Static HTML Demo</title>
<style>
#wrapper {
width: 600px;
height: 400px;
margin: 0 auto;
}
</style>
</head>
<body>
<script>
function onTypeformReady() {
alert('onReady')
}
function onTypeformSubmit() {
alert('onSubmit')
}
function onTypeformQuestionChanged() {
alert('onQuestionChanged')
}
</script>
<div
id="wrapper"
data-tf-widget="moe6aa"
data-tf-source="localhost"
data-tf-on-ready="onTypeformReady"
data-tf-on-submit="onTypeformSubmit"
data-tf-on-question-changed="onTypeformQuestionChanged"
></div>
<script src="./lib/embed-next.js"></script>
</body>
</html>