diff options
author | Lukas Schauer | 2020-12-29 01:45:57 +0100 |
---|---|---|
committer | Lukas Schauer | 2020-12-29 01:45:57 +0100 |
commit | 09c1b4889b8c0578d75c2b5cb0e95d75483eaaa2 (patch) | |
tree | 32fe63ec17abc708cf7951c31205c889c3defbea /assets | |
parent | 42c492145a137e85b0851b7e2a2ce0dd071588c8 (diff) |
more hacks
Diffstat (limited to 'assets')
-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 +}); |