-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
61 lines (56 loc) · 2.18 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebGPT</title>
<link rel="stylesheet" href="style.css" />
<!-- Using a single highlight.js theme (github-dark-dimmed) for code formatting -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/github-dark-dimmed.min.css" crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
<body>
<div class="chat-wrapper">
<!-- Chat header -->
<header class="chat-header">
<div class="flex-items-c-align-c gap-10">
<h1>WebGPT</h1>
<div class="token-counter">Tokens Used: <span id="token-counter">0</span></div>
</div>
</header>
<!-- Main chat container -->
<main id="chat-main">
<!-- Chat messages will be appended here -->
</main>
<!-- Input area -->
<footer id="input-container">
<textarea id="user-input" placeholder="Type your message here..." rows="1" autofocus></textarea>
<button id="send-button">
<!-- https://heroicons.com -->
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
style="height:25px; width:25px;"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M6 12 3.269 3.125A59.769 59.769 0 0 1 21.485 12 59.768 59.768 0 0 1 3.27 20.875L5.999 12Zm0 0h7.5"
/>
</svg>
</button>
</footer>
</div>
<!-- External Scripts -->
<!-- Markdown parser -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/4.3.0/marked.min.js"></script>
<!-- Syntax highlighter -->
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/highlight.min.js"></script>
<!-- Markdown formatting helper (assumed to be defined in this file) -->
<script src="markdownFormatter.js"></script>
<!-- Main application script -->
<script src="script.js" defer></script>
</body>
</html>