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

hpHippogriffNames.js (1333B)


      1 var nm1 = ["Agile", "Beauty", "Blitz", "Breeze", "Brisk", "Buck", "Charge", "Class", "Dart", "Dash", "Draft", "Fleet", "Flow", "Flurry", "Flux", "Gale", "Gentle", "Glamor", "Grace", "Guard", "Gust", "Hale", "Hate", "Hurricane", "Iron", "Keen", "Loud", "Mellow", "Nimble", "Quick", "Quiet", "Rough", "Rush", "Sharp", "Silk", "Soft", "Spirit", "Spry", "Stark", "Steel", "Storm", "Stout", "Strong", "Surge", "Swift", "Tame", "Tender", "Thunder", "Wild", "Wind"];
      2 var nm2 = ["beak", "bill", "claw", "colt", "eye", "feather", "fluff", "fringe", "hoof", "hook", "mane", "plume", "quill", "scream", "screech", "steed", "tail", "talon", "tuft", "wing"];
      3 
      4 function nameGen(type) {
      5     var tp = type;
      6     var br = "";
      7     var element = document.createElement("div");
      8     element.setAttribute("id", "result");
      9     for (i = 0; i < 10; i++) {
     10         rnd = Math.floor(Math.random() * nm1.length);
     11         rnd2 = Math.floor(Math.random() * nm2.length);
     12         names = nm1[rnd] + nm2[rnd2];
     13         br = document.createElement('br');
     14         element.appendChild(document.createTextNode(names));
     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 }