-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (43 loc) · 1.32 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
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto" />
<title>HelpMate</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="sidebar">
<h1>HelpMate.</h1>
<div class="new-chat" onclick="createNewChat()">+ New Chat</div>
<div class="past-chats" id="past-chats"></div>
</div>
<div class="main" id="main">
<h2>Hi, I'm <span>HelpMate.</span></h2>
<div class="message-area" id="message-area"></div>
<!-- Message display area -->
</div>
<!-- Input area -->
<div class="chat-input">
<button class="upload-btn" onclick="triggerFileUpload()">📎</button>
<input
type="text"
id="chat-input"
placeholder="Message HelpMate......"
onkeypress="handleKeyPress(event)"
/>
<div id="file-preview-container"></div>
<button onclick="sendMessage()">➤</button>
<button class="chat-stop">⏹</button>
</div>
<input
type="file"
id="file-input"
style="display: none"
onchange="handleFileUpload(event)"
/>
<script src="front.js"></script>
<script src="backe.js"></script>
</body>
</html>