secondsCount = -1714711031; countTrigger = (secondsCount>0)?true:false; if(countTrigger){ html='
' document.getElementsByClassName("lexx-counter")[0].getElementsByClassName("lexx-form")[0].innerHTML = html; } getTimer(secondsCount); function getTimer(secs){ if(secs<0){ countTrigger = false; } // currentTime = 1714711031; html = ''; if(countTrigger){ days = Math.floor(+secs/(24*60*60)); hours = Math.floor((+secs-days*24*60*60)/(60*60)); minutes = Math.floor((+secs-days*24*60*60-hours*60*60)/(60)); seconds = +secs-days*24*60*60-hours*60*60-minutes*60; html+='

Для получения скидки на чистку ковров у Вас осталось:

'; // html+= 'Left: '+days+'d'+hours+'h'+minutes+'m'+seconds+'s'+'
'; html+=''; html+=''+((days<10)?('0'+days):days)+':'; html+=''+((hours<10)?('0'+hours):hours)+':'; html+=''+((minutes<10)?('0'+minutes):minutes)+':'; html+=''+((seconds<10)?('0'+seconds):seconds)+''; html+=''; // html+= 'Estimate: 03:00 01/01/1970'+'
'; // html+= 'Current: 07:37 05/03/2024'+'
'; // html+= secs+'
'; // html+='

Оформите заявку

'; document.getElementById("cntdwn").innerHTML = html; setTimeout('getTimer('+(secs-1)+')',1000); }else{ html+=''; document.getElementById("cntdwn").innerHTML = html; } }