(function() {
var domain = window.location.hostname;
if(domain == "164.90.186.50"){
// Create a function to insert the chat HTML at the end of the body
function insertChatPopup() {
// Chat popup HTML content
var chatPopupHTML = `
DocuSync
DocuSync
DocuSync
`;
// Append chat HTML to body
document.body.insertAdjacentHTML('beforeend', chatPopupHTML);
// Append chat CSS
var chatStyleLink = document.createElement('link');
chatStyleLink.rel = 'stylesheet';
chatStyleLink.href = 'http://164.90.186.50/aiproject/public/chat/css/style.css';
document.head.appendChild(chatStyleLink);
// Append chat CSS
var chatStyleLink2 = document.createElement('link');
chatStyleLink2.rel = 'stylesheet';
chatStyleLink2.href = 'https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;700&display=swap';
document.head.appendChild(chatStyleLink2);
// Load the chat JS script
var chatScript = document.createElement('script');
chatScript.src = 'http://164.90.186.50/aiproject/public/chat/js/chat.js';
document.body.appendChild(chatScript);
}
// Call the function to insert the chat popup when the DOM is ready
if (document.readyState === 'complete' || document.readyState === 'interactive') {
insertChatPopup();
} else {
document.addEventListener('DOMContentLoaded', insertChatPopup);
}
}
})();