Guest User

Untitled

a guest
May 27th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setInterval(function() {
  2.    
  3.       $('.session-waiting-timestarted-ts').each(function(){
  4.     tStart=$(this).html();
  5.     console.log("time Started: "+tStart);
  6.     tNow = Math.round(Date.now() / 1000);
  7.     console.log("time now: "+tNow);
  8.     tWaiting= tNow - tStart;
  9.     console.log("time waiting: "+tWaiting);
  10.     var hours =    
  11.     var minutes = Math.floor(tWaiting / 60);
  12.     var seconds = tWaiting - minutes * 60;
  13.    
  14.     $(this).parent().children('.session-waiting-timestarted').html(minutes+":"+seconds);
  15.     //alert(tWaiting);
  16.    
  17.    
  18. });
  19. }, 1000);
Add Comment
Please, Sign In to add comment