Skip to content

Commit

Permalink
implement chatbot
Browse files Browse the repository at this point in the history
  • Loading branch information
punkestu committed Oct 6, 2024
1 parent 07692d6 commit e6eb9ee
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 0 deletions.
21 changes: 21 additions & 0 deletions public/script/chatbot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
(function (w, d, s, ...args) {
var div = d.createElement("div");
div.id = "aichatbot";
d.body.appendChild(div);
w.chatbotConfig = args;
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s);
j.defer = true;
j.type = "module";
j.src = "https://aichatbot.sendbird.com/index.js";
f.parentNode.insertBefore(j, f);
})(
window,
document,
"script",
"482DAF0D-2F31-435B-B5EB-6DFF2ED5000D",
"onboarding_bot",
{
apiHost: "https://api-cf-ap-5.sendbird.com",
}
);
1 change: 1 addition & 0 deletions resources/views/account/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class="bg-[#7186F3] hover:bg-[#435EEF] duration-200 text-white px-4 py-2 rounded
</main>
@include('components.footer')
<script src="/script/nav.js"></script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/account/input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class="w-full px-2 py-1 mt-1 bg-white border-2 border-slate-400 rounded-md">
</main>
@include('components.footer')
<script src="/script/nav.js"></script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/account/update.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class="w-full p-2 mt-1 border-2 border-slate-400 rounded-md mb-2" placeholder="J
</main>
@include('components.footer')
<script src="/script/nav.js"></script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class="font-semibold bg-[#003285] text-white hover:opacity-100 opacity-80 durati
</form>
</main>
<script src="/script/nav.js"></script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/personel/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ class="max-h-0 duration-300 absolute flex flex-col gap-1 bg-white mt-4 text-gray
});
});
</script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/personel/input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ function kompetensiBindDeleteBtn(id) {
kompetensiCount++;
});
</script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/rotasi/denah/cabang.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ class="font-medium px-4 py-2 {{ $loop->index % 2 === 0 ? 'bg-slate-200' : '' }}
var chart = new ApexCharts(document.querySelector("#stats-radar"), options);
chart.render();
</script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/rotasi/denah/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ function bindCabangItemClick() {
});
});
</script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/rotasi/denah/input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ function bindDeleteBtn(id) {
setInduk();
setMarkerFromCoord();
</script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/rotasi/denah/update.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ function bindDeleteBtn(id) {
setInduk();
setMarkerFromCoord();
</script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/rotasi/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@include('components.footer')
<script src="/script/nav.js"></script>
<script src="/script/map.js"></script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/rotasi/personal/input.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ function kompetensiBindDeleteBtn(id) {
kompetensiCount++;
});
</script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/rotasi/personal/update.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ function kompetensiBindDeleteBtn(id) {
kompetensiCount++;
});
</script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/rotasi/selektif/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ class="bg-[#7186F3] hover:bg-[#435EEF] duration-200 text-white px-6 py-2 font-se
document.getElementById("rekomendasi-field").classList.remove("hidden");
}
</script>
<script src="/script/chatbot.js"></script>
</body>

</html>
1 change: 1 addition & 0 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class="bg-[#003285] font-semibold text-lg 2xl:text-xl flex justify-center items-
</main>
@include('components.footer')
<script src="/script/nav.js"></script>
<script src="/script/chatbot.js"></script>
</body>

</html>

0 comments on commit e6eb9ee

Please sign in to comment.