Skip to content

Commit

Permalink
Fully Functional Voice and Chat AI Assistant for FAQ, Project Descrip…
Browse files Browse the repository at this point in the history
…tions, and Navigation (Opentek-Org#399)

* temporary changes

* Fix : issue ✔

* Update index.html

* Old Chatbot removed and repositioned Ai ChatBot
  • Loading branch information
Nishitbaria authored Jul 5, 2023
1 parent 5141d9a commit 039912c
Show file tree
Hide file tree
Showing 8 changed files with 251 additions and 6 deletions.
55 changes: 49 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
<body id="dark-mode">
<!-- Preloader Part Start -->
<div class="preloader">

<div class="frame">
<div class="center">
<div class="dot-1"></div>
Expand Down Expand Up @@ -602,11 +603,53 @@ <h2>
<!-- chatbot code -->

<!-- Chat Bot -->
<button class="chatbot__button">
<span class="material-symbols-outlined">mode_comment</span>
<span class="material-symbols-outlined">close</span>
</button>
<div class="chatbot">
<div class="alan-btn"></div>
<script type="text/javascript"
src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
<script>






var alanBtnInstance = alanBtn({
key: "3a41c2735a5252b764a5a62bdae65be32e956eca572e1d8b807a3e2338fdd0dc/stage",
bottom: '50px',
left : '50px' ,
zIndex: 10,
onCommand: function (commandData) {
if (commandData && commandData.command === 'openURL') {
if (commandData.target === '_blank'){
window.open(commandData.url,'_newtab' + Math.floor(Math.random()*999999));
} else {
window.location.href = commandData.url;
}
}

},
onButtonState: async function (status) {
if (status === "ONLINE") {
if (!this.greetingWasSaid) {
await alanBtnInstance.activate();
this.greetingWasSaid = true;
}
}
},
rootEl: document.getElementById("alan-btn"),
});









</script>

<!-- <div class="chatbot">
<div class="chatbot__header">
<h3 class="chatbox__title"><b>Opentek 24/7</b></h3>
<span class="material-symbols-outlined">close</span>
Expand All @@ -624,7 +667,7 @@ <h3 class="chatbox__title"><b>Opentek 24/7</b></h3>
<textarea class="chatbot__textarea" placeholder="Enter a message..." required></textarea>
<span id="send-btn" class="material-symbols-outlined">send</span>
</div>
</div>
</div> -->
<!-- chat bot finish -->


Expand Down
30 changes: 30 additions & 0 deletions pages/Error.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,36 @@
srcset=""
/>
</div>

<div class="alan-btn"></div>
<script type="text/javascript"
src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
<script>






var alanBtnInstance = alanBtn({
key: "3a41c2735a5252b764a5a62bdae65be32e956eca572e1d8b807a3e2338fdd0dc/stage",
onCommand: function (commandData) {
if (commandData && commandData.command === 'openURL') {
if (commandData.target === '_blank'){
window.open(commandData.url,'_newtab' + Math.floor(Math.random()*999999));
} else {
window.location.href = commandData.url;
}
}

},
rootEl: document.getElementById("alan-btn"),
});


</script>


</div>
<!-- FOOTER AREA START -->
<footer id="footer">
Expand Down
27 changes: 27 additions & 0 deletions pages/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,33 @@ <h2>Built with <i class="fa-solid fa-heart"></i> by <br> <a href="https://github

</div>
</div>
<div class="alan-btn"></div>
<script type="text/javascript"
src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
<script>






var alanBtnInstance = alanBtn({
key: "3a41c2735a5252b764a5a62bdae65be32e956eca572e1d8b807a3e2338fdd0dc/stage",
onCommand: function (commandData) {
if (commandData && commandData.command === 'openURL') {
if (commandData.target === '_blank'){
window.open(commandData.url,'_newtab' + Math.floor(Math.random()*999999));
} else {
window.location.href = commandData.url;
}
}

},
rootEl: document.getElementById("alan-btn"),
});


</script>
</div>
<!-- color theams part end -->

Expand Down
27 changes: 27 additions & 0 deletions pages/blog.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,33 @@ <h2>

</div>
</div>
<div class="alan-btn"></div>
<script type="text/javascript"
src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
<script>






var alanBtnInstance = alanBtn({
key: "3a41c2735a5252b764a5a62bdae65be32e956eca572e1d8b807a3e2338fdd0dc/stage",
onCommand: function (commandData) {
if (commandData && commandData.command === 'openURL') {
if (commandData.target === '_blank'){
window.open(commandData.url,'_newtab' + Math.floor(Math.random()*999999));
} else {
window.location.href = commandData.url;
}
}

},
rootEl: document.getElementById("alan-btn"),
});


</script>
</div>
<!-- color theams part end -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Expand Down
30 changes: 30 additions & 0 deletions pages/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,36 @@ <h1 id="text-down" class="fs-5 text-center m-4">
<section id="overview">
<div class="container">
<div class="row over-pa" id="rowdy"></div>

<div class="alan-btn"></div>
<script type="text/javascript"
src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
<script>






var alanBtnInstance = alanBtn({
key: "3a41c2735a5252b764a5a62bdae65be32e956eca572e1d8b807a3e2338fdd0dc/stage",
onCommand: function (commandData) {
if (commandData && commandData.command === 'openURL') {
if (commandData.target === '_blank'){
window.open(commandData.url,'_newtab' + Math.floor(Math.random()*999999));
} else {
window.location.href = commandData.url;
}
}

},
rootEl: document.getElementById("alan-btn"),
});


</script>


</div>
</section>
<div id="error"></div>
Expand Down
27 changes: 27 additions & 0 deletions pages/program.html
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,33 @@ <h2>

</div>
</div>
<div class="alan-btn"></div>
<script type="text/javascript"
src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
<script>






var alanBtnInstance = alanBtn({
key: "3a41c2735a5252b764a5a62bdae65be32e956eca572e1d8b807a3e2338fdd0dc/stage",
onCommand: function (commandData) {
if (commandData && commandData.command === 'openURL') {
if (commandData.target === '_blank'){
window.open(commandData.url,'_newtab' + Math.floor(Math.random()*999999));
} else {
window.location.href = commandData.url;
}
}

},
rootEl: document.getElementById("alan-btn"),
});


</script>
</div>
<!-- color theams part end -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Expand Down
34 changes: 34 additions & 0 deletions pages/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,40 @@
</div>
</div>
</div>
<div class="alan-btn"></div>
<script type="text/javascript"
src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
<script>






var alanBtnInstance = alanBtn({
key: "3a41c2735a5252b764a5a62bdae65be32e956eca572e1d8b807a3e2338fdd0dc/stage",
onCommand: function (commandData) {
if (commandData && commandData.command === 'openURL') {
if (commandData.target === '_blank'){
window.open(commandData.url,'_newtab' + Math.floor(Math.random()*999999));
} else {
window.location.href = commandData.url;
}
}

},
rootEl: document.getElementById("alan-btn"),
});









</script>
<!-- Preloader Part End -->
<!-- HEADER AREA START -->
<nav class="navbar navbar-expand-lg navbar-light bg-light sticky-top">
Expand Down
27 changes: 27 additions & 0 deletions pages/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,33 @@ <h2>

</div>
</div>
<div class="alan-btn"></div>
<script type="text/javascript"
src="https://studio.alan.app/web/lib/alan_lib.min.js"></script>
<script>






var alanBtnInstance = alanBtn({
key: "3a41c2735a5252b764a5a62bdae65be32e956eca572e1d8b807a3e2338fdd0dc/stage",
onCommand: function (commandData) {
if (commandData && commandData.command === 'openURL') {
if (commandData.target === '_blank'){
window.open(commandData.url,'_newtab' + Math.floor(Math.random()*999999));
} else {
window.location.href = commandData.url;
}
}

},
rootEl: document.getElementById("alan-btn"),
});


</script>
</div>
<!-- color theams part end -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
Expand Down

0 comments on commit 039912c

Please sign in to comment.