Skip to content

Commit

Permalink
Merge pull request #1 from AbdulDevHub/experimenting
Browse files Browse the repository at this point in the history
Fixed the ChatBot to not refresh everytime you click the button
  • Loading branch information
AbdulDevHub authored Mar 7, 2024
2 parents 0604321 + 642b43e commit 48ae92c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,15 @@ <h2>External Tools</h2>

<!--Chatbot small pop-up window script when openChat() is called-->
<script>
var chatWindow;

function openChat() {
window.open("https://faqbot-94cc1d.zapier.app", "UTM Student Portal Assistant", "width=500,height=500");}
if (chatWindow && !chatWindow.closed) {
chatWindow.focus(); // brings the chat window to front
} else {
chatWindow = window.open('https://faqbot-94cc1d.zapier.app', 'UTM Student Portal Assistant', 'width=500,height=500');
}
}
</script>
</section>

Expand Down

0 comments on commit 48ae92c

Please sign in to comment.