don't show reload button on colors before pressing play

This commit is contained in:
xenofem 2020-05-29 17:05:55 -04:00
parent 1e20792a0d
commit 00acdb5901
2 changed files with 5 additions and 0 deletions

View file

@ -22,3 +22,7 @@
#word svg:hover path { #word svg:hover path {
fill: red; fill: red;
} }
#reload {
display: none;
}

View file

@ -32,6 +32,7 @@ window.onclick = function () {
if (!started) { if (!started) {
started = true; started = true;
document.getElementById("controls").style.display = "none"; document.getElementById("controls").style.display = "none";
document.getElementById("reload").style.display = "inline";
changeWord(); changeWord();
setInterval(changeWord, 1000); setInterval(changeWord, 1000);
setInterval(function() { if (hypnoFrequency < hypnoIncrements) { hypnoFrequency++; } }, 5000); setInterval(function() { if (hypnoFrequency < hypnoIncrements) { hypnoFrequency++; } }, 5000);