product icon

Cómo imprimir el chatlog

    Los artículos relacionados con la personalización están redactados para una audiencia técnica con experiencia en el desarrollo web. Se requieren conocimientos de HTML, CSS y JavaScript.

    Archivo a editar: 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.pChatLog != null) && (ICObject.pMainContentArea != null))
      {
        clearInterval(ic_hic_demo_timer);
        ICObject.MyCustomDiv = document.createElement("div");
        ICObject.MyCustomDiv.className = "demoButton";
        ICObject.MyCustomDiv.onclick = function () { ic_hic_demo_print(); }
        ICObject.MyCustomDiv.innerHTML = "Print
    Chat
    Log"; ICObject.pMainContentArea.appendChild(ICObject.MyCustomDiv); } } function ic_hic_demo_print() { var ic_hic_demo_window = window.open("", "", "toolbar=no, status=no, directories=no, menubar=no, titlebar=no, location=no, scrollbars=no, resizable=no, height=500, width=500, left=10, top=10"); ic_hic_demo_window.document.open(); ic_hic_demo_window.document.write(' '); ic_hic_demo_window.document.write('GoToRescue.com/InstantChat/Standard/InstantChat.css" />'); ic_hic_demo_window.document.write(''); ic_hic_demo_window.document.write(ICObject.pChatLog.innerHTML); ic_hic_demo_window.document.write(""); ic_hic_demo_window.document.close(); ic_hic_demo_window.print(); ic_hic_demo_window.close(); }

    Archivo a editar: InstantChat.css

    .demoButton
    {
      position: absolute; 
      left: 94px;
      top: 32px;
      width: 50px;
      height: 43px;
      text-align: center;
      cursor: pointer;
      background-color: red;
      z-index: 2000;
    }
    Article last updated: 27 September, 2022