Free javascript Hosting


hdjs5.js

Uploaded on Dec 11 2021 03:30 by rupesh

window.__lc = window.__lc || {};
window.__lc.license = 3167192;
(function (n, t, c) {
function i(n) {
return e._h ? e._h.apply(null, n) : e._q.push(n);
}
var e = {
_q: [],
_h: null,
_v: "2.0",
on: function () {
i(["on", c.call(arguments)]);
},
once: function () {
i(["once", c.call(arguments)]);
},
off: function () {
i(["off", c.call(arguments)]);
},
get: function () {
if (!e._h) throw new Error("[LiveChatWidget] You can't use getters before load.");
return i(["get", c.call(arguments)]);
},
call: function () {
i(["call", c.call(arguments)]);
},
init: function () {
var n = t.createElement("script");
(n.async = !0), (n.type = "text/javascript"), (n.src = "https://cdn.livechatinc.com/tracking.js"), t.head.appendChild(n);
},
};
!n.__lc.asyncInit && e.init(), (n.LiveChatWidget = n.LiveChatWidget || e), LiveChatWidget.on('visibility_changed', onVisibilityChanged), LiveChatWidget.on('ready', onReady);
})(window, document, [].slice);

function onReady(initialData) {
var state = initialData.state;
onVisibilityChanged(state)
}



function onVisibilityChanged(data) {
switch (data.visibility) {
case "maximized":
var element = document.getElementById("chat-widget-container");
element.classList.add("chat-widget-containermargin");
document.getElementById("filesupport").style.display = "block";
break;
case "minimized":
var element = document.getElementById("chat-widget-container");
element.classList.remove("chat-widget-containermargin");
document.getElementById("filesupport").style.display = "none";
break;
case "hidden":
document.getElementById("filesupport").style.display = "none";
break;
}
}


document.write( '<div id=\"filesupport\" class=\"notranslate hdsupport\">Powered By <a href=\"https://www.chatagents.com/\" class=\"casupport\" target=\"_blank\"> Chats Agents</a></div>\n' );
document.write( '<link rel=\"stylesheet\" href=\"https://www.chatagents.com/supportcss.css\">' );

Back to list