You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
6.9 KiB
JavaScript

function nameGen(type) {
var nm1 = ["Attacking", "Bashing", "Biting", "Blinding", "Booming", "Bouncing", "Breaking", "Burning", "Bursting", "Charging", "Chilling", "Cleaving", "Crashing", "Crawling", "Crouching", "Crushing", "Cutting", "Dancing", "Dazzling", "Defending", "Deflecting", "Diving", "Dodging", "Evading", "Exploding", "Fighting", "Flailing", "Flaming", "Flanking", "Flipping", "Flowing", "Flying", "Gliding", "Glowing", "Grasping", "Hanging", "Hiding", "Jumping", "Kicking", "Knocking", "Laughing", "Lurking", "Mashing", "Mocking", "Panicking", "Pouncing", "Punishing", "Raging", "Resisting", "Roaring", "Rocking", "Running", "Scorching", "Scrambling", "Screaming", "Shouting", "Shrieking", "Slicing", "Smashing", "Smoking", "Sneaking", "Sparkling", "Spinning", "Splashing", "Stinging", "Stinking", "Storming", "Stunning", "Surprising", "Sweeping", "Swinging", "Swirling", "Tackling", "Throwing", "Tricking", "Tumbling", "Twinkling", "Twirling", "Twisting", "Vanishing", "Whacking", "Whistling", "Wrestling", "Yelling"];
var nm2 = ["Bang-a-bash", "Bang-a-boom", "Bang-a-clang", "Bang-a-plash", "Bang-a-pok", "Bang-a-rang", "Bang-a-roo", "Bang-a-slam", "Bang-a-smack", "Bang-a-snap", "Bang-a-splat", "Bang-a-swack", "Bang-a-thoom", "Bang-a-thuk", "Bang-a-tok", "Bang-a-wham", "Bash-a-blap", "Bash-a-boom", "Bash-a-bop", "Bash-a-clang", "Bash-a-donk", "Bash-a-pew", "Bash-a-plash", "Bash-a-pok", "Bash-a-pop", "Bash-a-pow", "Bash-a-rang", "Bash-a-roo", "Bash-a-splat", "Bash-a-thoom", "Bash-a-thuk", "Bash-a-thwack", "Bash-a-wham", "Bash-a-woosh", "Bat-a-bam", "Bat-a-bang", "Bat-a-bash", "Bat-a-bloom", "Bat-a-bomp", "Bat-a-boom", "Bat-a-bop", "Bat-a-clang", "Bat-a-clunk", "Bat-a-klonk", "Bat-a-pew", "Bat-a-plash", "Bat-a-pok", "Bat-a-pop", "Bat-a-pow", "Bat-a-rash", "Bat-a-roo", "Bat-a-slam", "Bat-a-splat", "Bat-a-wham", "Boom-a-clang", "Boom-a-doom", "Boom-a-plash", "Boom-a-roo", "Boom-a-slam", "Boom-a-smack", "Boom-a-snap", "Boom-a-splat", "Boom-a-swack", "Boom-a-thoom", "Boot-a-bam", "Boot-a-bash", "Boot-a-boom", "Boot-a-clang", "Boot-a-pow", "Boot-a-rang", "Boot-a-slam", "Boot-a-smack", "Boot-a-snap", "Boot-a-wham", "Box-a-bash", "Box-a-bomp", "Box-a-pop", "Box-a-pow", "Box-a-rang", "Box-a-splat", "Box-a-wham", "Chop-a-bash", "Chop-a-bomp", "Chop-a-bop", "Chop-a-choom", "Chop-a-chow", "Chop-a-pop", "Chop-a-rang", "Chop-a-roo", "Chop-a-slam", "Chop-a-smack", "Chop-a-thoom", "Chop-a-thwack", "Clonk-a-bash", "Clonk-a-boom", "Clonk-a-bop", "Clonk-a-donk", "Clonk-a-pow", "Clonk-a-slam", "Clonk-a-smack", "Clonk-a-thoom", "Crack-a-bam", "Crack-a-bang", "Crack-a-bash", "Crack-a-boom", "Crack-a-bop", "Crack-a-chow", "Crack-a-donk", "Crack-a-pew", "Crack-a-pop", "Crack-a-pow", "Crack-a-rang", "Crack-a-roo", "Crack-a-slam", "Crack-a-smack", "Crack-a-snap", "Crack-a-splat", "Crack-a-swack", "Crack-a-thock", "Crack-a-wham", "Crack-a-zak", "Jab-a-blap", "Jab-a-slam", "Jab-a-slap", "Jab-a-smack", "Jab-a-snap", "Jab-a-wham", "Kick-a-bash", "Kick-a-boom", "Kick-a-bop", "Kick-a-chow", "Kick-a-pew", "Kick-a-pow", "Kick-a-roo", "Kick-a-slam", "Kick-a-smack", "Kick-a-snap", "Kick-a-splat", "Kick-a-swack", "Kick-a-thoom", "Kick-a-wham", "Knock-a-bang", "Knock-a-bash", "Knock-a-boom", "Knock-a-donk", "Knock-a-pew", "Knock-a-pop", "Knock-a-pow", "Knock-a-rang", "Knock-a-roo", "Knock-a-slam", "Knock-a-thoom", "Knock-a-wham", "Lash-a-bang", "Lash-a-bash", "Lash-a-pew", "Lash-a-plash", "Lash-a-pow", "Lash-a-rash", "Lash-a-roo", "Lash-a-slam", "Lash-a-swack", "Pat-a-bash", "Pat-a-boom", "Pat-a-pow", "Pat-a-rang", "Pat-a-rash", "Pat-a-roo", "Pat-a-slam", "Pat-a-smack", "Pat-a-thoom", "Pat-a-wham", "Punch-a-bash", "Punch-a-boom", "Punch-a-choom", "Punch-a-lcang", "Punch-a-pow", "Punch-a-rang", "Punch-a-roo", "Punch-a-slam", "Punch-a-smack", "Punch-a-snap", "Punch-a-swack", "Punch-a-thoom", "Punch-a-wham", "Slam-a-bam", "Slam-a-bang", "Slam-a-bash", "Slam-a-boom", "Slam-a-clang", "Slam-a-donk", "Slam-a-pew", "Slam-a-pow", "Slam-a-rang", "Slam-a-roo", "Slam-a-thoom", "Slam-a-wham", "Slap-a-bam", "Slap-a-blap", "Slap-a-bop", "Slap-a-chow", "Slap-a-pow", "Slap-a-raang", "Slap-a-roo", "Slap-a-slam", "Slap-a-smack", "Slap-a-wham", "Slap-a-zap", "Smack-a-bang", "Smack-a-boom", "Smack-a-choom", "Smack-a-chow", "Smack-a-pew", "Smack-a-pow", "Smack-a-rang", "Smack-a-rash", "Smack-a-roo", "Smack-a-slam", "Smack-a-snap", "Smack-a-splat", "Smack-a-swack", "Smack-a-thoom", "Smack-a-thwack", "Smack-a-wham", "Smite-a-pew", "Smite-a-pow", "Smite-a-rang", "Smite-a-roo", "Smite-a-slam", "Smite-a-thoom", "Smite-a-wham", "Snap-a-chow", "Snap-a-pow", "Snap-a-rang", "Snap-a-roo", "Snap-a-slam", "Snap-a-zap", "Sock-a-bash", "Sock-a-bop", "Sock-a-chow", "Sock-a-donk", "Sock-a-pew", "Sock-a-pow", "Sock-a-rang", "Sock-a-roo", "Sock-a-slam", "Sock-a-snap", "Sock-a-thoom", "Sock-a-wham", "Strike-a-chow", "Strike-a-pow", "Strike-a-rang", "Strike-a-roo", "Strike-a-slam", "Swat-a-bam", "Swat-a-bang", "Swat-a-blam", "Swat-a-plash", "Swat-a-pow", "Swat-a-slam", "Swat-a-splat", "Swing-a-bam", "Swing-a-bang", "Swing-a-chow", "Swing-a-pow", "Swing-a-rang", "Swing-a-roo", "Swing-a-slam", "Swipe-a-chow", "Swipe-a-donk", "Swipe-a-roo", "Swipe-a-slam", "Swipe-a-smack", "Thump-a-bang", "Thump-a-bop", "Thump-a-clang", "Thump-a-rang", "Thump-a-roo", "Thump-a-slam", "Thump-a-smack", "Thump-a-swack", "Thump-a-thoom", "Thump-a-wham", "Thwack-a-chow", "Thwack-a-pew", "Thwack-a-pow", "Thwack-a-rang", "Thwack-a-roo", "Thwack-a-smack", "Thwack-a-snap", "Thwack-a-tack", "Tunk-a-bop", "Tunk-a-donk", "Tunk-a-dunk", "Tunk-a-pow", "Tunk-a-rang", "Tunk-a-slam", "Tunk-a-smack", "Tunk-a-wham", "Whack-a-bang", "Whack-a-bash", "Whack-a-chow", "Whack-a-pew", "Whack-a-pop", "Whack-a-pow", "Whack-a-rang", "Whack-a-roo", "Whack-a-slam", "Whack-a-smack", "Whack-a-snap", "Whack-a-splat", "Whack-a-swack", "Whack-a-thoom", "Whack-a-tok", "Whack-a-zap", "Wham-a-bam", "Wham-a-bang", "Wham-a-boom", "Wham-a-chow", "Wham-a-pow", "Wham-a-rang", "Wham-a-roo", "Wham-a-slam", "Wham-a-smack", "Wham-a-snap", "Wham-a-splat", "Whop-a-bop", "Whop-a-chow", "Whop-a-clang", "Whop-a-pop", "Whop-a-pow", "Whop-a-rang", "Whop-a-roo", "Whop-a-slam", "Whop-a-smack", "Whop-a-snap", "Whop-a-splat", "Zap-a-blap", "Zap-a-bop", "Zap-a-chow", "Zap-a-clang", "Zap-a-rang", "Zap-a-roo", "Zap-a-slam", "Zap-a-smap", "Zap-a-splat", "Zap-a-thoom", "Zap-a-tok"];
var br = "";
$('#placeholder').css('textTransform', 'capitalize');
var tp = type;
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
rnd = Math.random() * nm1.length | 0;
rnd2 = Math.random() * nm2.length | 0;
names = nm1[rnd] + " " + nm2[rnd2];
nm1.splice(rnd, 1);
nm2.splice(rnd2, 1);
br = document.createElement('br');
element.appendChild(document.createTextNode(names));
element.appendChild(br);
}
if (document.getElementById("result")) {
document.getElementById("placeholder").removeChild(document.getElementById("result"));
}
document.getElementById("placeholder").appendChild(element);
}