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
2.4 KiB
JavaScript

var nm1 = ["Adventure", "Aegis", "Aeolus", "Aether", "Albatross", "Anemoi", "Angel", "Aura", "Aurora", "Black Swan", "Blossom", "Blue Jay", "Bonus", "Boreas", "Celeste", "Champion", "Chickadee", "Clover", "Comfort", "Condor", "Cosmos", "Crane", "Crescent", "Crown", "Curiosity", "Delight", "Desire", "Diamond", "Diorama", "Discovery", "Dragon", "Dragoon", "Dream", "Dreamline", "Dreamscape", "Eagle", "Eclipse", "Elegance", "Elysium", "Emerald", "Enigma", "Intrepid", "Eos", "Excalibur", "Expedition", "Exploration", "Explorer", "Fairy", "Falcon", "Felicity", "Firebird", "Flamingo", "Free", "Freedom", "Future", "Globetrotter", "Goldleaf", "Grace", "Great Owl", "Griffin", "Happiness", "Happy", "Harmony", "Hawk", "Heirloom", "Helios", "Heritage", "Heron", "Hippogriff", "Hummingbird", "Ibis", "Independence", "Ivory", "Jade", "Journey", "Kestrel", "Kingfisher", "Ladybug", "Laughing Gull", "Liberty", "Little Gift", "Luxury", "Macaw", "Majesty", "Malachite", "Memories", "Merlin", "Moonlight", "Nebula", "Nightingale", "Nimbus", "Njord", "Nova", "Obsidian", "Odin", "Onyx", "Opportunity", "Oracle", "Osprey", "Paradise", "Paragon", "Pegasus", "Pelican", "Phoenix", "Pinnacle", "Possibility", "Rainbow", "Raven", "Robin", "Rose", "Royal", "Royal Crown", "Ruby", "Sapphire", "Saranyu", "Satisfaction", "Silk", "Simple", "Smile", "Sparkle", "Sparrow", "Spirit", "Starlight", "Stork", "Summit", "Sunrise", "Sunset", "Surprise", "Swallow", "Swan", "Swift", "Thrill", "Throne", "Thunderbird", "Tranquility", "Triumph", "Turtle Dove", "Vayu", "Voyage", "Wanderlust", "Wyvern", "Zephyr", "Zeus"];
var nm2 = ["", "Air", "Air", "Airlines", "Airways", "Airlines", "Airways", "Airlines", "Airways", "Airlines", "Airways", "Airlines", "Airways", "Airlines", "Airways", "Express"];
function nameGen() {
var br = "";
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);
}