-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (41 loc) · 1.33 KB
/
Copy pathindex.html
File metadata and controls
43 lines (41 loc) · 1.33 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="styles.css" />
<title>Ask Scott Alexander</title>
</head>
<body>
<div class="container">
<h1 class="ask-scott-title">Ask Scott Alexander</h1>
<br />
<div class="chat-container">
<div class="chat-history" id="chat-history"></div>
<p class="hint">Please be patient while waiting for a response.</p>
<div class="input-container">
<input
type="text"
id="chat-input"
placeholder="Type your message..."
/>
<script>
document
.getElementById("chat-input")
.addEventListener("keydown", function (event) {
if (event.key === "Enter") {
event.preventDefault();
document.getElementById("send-btn").click();
}
});
</script>
<button id="send-btn">Send</button>
</div>
</div>
<button id="refresh-btn">New Chat</button>
<a href="about.html" style="float: right; margin-right: 10px">About</a>
</div>
<script src="scripts.js"></script>
</body>
</html>