You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
2.7 KiB
JavaScript
47 lines
2.7 KiB
JavaScript
var nm1 = ["a", "i", "o", "a", "i", "o", "e"];
|
|
var nm2 = ["b", "d", "g", "k", "m", "n", "p", "q", "r", "v", "z"];
|
|
var nm3 = ["a", "o", "u", "e", "i"];
|
|
var nm4 = ["h", "l", "n", "sh", "r", "v", "y", "z"];
|
|
var nm5 = ["a", "e", "i", "o"];
|
|
var nm6 = ["Archo", "Arma", "Armage", "Battle", "Bomber", "Boom", "Boulder", "Brass", "Bubble", "Burst", "Buster", "Cannon", "Chaos", "Chemi", "Chrono", "Clock", "Copper", "Cracker", "Cryo", "Darko", "Data", "Devi", "Devil", "Divi", "Drama", "Ele", "Electri", "Eterni", "Extremo", "Extri", "Fargo", "Favo", "Feather", "Fire", "Flamo", "Flavo", "Flocko", "Fluke", "Fogger", "Fortu", "Frogger", "Giga", "Habi", "Happy", "Helli", "Hello", "Horror", "Impulso", "Indi", "Infini", "Insani", "Instru", "Inter", "Invinci", "Invisi", "Jelly", "Judge", "Jugga", "Jugger", "Killer", "Lava", "Livi", "Loyal", "Lumber", "Magma", "Marble", "Mecha", "Memo", "Parto", "Phantom", "Photo", "Plasma", "Poison", "Power", "Prism", "Proto", "Pulso", "Pyro", "Quiver", "Requi", "Resi", "Riddle", "Sangui", "Sensor", "Serpen", "Servi", "Shifter", "Slither", "Slumber", "Smogger", "Smogo", "Sorrow", "Spider", "Spirit", "Storm", "Terror", "Thriller", "Thunder", "Trouble", "Venom", "Volcano"];
|
|
var nm7 = ["bot", "dor", "dron", "gine", "matic", "mator", "mech", "natic", "naut", "nech", "nel", "nhoid", "nic", "nical", "nit", "noid", "nought", "nus", "ratic", "rhoid", "roid", "star", "ster", "stym", "tic", "tresh", "tress", "tric", "trix", "tron"];
|
|
var br = "";
|
|
|
|
function nameGen() {
|
|
$('#placeholder').css('textTransform', 'capitalize');
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
for (i = 0; i < 10; i++) {
|
|
if (i < 5) {
|
|
nameMas();
|
|
while (nMs === "") {
|
|
nameMas();
|
|
}
|
|
} else {
|
|
rnd = Math.random() * nm6.length | 0;
|
|
rnd2 = Math.random() * nm7.length | 0;
|
|
nMs = nm6[rnd] + nm7[rnd2];
|
|
}
|
|
br = document.createElement('br');
|
|
element.appendChild(document.createTextNode(nMs));
|
|
element.appendChild(br);
|
|
}
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|
|
|
|
function nameMas() {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
rnd2 = Math.random() * nm2.length | 0;
|
|
rnd3 = Math.random() * nm3.length | 0;
|
|
rnd4 = Math.random() * nm4.length | 0;
|
|
rnd5 = Math.random() * nm5.length | 0;
|
|
while (nm2[rnd2] === nm4[rnd4]) {
|
|
rnd4 = Math.random() * nm4.length | 0;
|
|
}
|
|
nMs = nm1[rnd] + nm2[rnd2] + nm3[rnd3] + nm4[rnd4] + nm5[rnd5];
|
|
testSwear(nMs);
|
|
}
|