-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.ejs
49 lines (49 loc) · 1.8 KB
/
index.ejs
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Bot Chat Embed Test</title>
<link href="https://unpkg.com/botframework-webchat/botchat.css" rel="stylesheet" />
<style>
.wc-chatview-panel {
width: 320px;
height: 500px;
position: relative;
}
</style>
</head>
<body>
<div>
<div style="width:320px; float:left;">
<h1>Config</h1>
<form method="post" action=".">
<p>
<label for="secret">App Secret</label>
<input id="secret" name="secret" type="text" style="width:300px;" value="<%= secret %>" placeholder="leave blank for TestBotV3"/>
</p>
<p>
<input type="submit"/>
</p>
</form>
<!--
<h1>Backchannel</h1>
<textarea id="message" rows="5" cols="40"></textarea>
<button onclick="sendMessage(document.getElementById('message').value)">Send Message To Bot</button>
-->
</div>
<div style="margin-left: 320px" id="BotChatGoesHere"/>
<div style="clear:both;"/>
</div>
<h2>Please report any issues with botchat on <a href="https://github.com/billba/botchat/issues">github</a></h2>
<script src="https://unpkg.com/botframework-webchat/botchat.js"></script>
<script>
BotChat.App({
directLine: {
token: "<%= token %>"
},
user: { id: 'botchattest' },
bot: { id: 'yourbot' },
}, document.getElementById("BotChatGoesHere"));
</script>
</body>
</html>