Skip to content

Commit

Permalink
Deploy to GitHub Pages 681bae5
Browse files Browse the repository at this point in the history
  • Loading branch information
oeway committed Jun 5, 2024
1 parent d628600 commit 9dda960
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions chat/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1503,11 +1503,14 @@ <h3 class="text-center">Welcome to BioImage.IO Chatbot</h3>

const atAssistantButton = document.getElementById("at-buttons");
atAssistantButton.innerHTML = Object.values(allAssistants).map((a) => {
return `<li><a class="dropdown-item" data-assistant="${a.name}">${a.alias}(${a.name})</a></li>`
if(a.name !== assistantName)
return `<li><a class="dropdown-item at-button" data-assistant="${a.name}">${a.alias} (${a.name})</a></li>`
else
return ""
}).join("\n");

// Get all the dropdown items
const dropdownItems = document.querySelectorAll('.dropdown-item');
const dropdownItems = document.querySelectorAll('.at-button');

// Add a 'click' event listener to each dropdown item
dropdownItems.forEach(item => {
Expand Down

0 comments on commit 9dda960

Please sign in to comment.