forked from microsoft/BotBuilder-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (36 loc) · 1.05 KB
/
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Web Chat: Customizing thru style options</title>
<script type="text/javascript" src="https://cdn.botframework.com/botframework-webchat/master/webchat.js"></script>
<style>
html, body { height: 100% }
body { margin: 0 }
#webchat,
#webchat > * {
height: 100%;
width: 100%;
}
</style>
</head>
<body>
<div id="webchat"></div>
<script>
const styleOptions = {
backgroundColor: 'Black',
bubbleBackground: '#222',
bubbleBorder: 'solid 1px #444',
bubbleBorderRadius: 20,
bubbleFromUserBackground: '#222',
bubbleFromUserBorder: 'solid 1px #444',
bubbleFromUserBorderRadius: 20,
bubbleFromUserTextColor: 'White',
bubbleTextColor: 'White'
};
window.WebChat.renderWebChat({
directLine: window.WebChat.createDirectLine({ secret: 'YOUR_BOT_SECRET_FROM_AZURE' }),
styleOptions
}, document.getElementById('webchat'));
</script>
</body>
</html>