Made options a hidden section in the popup.

This commit is contained in:
Ajay Ramachandran
2019-07-12 19:11:09 -04:00
parent 6af1f11a6f
commit 598e15203b
3 changed files with 29 additions and 12 deletions

View File

@@ -5,6 +5,7 @@ document.getElementById("submitTimes").addEventListener("click", submitTimes);
document.getElementById("showNoticeAgain").addEventListener("click", showNoticeAgain);
document.getElementById("hideVideoPlayerControls").addEventListener("click", hideVideoPlayerControls);
document.getElementById("showVideoPlayerControls").addEventListener("click", showVideoPlayerControls);
document.getElementById("optionsButton").addEventListener("click", openOptions);
//if true, the button now selects the end time
var startTimeChosen = false;
@@ -301,6 +302,12 @@ function showSubmitTimesIfNecessary() {
}
}
//make the options div visisble
function openOptions() {
document.getElementById("optionsButtonContainer").style.display = "none";
document.getElementById("options").style.display = "unset";
}
//this is not a YouTube video page
function displayNoVideo() {
document.getElementById("loadingIndicator").innerHTML = "This probably isn't a YouTube tab, or you clicked too early. " +