diff options
Diffstat (limited to 'assets/netcut')
-rw-r--r-- | assets/netcut/assets/script.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/assets/netcut/assets/script.js b/assets/netcut/assets/script.js index bcc6534..07ba6d4 100644 --- a/assets/netcut/assets/script.js +++ b/assets/netcut/assets/script.js @@ -47,17 +47,19 @@ function fnord(e) { var frame = Math.round(player.currentTime() / (1/VIDEO_FPS)); if(e['key'] == 'i') { + var CUTIN = (frame - offset); player.markers.getMarkers().forEach(function(x, i){ if(x.text == 'inframe') player.markers.remove([i]); }); player.markers.add([{time: time, text: 'inframe', class: 'inframe'}]); - inframe.innerHTML = "inframe: " + time + " seconds (frame " + frame + ")\n"; + inframe.innerHTML = "inframe: " + (CUTIN / 25) + " seconds (Record.Cutin: " + CUTIN + ")\n"; } else if(e['key'] == 'o') { + var CUTOUT = (frame - offset); player.markers.getMarkers().forEach(function(x, i){ if(x.text == 'outframe') player.markers.remove([i]); }); player.markers.add([{time: time, text: 'outframe', class: 'outframe'}]); - outframe.innerHTML = "outframe: " + time + " seconds (frame " + frame + ")\n"; + outframe.innerHTML = "outframe: " + (CUTOUT / 25) + " seconds (Record.CutOut " + CUTOUT + ")\n"; } else if(e['key'] == 'I') { player.markers.getMarkers().forEach(function(x, i){ if(x.text == 'inframe') player.currentTime(x.time); @@ -82,4 +84,4 @@ document.addEventListener('keydown', function (event) { } // redirect all other events to player fnord(event); -});
\ No newline at end of file +}); |