diff options
author | slashinfty <matt.braddock@gmail.com> | 2020-08-07 20:51:07 -0400 |
---|---|---|
committer | slashinfty <matt.braddock@gmail.com> | 2020-08-07 20:51:07 -0400 |
commit | 4c82453082268b041d23639c974f0880639bb491 (patch) | |
tree | 82dd7ceb051e1fbacaffbd89bf1aceb80e0b337e | |
parent | 85d257a1ccdf98894127bcbfc973d912a5146506 (diff) |
initially disable textarea
-rw-r--r-- | index.html | 4 | ||||
-rw-r--r-- | main.js | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -41,7 +41,9 @@ <h3 id="video-time">Video Time</h3> <button id="computeButton" onclick="compute()">Compute time</button> <input type="text" id="time" readonly size="20" /> - <p><textarea id="modMessage" cols="40" rows="5"></textarea></p> + <p> + <textarea id="modMessage" cols="40" rows="5" disabled></textarea> + </p> <button id="modMessageButton" onclick="copyModMessage()" disabled>Copy Mod Message to Clipboard</button> </div> </body> @@ -41,6 +41,7 @@ function compute() { let modMessage = `Mod Message: Time starts at ${parseFloat(startFrame).toFixed(3)} and ends at ${parseFloat(endFrame).toFixed(3)} at ${frameRate} fps to get a final time of ${finalTime}.`; let credits = `Retimed using [yt-frame-timer](https://mattbraddock.com/yt-frame-timer)`; document.getElementById('time').value = finalTime; + document.getElementById('modMessage').disabled = false; document.getElementById('modMessage').innerText = modMessage + ' ' + credits; document.getElementById("modMessageButton").disabled = false; } |