//html
<div id="comm100-button-6cde6a42-27b8-48a8-be95-b6c8442bb94c"></div>
//Javascript
function Showevent(e)
{
var Comm100API=Comm100API||{};(function(t){function e(e){var a=document.createElement("script"),c=document.getElementsByTagName("script")[0];a.type="text/javascript",a.async=!0,a.src=e+t.site_id,c.parentNode.insertBefore(a,c)}t.chat_buttons=t.chat_buttons||[],t.chat_buttons.push({code_plan:"-----------------------------------",div_id:"-----------------------------------"}),t.site_id=207858,t.main_code_plan="-----------------------------------------",e("https://-----------------------------------"),setTimeout(function(){t.loaded||e("https://-----------------------------------")},5e3)})(Comm100API||{})}
var a = document.body;
var b = window.activeReady=true;
n_var=0;
i_var=[[a,"mousemove"],[a,"scroll"],[a,"keydown"],[a,"click"],[a,"touchstart"],[b,"blur"],[b,"focus"]];
for(r_var=(i_var).length ; n_var<r_var; n_var++)
{
t_var=i_var[n_var];
if(t_var[0].addEventListener(t_var[1],Showevent,{once:true}));
else
{
setTimeout(Showevent, 10000);
}}
It was working fine when I was using this on tawkto chat but when I switched to comm100 for some reason. It's not working. When I put this code out of function Showevent() It starts working. I have tried much but cannaot figure out where the problem is.I want to use same timeout function in comm100 as well.
It was working fine when I was using this on tawkto chat chat but when I switched to comm100 for some reasons. It's not working. When I put this code out of function Showevent() It starts working. I have tried much but cannaot figure out where the problem is.I want to use same timeout function in comm100 as well.
*Swaped dash with private comm100 codes*