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.

30 lines
2.2 KiB
JavaScript

var nm1 = ["Athlete", "Athletics", "Atlas", "Berserker", "Best Body", "Big Iron", "Big Muscle", "Body", "Brawn", "Core", "Crunch", "Energy", "Fit", "Fitness", "Health", "Herculean", "Muscle", "Olympian", "Physique", "Power", "Power House", "Pump", "Ripped", "Savage", "Stamina", "Strength", "Titanic", "Total Body", "Ultimate Body", "Vitality", "Weight", "Workout"];
var nm2 = ["Boot Camp", "Center", "Club", "Connection", "Den", "Design", "Factory", "Fanatics", "Gym", "Gymnasium", "Habits", "House", "Legends", "Maniacs", "Masters", "Movement", "Nation", "Palace", "Performance", "Pursuit", "Refinery", "Ring", "Room", "Souls", "Stars", "Studio", "Time", "Titans", "Trail", "Training", "Works", "World", "Zone"];
var nm3 = ["Adamantine", "Barbarian", "Behemoth", "Berserker", "Body", "Bold", "Brawny", "Colossal", "Crazed", "Critical", "Defiant", "Dynamic", "Electric", "Elite", "Energetic", "Exalted", "Ferocious", "Fierce", "Fundamental", "Essential", "Epic", "Legendary", "Fearless", "Glorious", "Grand", "Herculean", "Hulking", "Infinite", "Intrepid", "Invincible", "Iron", "Ironclad", "Light", "Mad", "Mighty", "Monster", "Olympian", "Power", "Premium", "Primal", "Prime", "Radiant", "Rebel", "Savage", "Superior", "Supreme", "Titan", "Titanic", "Vigorous", "Wicked", "Wild"];
var nm4 = ["Fitness", "Gym", "Gymnasium", "Center", "Fitness", "Gym", "Gymnasium", "Center", "Fitness Center"];
var br = "";
function nameGen() {
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
nTp = Math.random() * 2 | 0;
if (nTp === 0) {
rnd = Math.random() * nm1.length | 0;
rnd2 = Math.random() * nm2.length | 0;
names = nm1[rnd] + " " + nm2[rnd2];
} else {
rnd = Math.random() * nm3.length | 0;
rnd2 = Math.random() * nm4.length | 0;
names = nm3[rnd] + " " + nm4[rnd2];
}
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);
}