-
Notifications
You must be signed in to change notification settings - Fork 0
/
referral_static.html
41 lines (40 loc) · 1.15 KB
/
referral_static.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Static Intake Example</title>
<style>
#wrapper {
width: 100%;
height: 100%;
min-height: 100vh;
}
iframe {
border-radius: 0 !important;
width: 100%!important;
height: 100vh!important;
}
</style>
</head>
<body>
<div
id="wrapper"
data-tf-widget="Oj4AEsQl"
data-tf-source="localhost"
data-tf-on-ready="onTypeformReady"
data-tf-on-submit="onTypeformSubmit"
data-tf-on-question-changed="onTypeformQuestionChanged"
data-tf-on-height-changed="onTypeformHeightChanged"
data-tf-on-close="onTypeformClose"
data-tf-on-ending-button-click="onTypeformEndingButtonClick"
></div>
<script src="https://embed.typeform.com/next/embed.js"></script>
<script>
function onTypeformSubmit(data) {
let redirectTarget = "https://screener.myfriendben.org/?referrer=bia&externalid="+data.responseId
window.location.href = redirectTarget
}
</script>
</body>
</html>