Conjuguemos Hack


SUBMITTED BY: Guest

DATE: Dec. 5, 2013, 10:16 p.m.

FORMAT: JavaScript

SIZE: 1.6 kB

HITS: 763

  1. if (start == 0)
  2. {
  3. if (activityType == "vocabulary") {
  4. jQuery.ajax('/au.php?x=sa&t='+activityType);
  5. randomizeList("yes");
  6. setvariable();
  7. }
  8. else if (activityType == "verbs") {
  9. jQuery.ajax('/au.php?x=sa&t='+activityType);
  10. howToSelectVerbs('yes');
  11. setvariable();
  12. } else {
  13. jQuery.ajax('/au.php?x=sa&t='+activityType);
  14. }
  15. }
  16. var getCorrect = parseInt(prompt("How many would you like to get correct?", 1));
  17. var getIncorrect = parseInt(prompt("How many would you like to get incorrect?", 1));
  18. var qTime = parseInt(prompt("How much time would you like each question to take? (in seconds)", 33));
  19. var totalSecs = (getCorrect + getIncorrect) * qTime;
  20. tmin = Math.round(totalSecs / 60);
  21. tsec = Math.round(totalSecs % 60);
  22. if(tmin > 59)
  23. {
  24. tmin = 59;
  25. tsec = 58;
  26. }
  27. var yi = 0;
  28. for(yi = 0; yi < getIncorrect; yi++)
  29. {
  30. $('#response').val(solution + yi);
  31. verifyAnswer();
  32. $("#form").submit();
  33. }
  34. for(yi = 0; yi < getCorrect; yi++)
  35. {
  36. $('#response').val(solution);
  37. verifyAnswer();
  38. $("#form").submit();
  39. }
  40. stopClock();
  41. qTime = false;
  42. alert("Done! Click 'Print Results', check your results, and if all is good click 'Record/send results'.\n\nCreate by Stevie Hetelekides.");

comments powered by Disqus