3 ms·
I could get to 118, but it doesn't want a 119th answer, or the UI gets completely broken. http://imgur.com/HG0J9fN http://imgur.com/HG0J9fN
by flaie 11y ago
I could get to 118, but it doesn't want a 119th answer, or the UI gets completely broken.
http://imgur.com/HG0J9fN http://imgur.com/HG0J9fN
- kornish 11y agoStrange. The 119th answer is fine for me, but the 120th breaks it. I revised the script to not rely on interval multiplication, which can be flighty due to inconsistent latencies, but to rather keep a counter and cancel the interval after 119 solves.
- flaie 11y agoThis is the script I used, but yours blocks also on 119 for me. var answer = function() { var q = $("#question").text().replace(/x|÷|=/g, function(m) { return {'x':'*','÷':'/','=':''}[m]}); $("#answer").val(eval(q)).keyup(); }; $('#question').bind("DOMSubtreeModified", function(){ setTimeout(answer, 200); }); answer(); Don't have much time to search why :-)