show/hide back button for hex animation
This commit is contained in:
parent
f56bb48811
commit
239457b02c
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue