-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathindex.html
45 lines (45 loc) · 983 Bytes
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>IBM Watson Virtual Agent Chat Widget Demo</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
<style>
html {
height:100%;
margin: 0;
padding: 0;
width: 100%;
}
body {
height:100%;
margin: 0;
padding: 0;
background:#000;
text-align:center;
width: 100%;
}
#ibm_el {
margin: auto;
margin-top:5%;
display:block;
height:80%;
width:100%;
max-width:768px;
min-width:288px;
}
</style>
</head>
<body>
<div id="ibm_el"></div>
<script>
window.IBMChat.init({
el: 'ibm_el',
baseURL: 'https://api.ibm.com/virtualagent/run/api/v1/',
botID: '',
XIBMClientID: '',
XIBMClientSecret: ''
});
</script>
</body>
</html>