forked from mluvii/customization
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patho2rozcestnik.html
145 lines (120 loc) · 3.65 KB
/
o2rozcestnik.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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!-- volba_v_rozcestniku -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Chatbot</title>
<link
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous"
/>
<style>
body {
background-color: white;
}
html, body {
height: 100%;
display: flex; flex-direction: column;
}
p {
color: white;
padding: 1rem;
}
.vertical-align-middle {
display: flex;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
}
#rozcestnik {
width: 100%;
max-height: 100%;
overflow: auto;
padding-bottom: 1rem;
}
.form-control,
.btn {
border-radius: 8px;
}
.btn {
background-color: rgb(51, 153, 204); /* Barva talčítka */
color: white; /* Barva textu tlačítka */
}
#buttons {
padding: 0.5rem;
/*position: absolute;
bottom: 0px;*/
width: 100%;
}
#text{
height: auto;
color: #142466;
padding-left: 6%;
padding-top: 3%;
padding-right: 3%;
padding-bottom: 1%;
text-align: center;
}
</style>
<script type="text/javascript">
window.onload = function() {
var form = document.getElementById("rozcestnik");
var operator = document.getElementById("operator");
operator.onclick = function(e) {
window.parent.postMessage(
{
type: "ADD_CUSTOM_DATA",
name: "volba_v_rozcestniku",
value: "operator"
},
"*"
);
window.parent.postMessage(
{
type: "ENQUEUE"
},
"*"
);
return false;
};
var chatbot = document.getElementById("chatbot");
chatbot.onclick = function(e) {
window.parent.postMessage(
{
type: "ADD_CUSTOM_DATA",
name: "volba_v_rozcestniku",
value: "chatbot"
},
"*"
);
window.parent.postMessage(
{
type: "ENQUEUE"
},
"*"
);
return false;
};
};
</script>
</head>
<body>
<div style="flex: 1; width: 100%; background-size: cover; background-position: center center;
background-image: url('https://feedboto2zapojenio2t4779.blob.core.windows.net/public/chatbot_o2_happy.png');">
</div>
<div id="text">
<!-- Hi, let me help you choose the right product to fit your needs or chat with our coffee expert! -->
Řešíte potíže s O2 TV? O2 GuruBot je tu pro vás. Poradí se zapojením televize a pomůže i se set-top boxem.
</div>
<div id="buttons" style="height: auto;">
<form id="rozcestnik">
<button id="chatbot" class="btn btn-block">Chci pomoc od GuruBota</button>
<p style="height: auto; color: #142466;text-align: center; margin-bottom: 0;">Potřebujete něco jiného? Než se GuruBot naučí i další služby, je tu pro vás živý operátor.</p>
<button id="operator" class="btn btn-block">Chci živého operátora</button>
</div>
</form>
</body>
</html>