From 9e936f906c3b680e413b3f8d037973b4d616855b Mon Sep 17 00:00:00 2001 From: Djalim Simaima Date: Sat, 21 Jan 2023 11:07:06 +0000 Subject: [PATCH] game question timeout set to 2sec --- truthinquiry/static/js/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/truthinquiry/static/js/game.js b/truthinquiry/static/js/game.js index a2a1cc0..698e09a 100644 --- a/truthinquiry/static/js/game.js +++ b/truthinquiry/static/js/game.js @@ -114,7 +114,7 @@ async function askTypeOneQuestion() { show("question_answer"); document.getElementById("currentNpcPicure").src = "/api/v1//getNpcReaction?npcid="+currentNpc; // Sleep for 5 sec - await new Promise(r => setTimeout(r, 5000)); + await new Promise(r => setTimeout(r, 2000)); document.getElementById("currentNpcPicure").src = "/api/v1/getNpcImage?npcid="+currentNpc; hide("question_answer"); document.getElementsByClassName("suspect_answer")[0].textContent = "";