aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Voss <57815710+Mango0x45@users.noreply.github.com> 2021-02-03 17:33:17 +0100
committerGitHub <noreply@github.com> 2021-02-03 17:33:17 +0100
commit44df3fa4735687f7cc50b5b293a50cf82cc24d0b (patch)
tree076703560381840a15ba6da25d4189c2e2403776
parentf029457e3c388b1243e40a937b8e79f4bfee915f (diff)
Better mod message
-rw-r--r--main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.js b/main.js
index 5e97e7e..19e2e26 100644
--- a/main.js
+++ b/main.js
@@ -39,7 +39,7 @@ function compute()
/* Show the time and mod message in the DOM */
let finalTime = hours.toString() + 'h ' + minutes.toString() + 'm ' + seconds.toString() + 's ' + milliseconds.toString() + 'ms';
- let modMessage = `Mod Note: Retimed (Start: Frame ${startFrame}, End: Frame ${endFrame}, FPS: ${frameRate}, Total Time: ${finalTime})`;
+ let modMessage = `Mod Note: Retimed (Start: Frame ${Math.floor(startFrame * frameRate)}, End: Frame ${Math.floor(endFrame * frameRate)}, FPS: ${frameRate}, Total Time: ${finalTime})`;
document.getElementById('time').value = finalTime;
document.getElementById('modMessage').disabled = false;
document.getElementById('modMessage').innerText = modMessage;