From: Scott Worley Date: Sat, 13 Sep 2014 05:19:16 +0000 (-0700) Subject: This became racy X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/370e0b55a32f35148c21e7346b484abcd87bbc38?ds=inline;hp=8a9d6b07d5933eb8aab9dad991f3510d141e0f5f This became racy TODO: Actually fix the problem rather than just increasing the sleep time. --- diff --git a/picsorter.js b/picsorter.js index b8b1804..31091fa 100644 --- a/picsorter.js +++ b/picsorter.js @@ -52,7 +52,7 @@ function setpic() { function say(message) { $("#message").text(message).removeClass("fade"); - setTimeout(function() { $("#message").addClass("fade"); }, 1); + setTimeout(function() { $("#message").addClass("fade"); }, 100); } function announce() { say(input_index + " " + (picinfo[files[input_index]].name || ""));