client/js/main.js
changeset 44 02971f8dcaa5
parent 40 c0205b71e013
equal deleted inserted replaced
43:d63529bd67ad 44:02971f8dcaa5
   145 $(function() {
   145 $(function() {
   146     columnCounts = columnKeywords.map(function() {
   146     columnCounts = columnKeywords.map(function() {
   147         return 0;
   147         return 0;
   148     })
   148     })
   149     setInterval(function() {
   149     setInterval(function() {
   150         var _t = Math.floor((new Date() - startHour)/1000),
   150         var _d = (new Date() - startHour),
       
   151             _t = Math.abs(Math.floor(_d/1000)),
   151             _s = _t % 60,
   152             _s = _t % 60,
   152             _m = Math.floor(_t/60) % 60,
   153             _m = Math.floor(_t/60) % 60,
   153             _h = Math.floor(_t/3600);
   154             _h = Math.floor(_t/3600);
   154         $("#btv-cp-temps").html(
   155         $("#btv-cp-temps").html(
   155             _h  + ':' + (_m < 10 ? '0' : '') + _m + ':' + (_s < 10 ? '0' : '') + _s
   156             (_d < 0 ? '-' : '' ) + _h  + ':' + (_m < 10 ? '0' : '') + _m + ':' + (_s < 10 ? '0' : '') + _s
   156         )
   157         )
   157     }, 500);
   158     }, 500);
   158     myPodium = new Btv_Podium([0,0,0,0], { minHeight: 50 });
   159     myPodium = new Btv_Podium([0,0,0,0], { minHeight: 50 });
   159     
   160     
   160     if (typeof serverUrl != "undefined") {
   161     if (typeof serverUrl != "undefined") {