-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
52 lines (51 loc) · 2.47 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
<!-- index.html -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Chat Window</title>
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="ros-pine-moon.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.0/highlight.min.js"></script>
</head>
<body>
<div class="chat-container">
<div class="messages-container" id="messages-container">
<!-- Chat messages will be appended here -->
</div>
<div class="input-container">
<textarea name="message-input" id="input-message" rows="5" placeholder="Type your message..."></textarea>
<button id="send-message">Send</button>
<button id="clear-messages">Clear</button>
<button id="settings-button">Settings</button>
<button id="show-history">History</button>
</div>
<!-- Add the settings dialog modal -->
<div id="settings-dialog" class="modal" hidden>
<div class="modal-content">
<div class="theme-toggle">
<span id="theme-icon"></span>
<label class="switch">
<input type="checkbox" id="darkThemeToggle">
<span class="slider"></span>
</label>
</div>
<button id="settings-dialog-close">OK</button> <!-- Move the button here and change the text -->
<!-- Add a role selection dropdown inside settings-dialog -->
<div class="role-selection">
<label for="role-dropdown">Choose a role:</label>
<select id="role-dropdown">
<option value="user" selected>User</option>
<option value="system">System</option>
</select>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/marked.min.js"></script> <!-- Include marked library -->
<script src="config.js"></script>
<script src="renderer.js"></script>
</body>
</html>