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

rocNames.js (1856B)


      1 var nm2 = ["beak", "belly", "bill", "breast", "claw", "crest", "crown", "eye", "eyes", "feather", "head", "mantle", "plume", "tail", "talon", "wing", "wings"];
      2 
      3 function nameGen(type) {
      4     var nm1 = ["Acid", "Anger", "Angry", "Beam", "Bitter", "Black", "Blade", "Bleak", "Blood", "Bold", "Bone", "Brass", "Bright", "Broad", "Bronze", "Chaos", "Cloud", "Crazy", "Crimson", "Crown", "Dark", "Dawn", "Dead", "Death", "Demon", "Devil", "Doom", "Draft", "Dread", "Dream", "Dusk", "Dust", "Ebon", "Ember", "Fire", "Flame", "Fog", "Foul", "Frost", "Fume", "Fury", "Ghost", "Giant", "Glass", "Gloom", "Gold", "Grave", "Great", "Grey", "Grim", "Grin", "Half", "Hate", "Hell", "Hollow", "Ice", "Iron", "Jade", "Kill", "Kite", "Light", "Lightning", "Lone", "Lunar", "Mad", "Marsh", "Metal", "Mist", "Moon", "Night", "Onyx", "Phantom", "Primal", "Prime", "Putrid", "Quill", "Rabid", "Rage", "Rain", "Rapid", "Rash", "Razor", "Red", "River", "Shadow", "Silent", "Smoke", "Solar", "Spark", "Spite", "Star", "Stark", "Steel", "Stitch", "Storm", "Sun", "Swift", "Terror", "Thorn", "Thrill", "Thunder", "Twilight", "Venom", "Warp", "Whip"];
      5     var br = "";
      6     $('#placeholder').css('textTransform', 'capitalize');
      7     var tp = type;
      8     var element = document.createElement("div");
      9     element.setAttribute("id", "result");
     10     for (i = 0; i < 10; i++) {
     11         rnd = Math.random() * nm1.length | 0;
     12         rnd2 = Math.random() * nm2.length | 0;
     13         names = nm1[rnd] + nm2[rnd2];
     14         nm1.splice(rnd, 1);
     15         br = document.createElement('br');
     16         element.appendChild(document.createTextNode(names));
     17         element.appendChild(br);
     18     }
     19     if (document.getElementById("result")) {
     20         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     21     }
     22     document.getElementById("placeholder").appendChild(element);
     23 }