Witam poniżej przesyłam kod odnośnie js i html, problem polega na tym, że ani czas ani progresbar nie chce się nawet poruszyć :/ Będe ogromnie wdzięczny za każdą pomoc !
<div class="innerContent clearfix">
<div id="progressbar" class="clearfix">
<div id="timeMeter" style="width:42%">
</div>
<div id="progressbarEnds">
<span>00:09:00</span>
</div>
</div>
</div>
<script type="text/javascript">
window.addEvent('domready',function()
{
if (typeof(progressbarEndTime)=='undefined')
{
return;
}
var progressbarTimer=(function()
{
var values=countdown(progressbarEndTime);
updateProgressbarCountdown(values.hours,values.minutes,values.seconds);
progressbarEndTime-=1;if(progressbarEndTime<=0)
{
if(typeof(l_callUrl)!='undefined')
{
redirect(g_url+'/'+l_callUrl+'?'+new Date().getTime(),null);
}
clearInterval(progressbarTimer);
}
}
).periodical(1000);
}
);
function updateProgressbarCountdown(hours,minutes,seconds)
{
var text=hours+':'+minutes+':'+seconds;document.id('progressbarEnds').getElement('span').set('text',text);
switch(upOrDown)
{
case'Down':var progressbarWidth=((100/progressbarDuration)*progressbarEndTime).toInt()+44;break;case'Up':default:var progressbarWidth=(100-((100/progressbarDuration)*progressbarEndTime).toInt())+44;break;
}
$('timeMeter').setStyle('width',progressbarWidth+'%');
}
</script>