offline-fantasy-name-generators

Offline version of www.fantasynamegenerators.com
git clone https://git.neptards.moe/neptards/offline-fantasy-name-generators.git
Log | Files | Refs | README

avatarStores.js (2429B)


      1 function nameGen() {
      2     var nm1 = ["Adamant", "Air", "Airy", "Amazing", "Ancient", "Aquatic", "Aromatic", "Austere", "Autumn", "Beloved", "Black", "Blazing", "Blind", "Bold", "Bountiful", "Brave", "Bright", "Bronze", "Cozy", "Curious", "Dapper", "Defiant", "Diligent", "Drunk", "Earnest", "Earth", "Earthen", "Eastern", "Elegant", "Emerald", "Enchanted", "Enlightened", "Exalted", "Excited", "Fabulous", "Fearless", "Fire", "Flaming", "Fragrant", "Frosty", "Frozen", "Gentle", "Golden", "Gracious", "Great", "Handsome", "Happy", "Honorable", "Humble", "Hungry", "Idle", "Infamous", "Iron", "Jade", "Jolly", "Kindred", "Laughing", "Little", "Lone", "Lost", "Lucky", "Mellow", "Modest", "Mysterious", "Northern", "Parched", "Peaceful", "Playful", "Proud", "Radiant", "Royal", "Ruby", "Rustic", "Sapphire", "Seasonal", "Secret", "Serene", "Silent", "Silk", "Sleepy", "Smiling", "Southern", "Sparkling", "Spring", "Summer", "Sweet", "Tranquil", "United", "Velvet", "Vibrant", "Virtuous", "Volatile", "Water", "Western", "Whimsical", "White", "Wild", "Winter", "Wise", "Worthy"];
      3     var nm2 = ["Arrow", "Bacui", "Badgerfrog", "Badgermole", "Banyan", "Bender", "Bison", "Blossom", "Boomerang", "Bow", "Cat", "Comet", "Cottage", "Crown", "Den", "Djembe", "Dog", "Dragon", "Dragonfly", "Drum", "Elephant Koi", "Erhu", "Explorer", "Ferret", "Flower", "Glider", "Grove", "Hog Monkey", "Jasmine", "Jewel", "Katana", "Koalaotter", "Koi", "Leaf", "Lemur", "Lily", "Lion Turtle", "Lionturtle", "Lotus", "Lychee", "Panda Lily", "Penguin", "Petal", "Phoenix", "Pillow", "Platypus Bear", "Poodle Monkey", "Scimitar", "Seal", "Serpent", "Shield", "Sparrowkeet", "Spirit", "Sword", "Tiger Monkey", "Tile", "Tsungi", "Turtle Duck", "Unagi", "Wolfbat"];
      4     var br = "";
      5     var element = document.createElement("div");
      6     element.setAttribute("id", "result");
      7     for (i = 0; i < 10; i++) {
      8         rnd = Math.random() * nm1.length | 0;
      9         rnd2 = Math.random() * nm2.length | 0;
     10         nMs = "The " + nm1[rnd] + " " + nm2[rnd2];
     11         nm1.splice(rnd, 1);
     12         nm2.splice(rnd2, 1);
     13         br = document.createElement('br');
     14         element.appendChild(document.createTextNode(nMs));
     15         element.appendChild(br);
     16     }
     17     if (document.getElementById("result")) {
     18         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     19     }
     20     document.getElementById("placeholder").appendChild(element);
     21 }