-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.html
47 lines (45 loc) · 1.59 KB
/
home.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
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.0.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Ubuntu&display=swap" rel="stylesheet">
<title>
Your Event Partner - ChatBot
</title>
<link rel="stylesheet" href="Chatroom.css" />
<style>
.chat-container {
font-family: 'Ubuntu', sans-serif;
width: 370px;
position: absolute;
bottom: 8px;
right: 10px;
font-size: 12px;
}
</style>
</head>
<body>
<div class="chat-container"></div>
<script src="Chatroom.js"/></script>
<script type="text/javascript">
var chatroom = window.Chatroom({
host: "http://localhost:5021",
title: "Chat with Eve",
fontFamily: 'Ubuntu',
container: document.querySelector(".chat-container"),
welcomeMessage: "Hi I am Eve, How may I Help you?",
speechRecognition: "en-US",
height: "50px",
fontSize: "10px"
});
console.log(chatroom);
$(document).ready(function() {
setTimeout(function(){
console.log(chatroom);
chatroom.openChat();
}, 1000);
//document.getElementById("input_text").value = "Hi";
document.getElementById("submit_input").click();
});
</script>
</body>
</html>