/[ttyrec]/jsttyplay/html/showtty.js
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /jsttyplay/html/showtty.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by dpavlin, Tue Feb 17 19:05:39 2009 UTC revision 3 by dpavlin, Sat Feb 28 22:13:23 2009 UTC
# Line 223  var handleCursor = function (table, bgca Line 223  var handleCursor = function (table, bgca
223  };  };
224    
225  var animateNextFrame = function (holder) { with (holder) {  var animateNextFrame = function (holder) { with (holder) {
226    
227            // check if play_frames checkbox is checked
228            var ttyrec_pause = document.getElementById('ttyrec_pause');
229            if ( ttyrec_pause && ttyrec_pause.checked ) {
230                    setTimeout(function(){animateNextFrame(holder);}, 500); // check very 0.5s
231                    return;
232            }
233            var ttyrec_frame = document.getElementById('ttyrec_frame');
234            if ( ttyrec_frame ) ttyrec_frame.innerHTML = nextframe;
235    
236      var fr = timeline[nextframe];      var fr = timeline[nextframe];
237      if ( fr.i ) {      if ( fr.i ) {
238          loadIFrame(table, rowcaches, fr, width, height);          loadIFrame(table, rowcaches, fr, width, height);
# Line 280  showTTY = function (elem, data) { Line 290  showTTY = function (elem, data) {
290          'timeadd': (new Date).getTime()/1000-timeline[0].t          'timeadd': (new Date).getTime()/1000-timeline[0].t
291        };        };
292    
293            var ttyrec_status = document.getElementById('ttyrec_status');
294            if ( ttyrec_status ) ttyrec_status.style.display = 'block';
295    
296      animateNextFrame(holder);      animateNextFrame(holder);
297  };  };
298    

Legend:
Removed from v.2  
changed lines
  Added in v.3

  ViewVC Help
Powered by ViewVC 1.1.26