planeNames.js (3472B)
1 var nm1 = ["Agile", "Ancient", "Angry", "Arid", "Able", "Bad", "Big", "Bitter", "Black", "Blaring", "Blind", "Blue", "Bold", "Bronze", "Brown", "Buzzing", "Calm", "Classic", "Cold", "Cool", "Crazy", "Cruel", "Dapper", "Dark", "Defiant", "Diligent", "Double", "Eager", "Evil", "False", "Fast", "Fatal", "Feline", "Forsaken", "Free", "Frozen", "Gentle", "Gold", "Golden", "Grand", "Grave", "Gray", "Greedy", "Grim", "Happy", "Harsh", "High", "Hollow", "Hot", "Huge", "Humming", "Hungry", "Idle", "Infamous", "Infinite", "Ironclad", "Jagged", "Keen", "Last", "Lazy", "Light", "Little", "Livid", "Lone", "Long", "Loud", "Low", "Loyal", "Mad", "Major", "Mellow", "Nervous", "Numb", "Old", "Pale", "Parallel", "Prime", "Proud", "Quick", "Quiet", "Ragged", "Rapid", "Rare", "Reckless", "Red", "Regal", "Rough", "Round", "Royal", "Rude", "Sharp", "Shy", "Silent", "Silver", "Slim", "Small", "Smooth", "Subtle", "Sweet", "Swift", "Tiny", "Tough", "Vain", "Vengeful", "Vicious", "Vivid", "Warped", "White", "Wicked", "Wild", "Wise"]; 2 var nm2 = ["Albatross", "Freak", "Banshee", "Voodoo", "Arrow", "Beast", "Bee", "Beetle", "Bird", "Blimp", "Bolt", "Bomb", "Bomber", "Boomerang", "Boy", "Bullet", "Buzzard", "Centurion", "Chick", "Cobra", "Condor", "Crane", "Crow", "Daddy", "Dart", "Darter", "Diver", "Dragon", "Dragonfly", "Ducchess", "Duck", "Duke", "Eagle", "Falcon", "Fly", "Ghost", "Goose", "Gryphon", "Gull", "Harrier", "Hawk", "Hornet", "Ibis", "Jet", "King", "Legionnaire", "Lightning", "Mamba", "Mommy", "Mosquito", "Moth", "Overcast", "Owl", "Pelican", "Phantom", "Queen", "Raven", "Robin", "Rocket", "Serpent", "Shooter", "Sparrow", "Spirit", "Stork", "Thunder", "Torpedo", "Viper", "Vulture", "Widow", "Woodpecker"]; 3 var nm3 = ["Aerial", "Agile", "Air", "Avian", "Azure", "Banshee", "Brass", "Bright", "Chaos", "Cloud", "Dark", "Demon", "Devil", "Dragon", "Dream", "Drift", "Ebon", "Feral", "Flight", "Flying", "Free", "Frost", "Ghost", "Grey", "Heaven", "Hell", "Iron", "Little", "Mad", "Monster", "Night", "Nimble", "Phantom", "Prime", "Quick", "Rapid", "Rogue", "Shadow", "Sky", "Star", "Swift", "Thunder", "Twin", "Wild", "Wrath"]; 4 var nm4 = ["beast", "blast", "blaze", "blitz", "bolt", "bomb", "brute", "bullet", "burst", "charge", "charm", "comet", "core", "cry", "eater", "edge", "fire", "flare", "flight", "flow", "flux", "force", "freak", "fury", "glider", "hail", "heat", "lance", "light", "master", "nova", "pulse", "punch", "pyre", "rage", "raid", "rise", "roar", "rush", "scream", "shade", "spark", "storm", "strike", "thunder", "tooth", "urge", "ward", "wing", "wrath"]; 5 var br = ""; 6 7 function nameGen() { 8 var element = document.createElement("div"); 9 element.setAttribute("id", "result"); 10 for (i = 0; i < 10; i++) { 11 if (i < 5) { 12 rnd = Math.floor(Math.random() * nm3.length); 13 rnd2 = Math.floor(Math.random() * nm4.length); 14 names = nm3[rnd] + nm4[rnd2]; 15 } else { 16 rnd = Math.floor(Math.random() * nm1.length); 17 rnd2 = Math.floor(Math.random() * nm2.length); 18 names = nm1[rnd] + " " + nm2[rnd2]; 19 } 20 br = document.createElement('br'); 21 element.appendChild(document.createTextNode(names)); 22 element.appendChild(br); 23 } 24 if (document.getElementById("result")) { 25 document.getElementById("placeholder").removeChild(document.getElementById("result")); 26 } 27 document.getElementById("placeholder").appendChild(element); 28 }