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.
28 lines
2.8 KiB
JavaScript
28 lines
2.8 KiB
JavaScript
var nm1 = ["Angle", "Ash", "Battle", "Blade", "Boulder", "Bristle", "Broad", "Burst", "Chain", "Chaos", "Click", "Coil", "Death", "Doom", "Dread", "Dust", "Fire", "Flame", "Frost", "Fume", "Gear", "Gloom", "Grim", "Half", "Hammer", "Hollow", "Hook", "Iron", "Lance", "Light", "Metal", "Mud", "Needle", "Patch", "Pulse", "Quake", "Quill", "Ring", "Rush", "Saw", "Scale", "Scrap", "Sheet", "Shell", "Silver", "Smoke", "Snap", "Soot", "Spark", "Split", "Storm", "Sun", "Switch", "Tall", "Thunder", "Tremor", "Twist", "Whistle"];
|
|
var nm2 = ["back", "beak", "beast", "bird", "brute", "claw", "collar", "crown", "dome", "head", "horn", "jaw", "leg", "limb", "marcher", "mask", "maw", "muzzle", "neck", "rear", "scowl", "skull", "snout", "stalker", "stomper", "strider", "tail", "talon", "tooth", "trailer", "tramper", "tusk", "walker", "wing"];
|
|
var nm3 = ["Absorber", "Adapter", "Alterer", "Analyzer", "Assaulter", "Averter", "Barker", "Booster", "Bouncer", "Brooder", "Bruiser", "Burrower", "Burster", "Carver", "Chaser", "Circler", "Cleaver", "Concealer", "Constrictor", "Corroder", "Crawler", "Croaker", "Cruncher", "Crusher", "Defiler", "Destroyer", "Dodger", "Dozer", "Drifter", "Echo", "Etcher", "Fainter", "Feigner", "Fiddler", "Flincher", "Gazer", "Gripper", "Growler", "Haunter", "Hisser", "Hoarder", "Howler", "Infecter", "Jammer", "Jangler", "Lasher", "Launcher", "Lingerer", "Listener", "Lurcher", "Lurker", "Mangler", "Masker", "Meanderer", "Mimic", "Morpher", "Nestler", "Nibbler", "Oozer", "Paddler", "Percher", "Pioneer", "Pouncer", "Prancer", "Prowler", "Rager", "Rasper", "Rattler", "Retcher", "Roamer", "Roarer", "Rusher", "Rustler", "Scrambler", "Scratcher", "Screecher", "Shifter", "Shrieker", "Shuffler", "Slicer", "Slumberer", "Sneaker", "Splinterer", "Spoiler", "Sprinter", "Stomper", "Stormer", "Stretcher", "Stumbler", "Swerver", "Tangler", "Taunter", "Thrasher", "Thunderer", "Tracker", "Twitcher", "Undoer", "Vanisher", "Waiter", "Wanderer", "Watcher", "Weaver", "Whistler"];
|
|
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) {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
rnd2 = Math.random() * nm2.length | 0;
|
|
nMs = nm1[rnd] + nm2[rnd2];
|
|
} else {
|
|
rnd = Math.random() * nm3.length | 0;
|
|
nMs = nm3[rnd];
|
|
}
|
|
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);
|
|
}
|