HELP FILE

How to Retrieve Current Language Settings

File to edit: LanguagesForChatOnlyMode.js

var ic_hic_demo_timer = null;
ic_hic_demo_timer = setInterval(ic_hic_demo_timer_checkobject, 100);
function ic_hic_demo_timer_checkobject()
{
  if ((ICObject != null) && (ICObject.pLanguageSelection_a != null))
  {
    clearInterval(ic_hic_demo_timer);
    ICObject.MyCustomDiv = document.createElement("div");
    ICObject.MyCustomDiv.className = "demoButton";
    ICObject.MyCustomDiv.onclick = function () { ic_hic_demo_getLang(); }
    ICObject.MyCustomDiv.innerHTML = "Get<br />Lang";
    ICObject.pMainContentArea.appendChild(ICObject.MyCustomDiv);
  }
}
function ic_hic_demo_getLang()
{
  for (var key in oLangNameArray)
  {
    if (oLangNameArray[key] == ICObject.pLanguageSelection_a.innerHTML)
        alert(key + ", " + oLangNameArray[key]);
  }
}

File to edit: InstantChat.css

.demoButton
{
  position: absolute;
  left: 94px;
  top: 32px;
  width: 50px;
  height: 43px;
  text-align: center;
  cursor: pointer;
  background-color: red;
  z-index: 2000;
}
Note: For information about languages that Instant Chat supports, see How to Track the Language of Customers with the Channel Form.