show/hide back button for hex animation

mistress
xenofem 2020-06-22 00:08:22 -04:00
parent f56bb48811
commit 239457b02c
2 changed files with 14 additions and 0 deletions

View File

@ -30,6 +30,13 @@
#controls {
display: none;
background-color: rgba(0, 0, 0, 0.7);
padding: 5px;
border-radius: 10px;
}
#reload {
display: none;
}
@keyframes death {

View File

@ -206,3 +206,10 @@ for (var i = 0; i < width; ++i) {
}
setInterval(prestonStep, 1000);
var showControls = false;
window.onclick = function () {
document.getElementById("controls").style.display = showControls ? "none" : "block";
showControls = !showControls;
}