rdsedmundo

10fastfingers.com Script - Results in Advance

Apr 29th, 2012
253
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function start_countdown() {
  2.     $('#words').before("<div id='resultsq'></div>");
  3.     setInterval(function () {
  4.         wpm_now = Math.round(error_keystrokes / 5) + 2;
  5. $('#resultsq').html("<font size='+3'><b>WPM:</b> "+wpm_now+"<br><b>KeyStr:</b> "+ error_keystrokes + "<br><b>Corretas:</b> "+error_correct+"<br><b>Erradas:</b> "+error_wrong+"</<font size='+3'>");
  6. },1000);
  7.     if(cd_started == 0)
  8.     {
  9.         cd_started = 1;
  10.         setval = window.setInterval(count_down, 1000);
  11.         start_time = get_current_time().toString(16);
  12.     }
  13. }
RAW Paste Data