Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. (function() {
  2. var next = jQuery.Event("keyup");
  3. next.which = 32;
  4.  
  5. var firstword = $('#words span.highlight').text()
  6.  
  7. var typenext = function(word) {
  8. $('#inputfield').val(word);
  9. $('#inputfield').trigger(next);
  10. var nextword = $('#words span.highlight').text()
  11. if (nextword) {
  12. setTimeout(typenext, 10, nextword);
  13. }
  14. }
  15.  
  16. typenext(firstword)
  17. })()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement