Skip to content

Commit e6d00f7

Browse files
authored
Merge pull request #232 from Akarsh979/feature/add-chatbot
Added ai chatbot
2 parents 5a398ad + 4f9dc3e commit e6d00f7

4 files changed

Lines changed: 301 additions & 1 deletion

File tree

index.html

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,11 +356,28 @@ <h2 class="display-5 page-title fw-semibold mb-6 text-center" id="share">
356356
</section>
357357
</main>
358358

359+
<!-- Chatbot Floating Button and Window -->
360+
<div id="chatbot-button">
361+
<i class="bi bi-chat-dots" style="font-size: 2rem; color: white;"></i>
362+
</div>
363+
<div id="chatbot-window">
364+
<div id="chat-header">
365+
<span style="font-weight: bold; font-size: 1.2rem;">Assistant <i class="bi bi-robot" style="font-size: 1.2rem; color: white;"></i></span>
366+
<button id="chatbot-close">&times;</button>
367+
</div>
368+
<div id="chatbot-messages"></div>
369+
<form id="chatbot-form">
370+
<input id="chatbot-input" type="text" placeholder="Ask about audiobooks..." autocomplete="off">
371+
<button id="send" type="submit"><i class="bi bi-send" style="font-size: 1.5rem; color: white;"></i></button>
372+
</form>
373+
</div>
374+
359375
<!-- Footer -->
360376
<div id="footer-placeholder" class="mt-auto"></div>
361377

362378
<!-- JavaScript -->
363-
379+
380+
<script src="./marked.min.js"></script>
364381
<script src="./script.js"></script>
365382
<script src="./translation.js"></script>
366383
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"

0 commit comments

Comments
 (0)