]> git.cworth.org Git - zombocom-ai/blobdiff - index.html
Disable the art-generation form when the puzzle hunt is over
[zombocom-ai] / index.html
index 92e115ede8e264b75a77843e21cf39ebbd5aff7f..8db8b695b93b68c2187af45978e1fe4e8a07e6c0 100644 (file)
@@ -139,6 +139,12 @@ mute.addEventListener("click", () => {
         comments.appendChild(dd);
     }
 
+    // When we enter the endgame, we disable the art-generation form,
+    // (just hide it)
+    socket.on('endgame', () => {
+       zombo_form.style.display = "none";
+    });
+
     socket.on('comment', function(comment) {
         const comments = document.querySelector("#comments_" + comment.image_id);
         add_comment(comments, comment);