-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTheKarmaApp.html
More file actions
76 lines (76 loc) · 3.1 KB
/
TheKarmaApp.html
File metadata and controls
76 lines (76 loc) · 3.1 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html>
<head>
<title>The Karma App</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="https://cdn.jsdelivr.net/gh/space10-community/conversational-form@1.0.1/dist/conversational-form.min.js" crossorigin></script>
<script type="text/javascript">
window.onload = function() {
var flowCallback = function(dto, success, error) {
window.incrementedValue++;
window.ConversationalForm.addTags([
{
tag: "input",
type: "text",
name: "ask",
id: "ask",
"cf-questions": dto.text,
"cf-input-placeholder": "Type here"
}
]);
success();
};
var conversationalForm = window.cf.ConversationalForm.startTheConversation({
formEl: document.getElementById("form"),
context: document.getElementById("cf-context"),
flowStepCallback: flowCallback,
submitCallback: function() {
conversationalForm.addRobotChatResponse("Alright, you are done. Here is the Result");
var formDataSerialized = conversationalForm.getFormData(true);
console.log("Formdata, serialized:", formDataSerialized);
conversationalForm.addRobotChatResponse("Check the dev console for FormatData output." + formDataSerialized.states + formDataSerialized.districts);
}
});
};
</script>
<style type="text/css">
#form {
height: 0px;
overflow: hidden;
}
#cf-context {
width: 100vw;
height: 60vh;
}
</style>
</head>
<body>
<br/>
<div>
<h1 style="font-weight: 150;text-align: center;font-family: 'Roboto', sans-serif;"><b>The Karma App</b></h1>
<h4 style="font-weight: 100;text-align: center;font-family: 'Roboto', sans-serif;">From Karma nobody can hide, so be sure to be on a good side.</h4>
</div>
<br/>
<div>
<form id="form" cf-form>
<input type="text" name="ask" id="ask" cf-questions="Karma, && Everything you do comes back to you! && Would you like to test it?" cf-input-placeholder="Type here"/>
<input type="text" name="ask" id="ask" cf-questions="Karma, && Everything you do comes back to you! && Would you like to test it?" cf-input-placeholder="Type here"/>
</form>
<div id="cf-context" role="cf-context" cf-context></div>
</div>
<br/>
<div>
<h4 style="font-weight: 100;text-align: center;font-family: 'Roboto', sans-serif;">Inspired from</h4>
<h4 style="font-weight: 100;text-align: center;font-family: 'Roboto', sans-serif;">The Karma priniciple</h4>
</div>
<br/>
<hr/>
<br/>
<h6 style="text-align: center;font-family: 'Roboto', sans-serif;"><b> PRIVACY POLICY </b> : We don't store your data, period.</h6>
<h6 style="text-align: center;font-family: 'Roboto', sans-serif;">Made with ❤️ in India!</h6>
<h6 style="text-align: center;font-family: 'Roboto', sans-serif;"><a href="index.html">vickysam</a></h6>
</body>
</html>