alienPetNames.js (6622B)
1 var nm1 = ["Aether", "Altair", "Aphelion", "Aster", "Astro", "Atlas", "Azimuth", "Baryon", "Blazar", "Blyde", "Bolide", "Boo", "Bose", "Bullet", "Carbon", "Chaos", "Chewy", "Chromos", "Chrono", "Chronos", "Cluster", "Comet", "Core", "Cosmo", "Cosmos", "Creature", "Crescent", "Crimson", "Cyclops", "Dalek", "Darth", "Diablo", "Dock", "Doppler", "Drake", "Dusty", "Einstein", "Element", "Equinox", "Fang", "Fire", "Flare", "Galax", "Gamma", "Ghost", "Gibbs", "Glob", "Grav", "Grog", "Halo", "Hannibal", "Helio", "Hertz", "Hubble", "Hubbles", "Hunter", "Hyde", "Hyper", "Ion", "Irone", "It", "Jabs", "Jet", "Kelvin", "Kepler", "Kraken", "Kuiper", "Lecter", "Lens", "Light", "Lightyear", "Magni", "Malif", "Meridian", "Merlin", "Micron", "Milky", "Moonbeam", "Naut", "Nebula", "Neutron", "Nibbler", "Nova", "Ogre", "Omega", "Orb", "Orbit", "Parallax", "Phantom", "Phase", "Pixel", "Prism", "Pulse", "Pyre", "Pyro", "Radio", "Raye", "Reaper", "Rocket", "Salem", "Sasquatch", "Scar", "Seti", "Shadow", "Sky", "Solace", "Soleil", "Solstice", "Spectre", "Spectro", "Spook", "Spot", "Spud", "Starlight", "Steele", "Syzygy", "Terra", "Thing", "Trojan", "Umbra", "Vayne", "Vlad", "Void", "Xray", "Yoda", "Zero", "Zodiac"]; 2 var nm2 = ["Aerial", "Aire", "Andromeda", "Aphelia", "Astero", "Astral", "Astralle", "Aura", "Aurora", "Celeste", "Chewy", "Chromy", "Chronis", "Cloude", "Comette", "Cookie", "Corona", "Cosmo", "Density", "Duste", "Eclipse", "Ejecta", "Element", "Ellipse", "Enigma", "Equinox", "Eye", "Flare", "Fyre", "Galaxy", "Gamma", "Ghoste", "Gibbsy", "Gravi", "Gravity", "Harpie", "Helio", "Hydra", "Ice", "Infra", "Ion", "Iso", "Light", "Lumi", "Lumina", "Luna", "Magni", "Mare", "Medusa", "Meridian", "Midnight", "Milky", "Moon", "Moonbeam", "Moone", "Moonlight", "Nadir", "Nasa", "Nebula", "Nessie", "Nighte", "Nova", "Oracle", "Orbit", "Ozone", "Patera", "Penumbra", "Pixel", "Plasma", "Polaris", "Prism", "Pulse", "Pyre", "Raye", "Selena", "Seti", "Shade", "Shadow", "Sky", "Skylar", "Sola", "Solare", "Solstice", "Spectra", "Spooky", "Sputs", "Star", "Stardust", "Starlight", "Stella", "Stellar", "Summer", "Sunspot", "Syzygy", "Tera", "Terra", "Therma", "Twilight", "Umbra", "Venus", "Violet", "Voide", "Winter", "Zenith"]; 3 var nm3 = ["", "", "", "", "", "", "b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "v", "w", "y", "z", "b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "v", "w", "y", "z", "b", "c", "d", "f", "g", "h", "j", "k", "l", "m", "n", "p", "r", "s", "t", "v", "w", "y", "z", "ch", "sh", "gr", "br", "gl", "kr", "kl", "pr", "ph", "str", "st", "wr"]; 4 var nm4 = ["a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "ae", "ai", "ao", "au", "ea", "ei", "eo", "eu", "ee", "aa", "ia", "ie", "io", "iu", "oa", "oe", "oo", "ou", "ua", "ue", "ui", "uo", "uu"]; 5 var nm5 = ["b", "c", "d", "g", "h", "k", "l", "m", "n", "r", "s", "t", "v", "x", "y", "z", "b", "c", "d", "g", "h", "k", "l", "m", "n", "r", "s", "t", "v", "x", "y", "z", "b", "c", "d", "g", "h", "k", "l", "m", "n", "r", "s", "t", "v", "x", "y", "z", "b", "c", "d", "g", "h", "k", "l", "m", "n", "r", "s", "t", "v", "x", "y", "z", "bb", "cc", "dd", "gg", "hh", "ll", "mm", "nn", "rr", "ss", "tt", "vv", "xx", "zz", "bl", "br", "by", "cd", "ch", "ck", "cl", "cm", "cn", "cr", "cs", "ct", "cv", "cz", "cst", "cstr", "dr", "dy", "gd", "gl", "gr", "gy", "hk", "hl", "hm", "hn", "hr", "kd", "kl", "km", "kn", "kr", "ky", "kx", "lc", "ld", "lg", "lk", "lm", "ln", "lr", "lt", "lv", "ly", "lz", "nr", "ny", "nz", "ns", "nst", "nstr", "rb", "rc", "rd", "rg", "rk", "rl", "rm", "rn", "rs", "rt", "rst", "rstr", "rv", "rx", "ry", "rz", "sb", "sc", "sd", "sg", "sh", "sk", "sl", "sm", "sn", "sr", "st", "str", "sy", "sz", "tl", "tr", "ty", "tz", "vl", "vr", "vy", "xr", "xy", "zl", "zy"]; 6 var nm6 = ["", "", "", "", "", "", "", "", "c", "d", "g", "h", "k", "l", "m", "n", "r", "s", "t", "x", "c", "d", "g", "h", "k", "l", "m", "n", "r", "s", "t", "x", "rc", "rd", "rg", "rk", "rm", "rn", "rs", "rt", "rx", "rz", "st", "sh", "sz", "ns", "nz"]; 7 var nm7 = ["", "", "", "", "", "", "", "", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "ae", "ea", "ee", "aa", "ia", "ua", "ue"]; 8 9 function nameGen(type) { 10 $('#placeholder').css('textTransform', 'capitalize'); 11 var tp = type; 12 var br = ""; 13 var element = document.createElement("div"); 14 element.setAttribute("id", "result"); 15 for (i = 0; i < 10; i++) { 16 if (tp === 1) { 17 if (i < 6) { 18 rnd = Math.floor(Math.random() * nm2.length); 19 names = nm2[rnd]; 20 } else { 21 rnd = Math.floor(Math.random() * nm3.length); 22 rnd2 = Math.floor(Math.random() * nm4.length); 23 rnd3 = Math.floor(Math.random() * nm5.length); 24 rnd4 = Math.floor(Math.random() * nm4.length); 25 if (rnd2 > 34) { 26 while (rnd4 > 34) { 27 rnd4 = Math.floor(Math.random() * nm4.length); 28 } 29 } 30 rnd5 = Math.floor(Math.random() * nm6.length); 31 rnd6 = Math.floor(Math.random() * nm7.length); 32 if (rnd5 < 8) { 33 rnd6 = 0; 34 } 35 names = nm3[rnd] + nm4[rnd2] + nm5[rnd3] + nm4[rnd4] + nm6[rnd5] + nm7[rnd6]; 36 } 37 } else { 38 if (i < 6) { 39 rnd = Math.floor(Math.random() * nm1.length); 40 names = nm1[rnd]; 41 } else { 42 rnd = Math.floor(Math.random() * nm3.length); 43 rnd2 = Math.floor(Math.random() * nm4.length); 44 rnd3 = Math.floor(Math.random() * nm5.length); 45 rnd4 = Math.floor(Math.random() * nm4.length); 46 if (rnd2 > 34) { 47 while (rnd4 > 34) { 48 rnd4 = Math.floor(Math.random() * nm4.length); 49 } 50 } 51 rnd5 = Math.floor(Math.random() * nm6.length); 52 names = nm3[rnd] + nm4[rnd2] + nm5[rnd3] + nm4[rnd4] + nm6[rnd5]; 53 } 54 } 55 br = document.createElement('br'); 56 element.appendChild(document.createTextNode(names)); 57 element.appendChild(br); 58 } 59 if (document.getElementById("result")) { 60 document.getElementById("placeholder").removeChild(document.getElementById("result")); 61 } 62 document.getElementById("placeholder").appendChild(element); 63 }