Added hide button to notice

This commit is contained in:
Ajay Ramachandran
2019-07-09 21:46:11 -04:00
parent 4edab5f9a9
commit ca9aa130f8

View File

@@ -136,11 +136,18 @@ function openSkipNotice(){
goBackButton.innerText = "Go back";
goBackButton.style.fontSize = "13px";
goBackButton.style.color = "#000000";
goBackButton.setAttribute("align", "center");
goBackButton.style.marginTop = "5px";
goBackButton.addEventListener("click", goBackToPreviousTime);
var hideButton = document.createElement("button");
hideButton.innerText = "Hide";
hideButton.style.fontSize = "13px";
hideButton.style.color = "#000000";
hideButton.style.marginTop = "5px";
hideButton.addEventListener("click", closeSkipNotice);
buttonContainer.appendChild(goBackButton);
buttonContainer.appendChild(hideButton);
noticeElement.appendChild(noticeMessage);
noticeElement.appendChild(buttonContainer);