Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,20 @@ <h3 id="video-endpoints">Video Endpoints</h3>
Find the starting point (you can use the <code>,</code> and <code>.</code> keys to find the exact frame). Right
click the video and select “Copy debug info” and paste it for starting frame. Repeat for ending frame.
</p>
<p>
<p>
<label for="startobj">Starting frame: </label>
<input type="text" id="startobj" style='width:100%' onchange='parseForTime(event)' />
<br>
<input type="text" id="startobj" style='width:90%' onchange='parseForTime(event)' />
<button onclick="ClearTimeStart()" style='float:right;'>Clear</button>
</p>
<p>
<p>
<label for="endobj">Ending frame: </label>
<input type="text" id="endobj" style='width:100%' onchange='parseForTime(event)' />
<br>
<input type="text" id="endobj" style='width:90%' onchange='parseForTime(event)' />
<button onclick="ClearTimeEnd()" style='float:right;'>Clear</button>
</p>
<p>
<button onclick="ClearTime()">Clear Both</button>
</p>
<h3 id="video-time">Video Time</h3>
<button id="computeButton" onclick="compute()">Compute time</button>&nbsp;<input type="text" id="time" readonly
Expand Down
14 changes: 14 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,20 @@ function compute() {
document.getElementById("modMessageButton").disabled = false;
}

function ClearTimeStart() {
document.getElementById("startobj").value = "";


}
function ClearTimeEnd() {
document.getElementById("endobj").value = "";
}
function ClearTime() {
document.getElementById("startobj").value = "";
document.getElementById("endobj").value = "";

}

function copyModMessage() {
// Allow user to copy mod message to clipboard
const textArea = document.getElementById('modMessage');
Expand Down