This website is not compatible with Internet Explorer. Some features might not work correctly in this browser
We recommend that you use the latest version of Chrome, Firefox, Microsoft Edge, or Safari for the best browser experience.
" +
"" +
"" +
//ENG-1082
"\"" + chatbtn_tooltip_text + "\"";
/* " ";
*/
doc.getElementById("widgetlbtn").style.color = color;
doc.getElementById("widgetlbtn").style.backgroundColor = msg.widgetcolor;
doc.getElementById("widgetlbtn").style.display = 'block';
count = count != undefined ? count : 0;
doc.getElementById("spnwidgetlbtn").setAttribute("aria-label", "Chat , " + count + " unread messages"); //ENG-1082
doc.getElementById("widgetlbtn").addEventListener('click', function () {
console.log("switchicon called");
if (parent.IMIChatInit != undefined) {
parent.IMIChatInit.chatswitchicon();
}
else {
IMIChatInit.chatswitchicon();
}
});
doc.getElementById("widgetlbtn").addEventListener('keydown', function (e) {
if (e.key === 'Tab' && !e.shiftKey) {
e.preventDefault();
var widgetmainIframe = window.parent.document.getElementById("iframechatwindow");
if (document.getElementById("divchatmain").style.display == "block") {
widgetmainIframe.contentWindow.postMessage({
action: 'widgetbuttonkeypress',
}, "*");
}
this.blur();
}
});
document.getElementById('imi-chatbutton').style.display = "block";
//console.log( doc.getElementById("widgetlbtn"));
/*$('[data-toggle=\"tooltip\"]').tooltip();*/
// doc.close();
/* for test */
var doc1 = document.getElementById('chatunread-frame').contentWindow.document;
// doc1.open();
doc1.head.innerHTML = "" +
"";
//ENG-985
doc1.body.innerHTML = "xx";
// ""+
//"" +
//"