Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setInterval(function() {
- $('.session-waiting-timestarted-ts').each(function(){
- tStart=$(this).html();
- console.log("time Started: "+tStart);
- tNow = Math.round(Date.now() / 1000);
- console.log("time now: "+tNow);
- tWaiting= tNow - tStart;
- console.log("time waiting: "+tWaiting);
- var hours =
- var minutes = Math.floor(tWaiting / 60);
- var seconds = tWaiting - minutes * 60;
- $(this).parent().children('.session-waiting-timestarted').html(minutes+":"+seconds);
- //alert(tWaiting);
- });
- }, 1000);
Add Comment
Please, Sign In to add comment