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
5.2 KiB
JavaScript

var br = "";
function nameGen(type) {
var tp = type;
var nm1 = ["Active", "Adaptable", "Adventurous", "Agreeable", "Alert", "Ambitious", "Anticipative", "Appreciative", "Articulate", "Athletic", "Attentive", "Balanced", "Benevolent", "Brave", "Calm", "Capable", "Careful", "Caring", "Charismatic", "Charitable", "Charming", "Cheerful", "Clean", "Clear-Headed", "Clever", "Compassionate", "Confident", "Contemplative", "Cooperative", "Courageous", "Courteous", "Creative", "Critical Thinker", "Cultured", "Curious", "Daring", "Decent", "Decisive", "Dedicated", "Dependable", "Dignified", "Directed", "Disciplined", "Discreet", "Driven", "Dutiful", "Dynamic", "Earnest", "Educated", "Efficient", "Elegant", "Eloquent", "Empathetic", "Energetic", "Enthusiastic", "Fair", "Faithful", "Flexible", "Focused", "Forgiving", "Forthright", "Friendly", "Gallant", "Generous", "Gentle", "Genuine", "Good Judge of Character", "Good Listener", "Good-Natured", "Gracious", "Hardworking", "Helpful", "Heroic", "Honest", "Honorable", "Humble", "Humorous", "Imaginative", "Incorruptible", "Independent", "Innovative", "Inoffensive", "Insightful", "Intelligent", "Interesting", "Intuitive", "Kind", "Leaderly", "Level-Headed", "Logical", "Lovable", "Loyal", "Mature", "Modest", "Moral", "Neat", "Observant", "Open-Minded", "Orderly", "Organized", "Passionate", "Patient", "Peaceful", "Perceptive", "Playful", "Practical", "Principled", "Protective", "Punctual", "Rational", "Realistic", "Reflective", "Relaxed", "Reliable", "Reliant", "Resourceful", "Respectful", "Responsible", "Responsive", "Self-Critical", "Self-Reliant", "Self-Sufficient", "Selfless", "Sensitive", "Skillful", "Smart", "Sober", "Sociable", "Social", "Stable", "Strong", "Sweet", "Sympathetic", "Tidy", "Tolerant", "Trustworthy", "Understanding", "Upright", "Warm", "Warm-Hearted", "Wise", "Witty", "Worldly"];
var nm2 = ["Abrasive", "Absent-Minded", "Abusive", "Addictive Personality", "Aimless", "Amoral", "Antisocial", "Anxious", "Arrogant", "Artificial", "Asocial", "Attention Seeker", "Audacious", "Authoritarian", "Bad Listener", "Bigmouth", "Bigot", "Blameless", "Bland", "Blindly Obedient", "Blunt", "Boring", "Brutal", "Brutally Honest", "Callous", "Captain Obvious", "Careless", "Chaotic", "Cheap", "Childish", "Claustrophobic", "Clumsy", "Coarse", "Cold", "Conceited", "Control Freak", "Corrupter", "Corruptible", "Coward", "Crass", "Crude", "Cruel", "Deceitful", "Demanding", "Deranged", "Destructive", "Devious", "Dirty", "Dishonest", "Disloyal", "Disobedient", "Disorderly", "Disorganized", "Distracted", "Disturbed", "Dubious", "Dull", "Egotistical", "Entitled", "Envious", "Erratic", "Extremist", "Fanatical", "Fickle", "Finicky", "Forgetful", "Fraudulent", "Glory Seeker", "Gluttonous", "Graceless", "Greedy", "Grinch", "Gruff", "Gullible", "Hedonistic", "Hero Syndrome", "Hostile", "Humourless", "Hypocrite", "Idiotic", "Ignorant", "Illiterate", "Immature", "Immodest", "Impatient", "Incapable", "Incompetent", "Indecisive", "Indifferent", "Insensitive", "Intolerant", "Invisible", "Irrational", "Jealous", "Judgmental", "Lazy", "Lewd", "Liar", "Lustful", "Manipulative", "Masochist", "Meddlesome", "Messy", "Misguided", "Monstrous", "Moody", "Morbid", "Naive", "Narcissist", "Narrow-Minded", "Naughty", "Neat Freak", "Nervous", "Nosey", "Oblivious", "Obnoxious", "Obsessive", "Oppressive", "Overambitious", "Overconfident", "Overemotional", "Overly Competitive", "Overly Dependent", "Overly Picky", "Overly Shy", "Overprotective", "Overzealous", "Paranoid", "Pedantic", "Peevish", "Perfectionist", "Perverted", "Pessimist", "Petty", "Phobic", "Pompous", "Possessive", "Power Drunk", "Power-Hungry", "Prankster", "Predictable", "Prejudiced", "Pretentious", "Primadonna", "Procrastinator", "Provocative", "Psychopathic", "Rebellious", "Reckless", "Reclusive", "Remorseless", "Resentful", "Righteous", "Sadist", "Sarcastic", "Schemer", "Scheming", "Scrooge", "Selfish", "Senile", "Shallow", "Shortsighted", "Shut-In", "Single-Minded", "Skewed Priorities", "Slacker", "Sleepyhead", "Slimeball", "Sloppy", "Slow", "Sly", "Socially Awkward", "Solemn", "Sore Loser", "Sore Winner", "Spineless", "Spiteful", "Spoiled", "Squeamish", "Stubborn", "Stupid", "Superstitious", "Tactless", "Tease", "Temperamental", "Timid", "Troublemaker", "Uncharitable", "Undisciplined", "Ungrateful", "Unimaginative", "Unlucky", "Unstable", "Untrustworthy", "Vain", "Vindictive", "Violent", "Vulnerable", "Weak", "Weak-Willed", "Wild Card", "Without Direction", "Workaholic"];
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
if (tp === 1) {
rnd = Math.random() * nm2.length | 0;
nMs = nm2[rnd];
nm2.splice(rnd, 1);
} else {
rnd = Math.random() * nm1.length | 0;
nMs = nm1[rnd];
nm1.splice(rnd, 1);
}
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);
}