gymNames.js (2296B)
1 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"]; 2 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"]; 3 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"]; 4 var nm4 = ["Fitness", "Gym", "Gymnasium", "Center", "Fitness", "Gym", "Gymnasium", "Center", "Fitness Center"]; 5 var br = ""; 6 7 function nameGen() { 8 var element = document.createElement("div"); 9 element.setAttribute("id", "result"); 10 for (i = 0; i < 10; i++) { 11 nTp = Math.random() * 2 | 0; 12 if (nTp === 0) { 13 rnd = Math.random() * nm1.length | 0; 14 rnd2 = Math.random() * nm2.length | 0; 15 names = nm1[rnd] + " " + nm2[rnd2]; 16 } else { 17 rnd = Math.random() * nm3.length | 0; 18 rnd2 = Math.random() * nm4.length | 0; 19 names = nm3[rnd] + " " + nm4[rnd2]; 20 } 21 br = document.createElement('br'); 22 element.appendChild(document.createTextNode(names)); 23 element.appendChild(br); 24 } 25 if (document.getElementById("result")) { 26 document.getElementById("placeholder").removeChild(document.getElementById("result")); 27 } 28 document.getElementById("placeholder").appendChild(element); 29 }