Independent line for BotServer.
This commit is contained in:
parent
eee48ee520
commit
633cab410d
3 changed files with 679 additions and 0 deletions
591
deploy/line.gbui/botchat.css
Normal file
591
deploy/line.gbui/botchat.css
Normal file
File diff suppressed because one or more lines are too long
35
deploy/line.gbui/botchat.js
Normal file
35
deploy/line.gbui/botchat.js
Normal file
File diff suppressed because one or more lines are too long
53
deploy/line.gbui/index.html
Normal file
53
deploy/line.gbui/index.html
Normal file
|
@ -0,0 +1,53 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<title>Independent line for General Bots based on BOT Framework Webchat Control</title>
|
||||
|
||||
<link href="botchat.css" rel="stylesheet" />
|
||||
|
||||
<style>
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="botPlaceholder"></div>
|
||||
<script src="botchat.js"></script>
|
||||
<script>
|
||||
const params = BotChat.queryParams(location.search);
|
||||
const user = {
|
||||
id: params['userid'] || 'userid',
|
||||
name: params['username'] || 'username'
|
||||
};
|
||||
const bot = {
|
||||
id: params['botid'] || 'botid',
|
||||
name: params['botname'] || 'botname'
|
||||
};
|
||||
window['botchatDebug'] = params['debug'] && params['debug'] === 'true';
|
||||
BotChat.App({
|
||||
bot: bot,
|
||||
locale: params['locale'],
|
||||
resize: 'window',
|
||||
sendTyping: true,
|
||||
user: user,
|
||||
locale: 'en-us',
|
||||
directLine: {
|
||||
secret: params['s'],
|
||||
token: params['t'],
|
||||
domain: params['domain'],
|
||||
webSocket: params['webSocket'] && params['webSocket'] === 'true' // defaults to true
|
||||
}
|
||||
}, document.getElementById('botPlaceholder'));
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Add table
Reference in a new issue