From 019a4f9bc1766a714616a05848b1f8346c58ccd8 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Sun, 2 Apr 2023 14:57:55 +0200 Subject: [PATCH] added a little wait message on emotion and culprit choosing page --- truthinquiry/static/js/game.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/truthinquiry/static/js/game.js b/truthinquiry/static/js/game.js index 6a4847e..0baba23 100644 --- a/truthinquiry/static/js/game.js +++ b/truthinquiry/static/js/game.js @@ -281,8 +281,9 @@ function renderAnswerSelectionPanel() { button.appendChild(document.createTextNode("Couplable")); - button.addEventListener("click", () => { + button.addEventListener("click", (event) => { disableCulpritButtons(culpritChoices, suspect); + event.target.textContent = "attente des autres joueurs..."; sendAnswers(); });