|
|
|
@ -1,8 +1,10 @@
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
TODOs:
|
|
|
|
|
Redirect/confirm on successful submit
|
|
|
|
|
Move Google sign-in/out buttons, and make it clear when you're not signed in.
|
|
|
|
|
Move "Reset" and "Manual Link" options in here.
|
|
|
|
|
Clean up the Options/Input header, move parts of it into a hidden "Advanced" menu.
|
|
|
|
|
Create a cleaner player-only version of the page, or find a way to make it a version of this one via URL switch.
|
|
|
|
|
-->
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en-US">
|
|
|
|
@ -35,35 +37,34 @@
|
|
|
|
|
<th>Stream</th>
|
|
|
|
|
<th>Start Time</th>
|
|
|
|
|
<th>End Time</th>
|
|
|
|
|
<th>Allow Holes</th>
|
|
|
|
|
<th>Experimental</th>
|
|
|
|
|
<th></th>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><input id="StreamName" value="rpglimitbreak" /></td>
|
|
|
|
|
<td><input id="StreamStart" style="display:none;" class="UTCTimeInput" value="" /><input id="BusTimeStart" class="BusTimeInput" value="0:00" /></td>
|
|
|
|
|
<td><input id="StreamEnd" style="display:none;" class="UTCTimeInput" value="" /><input id="BusTimeEnd" class="BusTimeInput" value="1:00" /></td>
|
|
|
|
|
<td><input id="AllowHoles" type="checkbox" checked /></td>
|
|
|
|
|
<td><input id="IsExperimental" type="checkbox" checked /></td>
|
|
|
|
|
<td><input type="button" value="Load Playlist" onclick="loadPlaylist()" /></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><a href="javascript:window.open('/files');">Streams</a></td>
|
|
|
|
|
<td><a href="javascript:window.open('/files/' + document.getElementById('StreamName').value + '/source', '_blank');">Hours</a></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="radio" id="BusTimeToggleUTC" name="BusTimeToggle" value="UTC" onclick="toggleTimeInput(this.value)"> UTC
|
|
|
|
|
<input type="radio" id="BusTimeToggleBus" name="BusTimeToggle" value="BUSTIME" onclick="toggleTimeInput(this.value)" checked="checked"> Bustime
|
|
|
|
|
</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td></td>
|
|
|
|
|
<td><a id="AdvancedOptionsButton" href="JavaScript:toggleAdvancedOptions();">Advanced Submit Options</a></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
<table id="wubloaderAdvancedInputTable" style="display:none;">
|
|
|
|
|
<tr>
|
|
|
|
|
<td>Advanced Options:</td>
|
|
|
|
|
<td><select id="qualityLevel"></select></td>
|
|
|
|
|
<td><select id="uploadLocation"><option value="YouTube" selected>YouTube</option></select></td>
|
|
|
|
|
<td><input id="uploaderWhitelist" title="Uploader Whitelist" /></td>
|
|
|
|
|
<td><a href="javascript:window.open('/files');">Streams</a></td>
|
|
|
|
|
<td><a href="javascript:window.open('/files/' + document.getElementById('StreamName').value + '/source', '_blank');">Hours</a></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr><td>Allow Holes: </td><td><input id="AllowHoles" type="checkbox" checked /></td></tr>
|
|
|
|
|
<tr><td>Experimental: </td><td><input id="IsExperimental" type="checkbox" checked /></td></tr>
|
|
|
|
|
<tr><td>Quality Level: </td><td><select id="qualityLevel"></select></td></tr>
|
|
|
|
|
<tr><td>Upload Location: </td><td><select id="uploadLocation"><option value="YouTube" selected>YouTube</option></select></td></tr>
|
|
|
|
|
<tr><td>Uploader Whitelist: </td><td><input id="uploaderWhitelist" title="Uploader Whitelist" /></td></tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td>ThrimShim ID:</td>
|
|
|
|
|
<td><input id="hiddenSubmissionID" value="" /></td>
|
|
|
|
@ -90,6 +91,7 @@
|
|
|
|
|
<input type="button" id="DownloadButton" value="Download" onclick="thrimbletrimmerDownload()"/>
|
|
|
|
|
<a href="/thrimbletrimmer/dashboard.html">Go To Dashboard</a>
|
|
|
|
|
<a id="HelpButton" style="float:right;" href="JavaScript:toggleHelp();">Help</a>
|
|
|
|
|
<a id="UltrawideButton" style="float:right;margin-right:10px;" href="JavaScript:toggleUltrawide();">Ultrawide</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="HelpPane" style="display:none;">
|
|
|
|
|
<ul>
|
|
|
|
@ -113,6 +115,14 @@
|
|
|
|
|
var helpPane = document.getElementById("HelpPane");
|
|
|
|
|
helpPane.style.display = (helpPane.style.display === "none") ? "block":"none";
|
|
|
|
|
}
|
|
|
|
|
function toggleAdvancedOptions() {
|
|
|
|
|
var helpPane = document.getElementById("wubloaderAdvancedInputTable");
|
|
|
|
|
helpPane.style.display = (helpPane.style.display === "none") ? "block":"none";
|
|
|
|
|
}
|
|
|
|
|
function toggleUltrawide() {
|
|
|
|
|
var body = document.getElementsByTagName("Body")[0];
|
|
|
|
|
body.classList.contains("ultrawide") ? body.classList.remove("ultrawide"):body.classList.add("ultrawide");
|
|
|
|
|
}
|
|
|
|
|
function toggleTimeInput(toggleInput) {
|
|
|
|
|
if(toggleInput == "UTC") {
|
|
|
|
|
document.getElementById("BusTimeStart").style.display = "none";
|
|
|
|
|