forked from WorkofAditya/ChatBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
104 lines (95 loc) · 3.74 KB
/
index.html
File metadata and controls
104 lines (95 loc) · 3.74 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
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
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Chatbot</title>
<link rel="stylesheet" href="styles.css">
<link rel="icon" href="icons/favicon.ico" type="image/ico">
<link rel="manifest" href="manifest.json" />
</head>
<body>
<!-- MAIN VAULT CONTAINER -->
<div class="vault-container">
<h1>Chatbot</h1>
<div class="vault-toolbar">
<button id="openChangelogBtn" class="change-btn">Changelog</button>
<button id="editDocsBtn" type="button" title="Edit Documents">Manage</button>
<button id="aboutBtn" class="toolbar-btn">About</button>
</div>
<div class="chatbox" id="chatbox">
<div class="typing-indicator" id="typingIndicator">
<span></span><span></span><span></span>
</div>
</div>
<div class="input-area">
<button id="addDocBtn" title="Add Document">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="22" height="22">
<path d="M12 5v14m-7-7h14" stroke="#ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</button>
<input type="text" id="userInput" placeholder="Type your query...">
<button id="sendBtn" title="Send">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M12 5L6 11H10V19H14V11H18L12 5Z" fill="#141414"/>
</svg>
</button>
</div>
<input type="file" id="importFile" accept="application/json" style="display:none;">
</div>
<!-- ADD DOCUMENT POPUP -->
<div class="popup" id="popup">
<div class="popup-content">
<h2 id="popupTitle">Add Document</h2>
<input type="text" id="docName" placeholder="Document Name">
<input type="text" id="docValue" placeholder="Document Number / Value">
<label for="docFile">Attach File (optional):</label>
<input type="file" id="docFile" accept=".pdf,.png,.jpg,.jpeg,.gif,.txt,.doc,.docx,.zip" />
<textarea id="docInfo" placeholder="Additional Information (optional)"></textarea>
<div class="popup-actions">
<button id="saveDocBtn" type="button">Save</button>
<button id="cancelBtn" type="button">Cancel</button>
</div>
</div>
</div>
<!-- EDIT DOCUMENT POPUP -->
<div class="popup" id="editPopup">
<div class="popup-content" style="max-height: 420px; overflow-y: auto;">
<h2>Edit Documents</h2>
<div id="editDocsList" class="edit-doc-list"></div>
</div>
<div class="edit-actions">
<button id="exportBtn">Export</button>
<button id="importBtn">Import</button>
<button id="clearBtn">Delete all</button>
<button id="closeEditPopup">Close</button>
</div>
</div>
<!-- ABOUT POPUP -->
<div id="aboutPopup" class="about-popup">
<div class="about-box">
<button id="closeAbout" class="about-close-btn">✕</button>
<h2 class="about-title">ChatBot</h2>
<img src="icons/192.png" class="about-logo">
<p class="about-desc">A secure offline chatbot vault that stores your personal documents, notes, and files locally, no internet or servers required. <b>made to keep your data truly <i>yours</i>.</b></p>
<div class="about-links-row">
<a href="https://github.com/WorkofAditya/ChatBot" target="_blank">GitHub</a>
<a href="https://codepen.io/WorkofAditya/pen/azNBRWr" target="_blank">CodePen</a>
</div>
<p class="about-dev">Developed by <b>Adityasinh Sodha</b></p>
<p class="about-version">Version: <b>v1.5</b></p>
</div>
</div>
<div id="changelogPopup" class="about-popup">
<div class="about-box changelog-box-inner">
<h2 class="about-title">Changelog</h2>
<div id="changelogBody"></div>
<div class="popup-actions">
<button id="refreshChangelogBtn">Refresh</button>
<button id="closeChangelogBtn">Close</button>
</div>
</div>
</div>
<script src="app.js"></script>
</body>
</html>