Guest User

speedsums 'hack'

a guest
Feb 8th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var nextQuestion = function() {
  2.   var q = jQuery('#question').text();
  3.   q = q.replace('=', '').trim();
  4.   q = q.replace('x', '*');
  5.   q = q.replace('÷', '/');
  6.  
  7.   q = eval(q);
  8.  
  9.   $('#answer').val(q).trigger('keyup');
  10. }
  11.  
  12. setInterval(nextQuestion, 1000);
Add Comment
Please, Sign In to add comment