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

haloJiralhanaeNames.js (1935B)


      1 var nm1 = ["b", "br", "c", "cr", "d", "dr", "f", "g", "gr", "h", "k", "kr", "l", "m", "n", "p", "pr", "r", "s", "t", "tr", "v", "w", "z"];
      2 var nm2 = ["a", "e", "y", "u", "i", "o"];
      3 var nm3 = ["bb", "cc", "ck", "ct", "dd", "gt", "kk", "kt", "ll", "rb", "rc", "rd", "rg", "rk", "rl", "rm", "rn", "rp", "rr", "rs", "rt", "rv", "rz", "ss", "st", "b", "c", "d", "g", "h", "k", "l", "m", "n", "p", "r", "s", "t", "v", "z"];
      4 var nm4 = ["bb", "cc", "ck", "ct", "dd", "gt", "kk", "kt", "ll", "rb", "rc", "rd", "rg", "rk", "rl", "rm", "rn", "rp", "rr", "rs", "rt", "rv", "rz", "ss", "st", "b", "c", "d", "g", "h", "k", "l", "m", "n", "p", "r", "s", "t", "v", "z", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""];
      5 var nm5 = ["us", "um", "eus", "eum", "ion", "ius", "is"];
      6 
      7 function nameGen() {
      8     $('#placeholder').css('textTransform', 'capitalize');
      9     var br = "";
     10     var element = document.createElement("div");
     11     element.setAttribute("id", "result");
     12     for (i = 0; i < 10; i++) {
     13         rnd = Math.floor(Math.random() * nm1.length);
     14         rnd2 = Math.floor(Math.random() * nm2.length);
     15         rnd3 = Math.floor(Math.random() * nm3.length);
     16         rnd4 = Math.floor(Math.random() * nm2.length);
     17         rnd5 = Math.floor(Math.random() * nm4.length);
     18         if (rnd3 < 25) {
     19             while (rnd5 < 25) {
     20                 rnd5 = Math.floor(Math.random() * nm4.length);
     21             }
     22         }
     23         rnd6 = Math.floor(Math.random() * nm5.length);
     24         names = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm2[rnd4] + nm4[rnd5] + nm5[rnd6];
     25         br = document.createElement('br');
     26         element.appendChild(document.createTextNode(names));
     27         element.appendChild(br);
     28     }
     29     if (document.getElementById("result")) {
     30         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     31     }
     32     document.getElementById("placeholder").appendChild(element);
     33 }