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.

21 lines
3.3 KiB
JavaScript

var nm1 = ["Aberrant", "Absent", "Acrobatic", "Adamant", "Adventure", "Albatross", "Ambition", "Ant", "Aristocat", "Aromatic", "Balloon", "Bandana", "Barbaric", "Bat Wing", "Battle", "Bear Claw", "Beauty", "Beetle", "Bell's Toll", "Berserk", "Big Wave", "Bitter", "Bizarre", "Blood", "Blue Whale", "Bored", "Broken Bottle", "Bubble", "Bull's Eye", "Cabbage", "Candlelight", "Carefree", "Carpe Diem", "Cash Cow", "Chain", "Champion", "Chaos", "Cheeky", "Clover", "Cobweb", "Colorful", "Colorless", "Courageous", "Crafty", "Craven", "Crazy", "Crow", "Crow's Nest", "Crown", "Crown Jewel", "Cutting Edge", "Daydream", "Dazzling", "Defiant", "Delirious", "Diamond", "Dinosaur", "Discount", "Disguised", "Donkey", "Dream", "Drunk", "Eagle Eye", "Earthquake", "Elderly", "Elegance", "Enchanted", "Ethereal", "Ethical", "Exit Plan", "Fabulous", "False", "False Hope", "Fanged", "Favored", "Feather", "Festive", "Fire", "First", "Flamboyant", "Flame", "Flower", "Fluffy", "Fluke", "Foamy", "Fog", "Forgetful", "Forsaken", "Fortune's", "Four-Leaf Clover", "Frozen", "Garden", "Gentle", "Ghost", "Giant", "Gifted", "Glorious", "Golden", "Goldfish", "Grand", "Grand Carp", "Grand Feast", "Grotesque", "Harbor", "Harmony", "Hearsay", "Heavenly", "Hermit Crab", "Hidden", "Hollow", "Honest", "Honorable", "Humongous", "Hungry", "Hypnotic", "Icicle", "Impulse", "Infamous", "Innocent", "Justice", "Kaleidoscope", "Ladybug", "Last Laugh", "Lazy", "Lizard", "Lonely", "Lovable", "Lucky", "Luxurious", "Mad", "Majestic", "Maniac", "Marked", "Masked", "Maximum", "Mellow", "Merciful", "Mindless", "Minimum", "Mirage", "Mirror Image", "Mountain", "Muscle Power", "Mysterious", "Nightmare", "Nimble", "Nocturnal", "Ornament", "Patchwork", "Peaceful", "Pelican", "Perfect Storm", "Perfumed", "Pinky Swear", "Pitch Perfect", "Poetry", "Poison", "Portly", "Prism", "Prize", "Punctual", "Quality", "Quiet", "Rabbit", "Radiant", "Raven", "Rebel", "Reckless", "Regular", "Revolution", "Rhythm", "Riddle", "River", "Ruthless", "Scary", "Second", "Secret", "Serpent", "Serpentine", "Shadow", "Shivering", "Silent", "Silver Piece", "Silverback", "Siren Song", "Skeletal", "Skeleton", "Sleepy", "Smiling", "Snail", "Spider", "Storm", "Striped", "Surprise", "Suspicious", "Swift", "Thunder", "Thunderstorm", "Tomorrow's", "Toothless", "Treebeard", "Trustworthy", "Typhoon", "Unarmed", "Unlucky", "Unsung", "Unusual", "Vagabond", "Vengeful", "Venom", "Vicious", "Victory", "Violet", "Volatile", "Whaleshark", "Whirlpool", "Whirlwind", "Wicked", "Winged", "Wretched"];
var nm2 = ["Pirates", "Pirates", "Pirates", "Pirates", "Pirates", "Pirates", "Pirates", "Pirates", "Unit", "Knights", "Sisters", "Brothers", "Alliance", "Guard", "Guards", "Squad", "Branch", "Patrol", "Soldiers", "Party"];
var br = "";
function nameGen() {
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];
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);
}