-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
101 lines (91 loc) · 4.3 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Waylay IBOT</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="images/bot.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/lipis/[email protected]/css/flag-icons.min.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,[email protected],100..700,0..1,-50..200" />
<link rel="stylesheet" href="https://unpkg.com/tippy.js@6/dist/tippy.css">
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/markdown.css" />
</head>
<body>
<img id="avatar" class="avatar" alt="Avatar">
<div id="introFrame">
<img id="introImage" style='height: 100%; width: 100%; object-fit: contain'>
</div>
<div id="logModal" class="modal">
<div class="modal-content log">
<span id="close-log" class="close">×</span>
<h2>Logs</h2>
<input type="text" id="searchInput" placeholder="Search logs..." style="width: 100%; padding: 10px; margin-bottom: 20px;">
<ul id="logList"></ul>
</div>
</div>
<div id="systemModal" class="modal">
<div id="systemModal-c" class="modal-content">
<span id="close-sys" class="close">×</span>
<h2>System prompt</h2>
<textarea id="systemTextArea" class="text-area"></textarea>
<br><br>
<button id="submitBtn" class="submitBtn">Update</button>
</div>
</div>
<div id="popup"></div>
<div class="container" id="content">
<div class="sidebar" id="sidebar">
<div class="sidebar-content">
<div class="card-container" id="card-container"> </div>
</div>
</div>
<div class="toggle-btn" onclick="toggleSidebar()">☰</div>
<!-- Chats container -->
<div class="chat-container"></div>
</div>
<!-- Typing container -->
<div class="typing-container">
<div class="typing-content">
<div class="typing-textarea">
<textarea id="chat-input" spellcheck="false" placeholder="Enter a prompt here" required></textarea>
<span id="send-btn" class="material-symbols-rounded">send</span>
</div>
<div class="typing-controls">
<span id="theme-btn" class="material-symbols-rounded">light_mode</span>
<span id="record" class="material-symbols-rounded">mic</span>
<span id="delete-btn" class="material-symbols-rounded">delete</span>
<span id="notifications-btn" class="material-symbols-rounded">notifications_active</span>
<span id="pdf-btn" class="material-symbols-rounded">picture_as_pdf</span>
</div>
<div style="display: inline-block; position: absolute; right: 1%;">
<span id="settings" class="material-symbols-rounded">settings</span>
</div>
<div style="display: inline-block; position: absolute; left: 15px;">
<span style="width: 20px; opacity: 0.75" id="flag" class="fi fi-us"></span>
</div>
<div class="menu" id="menu">
<ul>
<li id="system-btn"><span id="system-btn" class="material-symbols-rounded up">speaker_notes</span> Prompt</li>
<li id="logs-btn"><span id="logs-btn" class="material-symbols-rounded up">rule</span> Logs</li>
</ul>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="https://unpkg.com/@waylay/client/dist/waylay.umd.js"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.4.0/jspdf.umd.min.js"></script>
<script src="https://unpkg.com/@popperjs/core@2"></script>
<script src="https://unpkg.com/tippy.js@6"></script>
<script src="js/config.js"></script>
<script src="js/lang.js"></script>
<script src="js/aiBot.js"></script>
<script src="js/parsers.js"></script>
<script src="js/md5.js"></script>
<script src="js/script.js" defer></script>
</body>
</html>