These are chat archives for FreeCodeCamp/HelpFrontEnd
clickevent stop while animation is playing.
let animationDone = true;
if(!($(this).attr("class").includes("open show")) && animationDone)
else if(i%2===0 && !(openCards[i-1]==openCards[i-2]))set it to
false, after that in the same
setTimeoutscallback function set it to
true(as last statement).
setTimeoutfor that animation to finish first and then show the popup/model.