-
-
Save alecperkins/d26741ed5fb7eb07e42c to your computer and use it in GitHub Desktop.
Use Array::shift and Array::push to cycle through the names indefinitely.
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
var names = [ | |
"&!", | |
"bnb", | |
"bang", | |
"bitnb", | |
"bitandbang", | |
"Tierney Coren" | |
] | |
while(names.length > 0){ | |
var name = names.shift(); | |
names.push(name); | |
$('.title') | |
.typetype( | |
"I am " + name + ".", | |
{ | |
e: 0.04, // error rate. (use e=0 for perfect typing) | |
t: 100, // interval between keypresses | |
}) | |
.backspace( | |
name.length + 1, | |
{ | |
t: 100 // interval between keypresses | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment