Comment terminer la session
Les articles associés à la personnalisation sont rédigés pour un public technique ayant une expérience dans le développement web. La connaissance des HTML, de CSS et de JavaScript est indispensable.
Fichier à modifier : 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.pMainContentArea != null) && (ICObject.pSessionEndButton
!= null))
{
clearInterval(ic_hic_demo_timer);
ICObject.EndSesssionButton = document.createElement("div");
ICObject.EndSesssionButton.className = "demoButton";
ICObject.EndSesssionButton.onclick = function ()
{
ICObject.EndSession();
this.style.cursor = "default";
this.disabled = true;
}
ICObject.EndSesssionButton.innerHTML = "End
Session";
ICObject.pMainContentArea.appendChild(ICObject.EndSesssionButton);
}
}
Fichier à modifier : 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