Skip to content

Instantly share code, notes, and snippets.

@bojan88
Created March 17, 2014 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bojan88/9599281 to your computer and use it in GitHub Desktop.
Save bojan88/9599281 to your computer and use it in GitHub Desktop.
var e = $.Event('keydown');
var els = $('#paragraph > span');
e.which = 32;
e.keyCode = 32;
Deps.autorun(function() {
var word = $(els[Session.get("race_progress")]).html();
if(typeof word !== 'undefined') {
$('#typer-input').val(word + ' ');
TypeChecker.keydown(e);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment