Update GameOver.html

This commit is contained in:
Doveliyuchen 2023-03-07 23:13:48 +08:00
parent bcd9db0dc4
commit e1d847c563

View File

@ -64,7 +64,7 @@
cursor: pointer;
border: none;
font-weight: 600;
}
.cirButton:hover {
@ -192,7 +192,20 @@
<button onclick="window.location.href = '/gameplay2';" class="cirButton">Yes, I want another round</button>
<br>
<br>
<button onclick="window.close();" class="cirButton">No, and close the window</button>
<button id="hideButton" class="cirButton">No</button>
<script>
// document.getElementById("hideButton").addEventListener("click", function () {
// var buttons = document.getElementsByTagName("button");
// for (var i = 0; i < buttons.length; i++) {
// buttons[i].style.display = "none";
// }
// });
document.getElementById("hideButton").addEventListener("click", function () {
var newWindow = window.open("", "_self");
newWindow.close();
});
</script>
</div>
</section>