function closeBotfullyBot() {
document.getElementById("botfullyContainer").style.width = "55px";
document.getElementById("botfullyContainer").style.height = "55px";
document.getElementById("botfullyContainer").style.opacity = "0";
document.getElementById("botfullyContainer").style.visibility = "hidden";
document.getElementById("botfullyContainer").style.transition = "all linear 500ms";
document.getElementById("botfullyLauncher").style.display = "block";
}
function loadChatbot() {
let body = document.getElementsByTagName("BODY")[0];
let divBtn = document.createElement('div');
divBtn.setAttribute('style', 'z-index:999; position:fixed; bottom:0px; right:0px');
divBtn.setAttribute('onClick', 'openBotfullyBot()');
divBtn.setAttribute('id', 'botfullyLauncher');
// divBtn.innerHTML = "";
divBtn.innerHTML = "";
let divChat = document.createElement('div');
divChat.setAttribute('style', 'z-index:9999; width: 0px;height: 0px; opacity :0; visibility:visible; position:fixed; bottom:20px; right:20px; border-top-left-radius:10px;border-top-right-radius:10px');
divChat.setAttribute('id', 'botfullyContainer');
divChat.innerHTML =
""
+ "";
body.appendChild(divBtn);
body.appendChild(divChat);
}
function openBotfullyBot(){
document.getElementById("botfullyContainer").style.width = "400px";
document.getElementById("botfullyContainer").style.height = "525px";
document.getElementById("botfullyContainer").style.opacity = "1";
document.getElementById("botfullyContainer").style.visibility = "visible";
document.getElementById("botfullyContainer").style.transition = "all linear 100ms";
document.getElementById("botfullyLauncher").style.display = "none";
//document.getElementById("botfullyPrompt").style.display = "none";
}
function closeBotfullyPrompt() {
document.getElementById("botfullyPrompt").style.display = "none";
}
window.load = loadChatbot();