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

necronomiconNames.js (2075B)


      1 var nm1 = ["Tome", "Book", "Grimoire"];
      2 var nm2 = ["Bargains", "Codes", "Command", "Covenants", "Knowledge", "Laws", "Mandates", "Mastery", "Names", "Orders", "Principles", "Rules", "Standards"];
      3 var nm3 = ["Aeon", "Annihilation", "Balance", "Beyond", "Blood", "Brimstone", "Chaos", "Curses", "Darkness", "Death", "Demise", "Dissolution", "Doom", "Dying", "Echoes", "Endings", "Eternity", "Existence", "Faith", "Fatality", "Fiends", "Forever", "Ghosts", "Gods", "Graves", "Heaven", "Hell", "Horrors", "Immortality", "Immortals", "Life", "Light", "Limbo", "Loss", "Misery", "Mortality", "Mortals", "Necrosis", "Nightmares", "Nothingness", "Oblivion", "Phantoms", "Purgatory", "Reapers", "Regret", "Requiem", "Return", "Revival", "Ruin", "Sadness", "Shadows", "Slumber", "Sorrow", "Souls", "Spirits", "Suffering", "Survival", "Tombs", "Twilight", "Undeath", "Undying", "Vitality", "the Abyss", "the Afterlife", "the Ancient", "the Ancients", "the Beyond", "the Dead", "the Deceased", "the Dying", "the End", "the Gods", "the Grave", "the Inevitable", "the Inferno", "the Living", "the Lost", "the Primals", "the Reaper", "the Spirits", "the Undead", "the Underworld", "the Void"];
      4 var br = "";
      5 
      6 function nameGen() {
      7     var element = document.createElement("div");
      8     element.setAttribute("id", "result");
      9     for (i = 0; i < 10; i++) {
     10         rnd = Math.random() * nm1.length | 0;
     11         rnd2 = Math.random() * nm2.length | 0;
     12         rnd3 = Math.random() * nm3.length | 0;
     13         if (i < 3) {
     14             nMs = nm1[rnd] + " of " + nm3[rnd3];
     15         } else if (i < 7) {
     16             nMs = nm2[rnd2] + " of " + nm3[rnd3];
     17         } else {
     18             nMs = nm1[rnd] + " of " + nm2[rnd2] + " of " + nm3[rnd3];
     19         }
     20         br = document.createElement('br');
     21         element.appendChild(document.createTextNode(nMs));
     22         element.appendChild(br);
     23     }
     24     if (document.getElementById("result")) {
     25         document.getElementById("placeholder").removeChild(document.getElementById("result"));
     26     }
     27     document.getElementById("placeholder").appendChild(element);
     28 }