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

var nm1 = ["A creative day with", "Abandoned by", "Abduction of", "Accused by", "Adopted by", "Advice of", "Alien life with", "Alone in the world with", "Arguements of", "Attacked by", "Audition of", "Babysitting you", "Barbecue party with", "Being famous with", "Being spontaneous with", "Betrayal of", "Birthday of", "Blind date with", "Boardgames with", "Body switch with", "Break up of", "Breakfast with", "Breaking the law with", "Broken promise of", "Campfire story of", "Camping with", "Car accident with", "Celebrating a holiday with", "Celebrating an anniversary with", "Celebrating with", "Changing history with", "Changing lives with", "Charity work with", "Cheated by", "Cleaning the house with", "Climbing a mountain with", "Climbing a volcano with", "Climbing trees with", "Clones of", "Competing", "Competition performance of", "Complaints of", "Cooking with", "Corruption of", "Cosmetic surgery of", "Courage of", "Culture of", "Daily life of", "Dancing with", "Day at a convention with", "Day at the beach with", "Day at the park with", "Day of work of", "Day out with", "Decision of", "Disappearance of", "Disappointment of", "Discovering a new town with", "Disease of", "Double life of", "Dream of", "Dull evening with", "Dungeon crawling with", "Eating out with", "Emberrassed by", "End of the world with", "Enemies of", "Exploring ancient ruins with", "Family of", "Farm life with", "Fears of", "Fight to death with", "Fighting for", "First date with", "Forgiven by", "Forgiving", "Friends of", "Funny dinner with", "Garage sale with", "Ghost hunting with", "Gift for", "Gift from", "Gifts from", "Great day of", "Guarding your house with", "Habits of", "Hatred of", "Held hostage with", "Helping others with", "Helping out", "History of", "Hitch-hiking with", "Holiday with", "Homeless with", "Honesty of", "Hopes of", "Horoscope of", "Horror story of", "Hurricane hunting with", "Identical twin of", "Imprisonment of", "In heaven with", "In hell with", "In hospital with", "Inside the mind of", "Island life with", "Jungle exploring with", "Laughing with", "Learning a new skill with", "Leaving earth with", "Lies of", "Life with", "Living on the moon with", "Living the dream with", "Living with", "Locked in a zoo with", "Locked up by", "Locked up with", "Long plane flight with", "Long train ride with", "Lost at night with", "Lost at sea with", "Lost in a rainforest with", "Lost in the mountains with", "Lost in the woods with", "Lost in time with", "Love of", "Magic powers of", "Making a movie with", "Making dreams come true with", "Making history with", "Making three wishes with", "Married to", "Monster hunting with", "Moving away with", "Moving in with", "Murder mystery with", "New year's eve with", "Nightmare of", "On a cruise with", "Party with", "Performing with", "Pillow fight with", "Playing a TV show game with", "Playing games with", "Pool party with", "Pranked by", "Pranking", "Prejudice against", "Proud of", "Raised by", "Raising a pet with", "Reality show with", "Receiving 1 million from", "Relaxing with", "Remodelling your room with", "Rescueing", "Reunion of", "Right choice of", "Road trip with", "Role model of", "Ruling the world with", "Running a marathon with", "Saving the world with", "Scuba diving with", "Secret admirer of", "Secret life of", "Separation of", "Shopping with", "Sick day of", "Sleepover with", "Snowed in with", "Space travel with", "Spending 1 million on", "Spending 1 million with", "Spending a day with", "Spending the summer with", "Spending the winter with", "Spending time in nature with", "Staying up all night with", "Sticking up for", "Superpowers of", "Surprise party for", "Surviving a hurricane with", "Surviving disaster with", "Surviving the apocalypse with", "Surviving war with", "Taking care of", "Terrible day of", "Time travel with", "Tournament with", "Traditions of", "Training animals with", "Treasure hunting with", "Virtual reality with", "Wedding of", "Weekend away with", "Working with", "World travel with", "Wrong choice of"];
var nm2 = ["a Disney character", "a Muppet", "a Roman", "a Spartan", "a band", "a barbarian", "a beggar", "a blind person", "a cat", "a caveman/cavewoman", "a celebrity", "a centaur", "a clown", "a colleague", "a comedian", "a comic/manga/etc character", "a cop", "a coward", "a cowboy", "a crazy professor", "a creepy stranger", "a criminal", "a cyborg", "a deaf person", "a demon", "a dinosaur", "a doctor", "a dog", "a dragon", "a dream creature", "a dwarf", "a fairy", "a famous musician", "a fictional character", "a fire fighter", "a freak", "a genie", "a ghost", "a giant", "a gnome", "a goblin", "a god", "a griffin", "a hacker", "a half-elf", "a half-orc", "a highly intelligent animal", "a historic figure", "a hitch-hiker", "a hobo", "a hologram", "a horse", "a hunter", "a journalist", "a king", "a knight", "a liar", "a living snowman", "a magician", "a man", "a martial art professional", "a mechanic", "a mermaid/mernan", "a minotaur", "a model", "a monk", "a monkey", "a mutant", "a mute person", "a mysterious stranger", "a mythical creature", "a nightmare creature", "a ninja", "a nomad", "a nurse", "a paladin", "a paramedic", "a parrot", "a pessimist", "a phoenix", "a pilot", "a pirate", "a pretentious snob", "a professional thief", "a psychic", "a queen", "a random student", "a robot", "a robot version of you", "a rogue", "a scientist", "a sentient tree", "a skeleton", "a snake", "a soldier", "a spoiled person", "a stranger", "a super villain", "a superhero", "a survival expert", "a telepath", "a time traveller", "a titan", "a toddler", "a traveller", "a troll", "a tv show character", "a vampire", "a very stubborn person", "a viking", "a waiter/waitress", "a wannabe", "a warlock", "a werewolf", "a wise old (wo)man", "a witch", "a wizard", "a woman", "a writer", "a zombie", "an Olympic athlete", "an acrobat", "an addict", "an alien", "an angel", "an animal companion", "an annoying person", "an arsonist", "an astronaut", "an elephant", "an elf", "an enemy", "an escaped convict", "an evil fictional character", "an evil historical figure", "an ex", "an expert", "an idiot", "an imaginary friend", "an internet troll", "an ogre", "an old enemy", "an online stranger", "an optimist", "an orc", "an overly emotional person", "cupid", "enemies", "fictional characters", "five friends", "five students", "friends", "historic figures", "santa", "someone who can't understand you", "the abominable snowman", "the boy scouts", "the dentist", "the ghost of somebody famous", "the girl scouts", "the grim reaper", "the in-laws", "the neighbors", "the president", "three friends", "two friends", "your (long lost) twin", "your baby brother", "your baby sister", "your best friend", "your best friends", "your boss", "your boyfriend", "your child(ren)", "your complete opposite", "your cousin", "your crush", "your father", "your father-in-law", "your future self", "your girlfriend", "your grandfather", "your grandmother", "your grandparents", "your husband", "your mother", "your mother-in-law", "your older brother", "your older sister", "your parents", "your past self", "your pets", "your secret admirer", "your siblings", "your soulmate", "your teacher", "your whole family", "your wife", "your worst enemy", "yourself"];
var nm3 = ["(Animal) companion in", "Accusation in", "Adventure of", "Animal cruelty in", "Animal life in", "Apocalypse in", "Ashes in", "Assistant in", "Audience in", "Babysitting in", "Bad advice in", "Bad day in", "Bag of money in", "Beauty in", "Best day in", "Betrayal in", "Birthday in", "Blind date in", "Blind in", "Body swap in", "Boss of", "Bravery in", "Break up in", "Brief encounter in", "Broken promise in", "Bully of", "Busted in", "Camping in", "Celebrity in", "Ceremony in", "Changes in", "Chaos in", "Childhood in", "Children in", "Chosen one in", "Cleaning", "Clones in", "Colosseum of", "Comfort of", "Concert in", "Contest in", "Convention in", "Costumed party in", "Courage in", "Creature of", "Cruelty in", "Cupid in", "Day off in", "Deaf in", "Death in", "Decisions in", "Deserted in", "Destruction of", "Dinner in", "Disappointment in", "Discoveries in", "Disease in", "Dreams of", "Drunk in", "Eating in", "Embarrasment in", "Enemies in", "Epic quest in", "Escaped animal in", "Eternal day in", "Eternal night in", "Failure in", "False accusations in", "Family in", "Fantasies of", "Fear of", "Fight in", "Fighting crime in", "Fire in", "First date in", "First impressions in", "First kiss in", "First night in", "Foes of", "Followed to", "Framed in", "Freaks of", "Freedom in", "Fresh start in", "Friendship in", "Frustration in", "Future of", "Games in", "Gang of", "Ghosts of", "Giant in", "Greed in", "Guardians of", "Guilt in", "Haunting in", "Hermit in", "Heroism in", "Hiding in", "Honesty in", "Honor in", "Horrible choice in", "Humility in", "Identical you in", "Imposters in", "Incident in", "Incriminating photograph in", "Infestation of", "Insecurity in", "Insomnia in", "Invasion in", "Inventions in", "Invitation to", "Job in", "Justice in", "Kindness in", "Knife in", "Language barrier in", "Leader of", "Life in", "Long lost twin in", "Lost in", "Love in", "Love note in", "Loyalty in", "Machines in", "Madness in", "Magic of", "Marriage in", "Midnight in", "Misfits in", "Misfortune in", "Monsters of", "Murder in", "Music from", "Mutation in", "Mute in", "Mysterious door in", "Mysterious package in", "New family in", "New friend in", "New identity in", "New rules in", "New technology in", "Nightmare of", "Noises from", "Only hope in", "Peace of mind in", "Peer pressure", "Personification of", "Pollution of", "Possession in", "Power outages in", "Prejudice in", "Pride in", "Promises in", "Recipe for disaster in", "Reenactment in", "Respect in", "Reunited in", "Romance in", "Romantic encounter in", "Ruler of", "Secret map of", "Security in", "Self-respect in", "Shadows in", "Signs of trouble in", "Sinister stranger in", "Sloth in", "Special delivery in", "Spirits of", "Sports in", "Storm in", "Stranger in", "Strangers of", "Stray animal in", "Super powers in", "Super villain in", "Superhero in", "Surprise in", "Telepathy in", "Terror of", "Three wishes in", "Time travel in", "Tour of", "Tragedy in", "Treasure hunting in", "Treasure of", "Trust in", "Unpaid debts in", "Vacation in", "Vanity in", "Vengeance in", "Waking up in", "War of", "Weapon test in", "Wish granted in", "World record in", "Wrong choice in", "Zombies in"];
var nm4 = ["a bank", "a biodome", "a bus stop", "a cartoon universe", "a chicken coop", "a circus", "a construction yard", "a coral reef", "a cornfield", "a different continent", "a different planet", "a dry lake", "a dystopian world", "a fairy tale universe", "a farmhouse", "a fire station", "a fjord", "a forest clearing", "a forgotten bunker", "a friend's party", "a future world", "a glacier", "a glacier cave", "a historical setting", "a hospital", "a hotel", "a junkyard", "a laboratory", "a lagoon", "a lake", "a luxury hotel", "a meteor crater", "a metro station", "a mountain summit", "a movie universe", "a natural sanctuary", "a police station", "a power plant", "a sanctuary", "a sand castle", "a sinkhole", "a spa", "a stable", "a storm cellar", "a strange tower", "a strange town", "a treehouse", "a tv show", "a utopian world", "a video game universe", "a volcanic island", "a wasteland", "a waterfall", "an asylum", "an empty field", "an underground lair", "an underground pit", "an undiscovered cave system", "an uninhabited island", "another country", "another dimension", "autumn", "castle", "earth's orbit", "forbidden ruins", "heaven", "hell", "hot water springs", "nursing home", "paradise", "paradise gardens", "space", "spring", "summer", "the abandoned building", "the abandoned tunnel", "the airport", "the beach", "the broken bridge", "the capitol", "the cinema", "the city center", "the clubhouse", "the concert hall", "the forest", "the garden of Eden", "the graveyard", "the harbor", "the kitchen", "the library", "the local market", "the local restaurant", "the local store", "the local university", "the mall", "the mountains", "the nearby village", "the neighborhood", "the online world", "the park", "the pet store", "the playground", "the prison", "the river", "the river bridge", "the royal palace", "the sacred grounds", "the sea", "the sport stadium", "the streets", "the swamp", "the theater", "the town hall", "the toy store", "the woods", "the workplace", "the zoo", "winter", "your dream house", "your dreams", "your garden", "your house", "your neighbor's house", "your new house", "your parents in law's house", "your room", "your school"];
var br = "";
function nameGen(type) {
var tp = type;
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
if (tp === 1) {
rnd = Math.floor(Math.random() * nm1.length);
rnd2 = Math.floor(Math.random() * nm2.length);
names = nm1[rnd] + " " + nm2[rnd2];
} else {
rnd = Math.floor(Math.random() * nm3.length);
rnd2 = Math.floor(Math.random() * nm4.length);
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);
}