Last active
November 27, 2015 18:51
-
-
Save angelo-v/c26629ddd02b74ce38d0 to your computer and use it in GitHub Desktop.
Literally a "cheat code" for the speed test at http://10fastfingers.com/typing-test/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var next = jQuery.Event("keyup"); | |
next.which = 32; | |
var firstword = $('#words span.highlight').text() | |
var typenext = function(word) { | |
$('#inputfield').val(word); | |
$('#inputfield').trigger(next); | |
var nextword = $('#words span.highlight').text() | |
if (nextword) { | |
setTimeout(typenext, 10, nextword); | |
} | |
} | |
typenext(firstword) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment