Update GameOver.html
This commit is contained in:
parent
bcd9db0dc4
commit
e1d847c563
@ -192,7 +192,20 @@
|
|||||||
<button onclick="window.location.href = '/gameplay2';" class="cirButton">Yes, I want another round</button>
|
<button onclick="window.location.href = '/gameplay2';" class="cirButton">Yes, I want another round</button>
|
||||||
<br>
|
<br>
|
||||||
<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>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
Reference in New Issue
Block a user