forked from scalableminds/chatroom
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
25 lines (25 loc) · 764 Bytes
/
Copy pathindex.html
File metadata and controls
25 lines (25 loc) · 764 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="./dist/Chatroom.css">
<link rel="stylesheet" type="text/css" href="./index.css">
<title>Chatroom Example</title>
</head>
<body>
<div class="chat-container"></div>
<script src="./dist/Chatroom.js"></script>
<script type="text/javascript">
window.chatroom = new window.Chatroom({
title: "Chat with a bot",
container: document.querySelector(".chat-container"),
welcomeMessage: "Nice to meet you.",
host: "http://localhost:5005",
speechRecognition: "en-US",
voiceLang: "en-US"
});
window.chatroom.openChat();
</script>
</body>
</html>