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.

35 lines
4.3 KiB
JavaScript

var names1 = ["Alpha", "Angel", "Annihilation", "Apache", "Arachnid", "Ash", "Bane", "Recon", "Assault", "Banshee", "Barrage", "Beast", "Behemoth", "Black Skull", "Blast", "Blitz", "Bravo", "Burning", "Carnage", "Cobra", "Coyote", "Crisis", "Cyclone", "Daemon", "Danger", "Demon", "Disaster", "Dragon", "Electric", "Elimination", "Enigma", "Ethereal", "Extinction", "Feral", "Fiery", "Fire", "Firebolt", "Flux", "Frozen", "Ghost", "Grindstone", "Guardian", "Havoc", "Hazard", "Honor", "Hurricane", "Ice", "Jackal", "Jester", "Leopard", "Lightning", "Lion", "Mammoth", "Marvel", "Miracle", "Mirage", "Monster", "Mutant", "Nemesis", "Nightmare", "Omega", "Oracle", "Padlock", "Panther", "Phantom", "Phoenix", "Plague", "Prodigy", "Rage", "Raid", "Rattle", "Ravage", "Red Demon", "Riot", "Rogue", "Rubble", "Rumble", "Scourge", "Serpent", "Shadow", "Shatter", "Silent", "Silver", "Skirmish", "Spider", "Spirit", "Stampede", "Storm", "Surge", "Thunder", "Tiger", "Titan", "Turtle", "Viper", "Void", "Whisper", "White Skull", "White Wolf", "Wild", "Wipe Out", "Wolf", "Wreckage"];
var names2 = ["Freaks", "Alphas", "Angels", "Silver Angels", "Hellhounds", "Thunderbirds", "Vikings", "Arachnids", "Ashes", "Banshees", "Beasts", "Behemoths", "Black Skulls", "Cobras", "Coyotes", "Cyclones", "Daemons", "Demons", "Dragons", "Enigmas", "Ethereals", "Ferals", "Firebolts", "Ghosts", "Guardians", "Hurricanes", "Jackals", "Jesters", "Leopards", "Lightning Bolts", "Lions", "Mammoths", "Marvels", "Miracles", "Monsters", "Mutants", "Nightmares", "Omegas", "Oracles", "Padlocks", "Panthers", "Black Panthers", "Silver Banshees", "Phantoms", "Phoenixes", "Prodigies", "Red Demons", "Rogues", "Serpents", "Shadows", "Spiders", "Spirits", "Stormwalkers", "Rolling Thunders", "Tigers", "Titans", "Turtles", "Vipers", "Whispers", "White Skulls", "White Wolves", "Wolves", "Barbarians", "Wildlings", "Black Masks", "All Blacks", "Fiends", "War Turtles", "Mongrels", "Spooks", "Silence", "Scepters", "Strikers", "Lone Wolves", "Black Angels", "Black Vipers", "Black Mambas", "Silver Wolves", "White Tigers", "Black Lions", "Silver Lions", "Black Bulls", "Invisible", "Disguised", "Mysteries", "Coverts", "Goliaths", "Black Cats", "Daggers", "Blades", "Eagles", "Falcons", "Hornets", "Red Devils", "Saints", "Stripes", "Hammers", "Wasps", "Red Dragons", "Black Dragons", "Braves", "Golden Tigers", "Knights", "Street Dogs", "Sharks", "Scorpions", "Flames", "Mambas", "Shields", "Jaguars", "Nightowls", "Clockworks", "Valkyries"];
var names3 = ["Advanced", "Classified", "Covert", "Crisis", "Disaster", "Emergency", "Extreme", "Incident", "Pressure", "Situational", "Special", "Specialized", "Standby", "Strategic", "Tactical", "Trauma"];
var names4 = ["Airborne", "Assault", "Assemble", "Combat", "Command", "Control", "Evaluation", "Counter", "Engage", "Force", "Intelligence", "Liberation", "Maintenance", "Management", "Mobilization", "Operation", "Organization", "Pursuit", "Reinforce", "Reconnaissance", "Relief", "Rescue", "Response", "Retaliation", "Salvage", "Service", "Support", "Task", "Tracking", "Training", "Weapons"];
var names5 = ["Crew", "Division", "Squad", "Squadron", "Team", "Unit"];
var names6 = ["Crew", "Squad", "Squadron"];
var br = "";
function nameGen() {
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
if (i < 3) {
rnd = Math.floor(Math.random() * names1.length);
rnd2 = Math.floor(Math.random() * names6.length);
names = "The " + names1[rnd] + " " + names6[rnd2];
} else if (i < 6) {
rnd = Math.floor(Math.random() * names2.length);
names = "The " + names2[rnd];
} else {
rnd = Math.floor(Math.random() * names3.length);
rnd2 = Math.floor(Math.random() * names4.length);
rnd3 = Math.floor(Math.random() * names5.length);
names = names3[rnd] + " " + names4[rnd2] + " " + names5[rnd3];
}
br = document.createElement('br');
element.appendChild(document.createTextNode(names));
element.appendChild(br);
}
if (document.getElementById("result")) {
document.getElementById("placeholder").removeChild(document.getElementById("result"));
}
document.getElementById("placeholder").appendChild(element);
}