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.
19 lines
4.9 KiB
JavaScript
19 lines
4.9 KiB
JavaScript
function nameGen() {
|
|
var nm1 = ["Find a more interesting life", "Find a thrilling life", "Abandon an ideology", "Answer a call to adventure", "Apologize", "Appease a god", "Appease the gods", "Avenge a family member", "Avenge a friend", "Avoid a person", "Avoid failure", "Avoid responsibilities", "Be a better person", "Be a hero", "Be a master in their field", "Be able to eat", "Be accepted by society", "Be admired", "Be amused", "Be better than their rival", "Be forgiven", "Be in control", "Be left alone", "Be loved", "Be redeemed", "Be remembered", "Be respected", "Be self-sufficient", "Be somebody else", "Be strong", "Be the best they can be", "Become a leader", "Become anonymous", "Become famous", "Become godly", "Become powerful", "Become the strongest", "Belong somewhere", "Better themselves", "Break a habit", "Break an addiction", "Build their own home", "Cause mayhem", "Change a law", "Change the future", "Change the past", "Clear a family member's name", "Clear a friend's name", "Clear their name", "Complete a collection", "Conquer their fear", "Consume everything", "Create a safe world", "Create a utopia", "Create a work of art", "Cure a strange disease", "Destroy corruption", "Destroy evil", "Discover a new planet", "Do nothing", "Do the impossible", "Do the right thing", "Eliminate evil", "End a war", "End suffering of all", "End the conflict", "End the suffering of a family member", "End the suffering of a friend", "Entertain others", "Escape a bad situation", "Escape death", "Escape from their current life", "Escape their destiny", "Establish their own country", "Experience a new culture", "Experience something new", "Explore the oceans", "Explore the unexplored", "Feel like they're worth something", "Fight for their homeland", "Find a cure", "Find a dream job", "Find a job", "Find a legendary creature", "Find a lost friend", "Find a lost lover", "Find a new creative outlet", "Find a new home", "Find a new passion", "Find a purpose", "Find a purpose in life", "Find beauty", "Find excitement", "Find inspiration", "Find love", "Find out a secret", "Find out the fate of a family member", "Find out the fate of a friend", "Find out their true identity", "Find peace within", "Find romance", "Find their muse", "Find true love", "Fix a mistake", "Follow orders", "Forget their past", "Forgive somebody", "Free the animals", "Fulfill a destiny", "Gain the approval of somebody", "Gain what somebody else has", "Get away from their past", "Get rich", "Go on an adventure", "Have a passionate relationship", "Have fun", "Have justice done", "Have more and more", "Have their work recognized", "Have what others have", "Have what they can never have", "Have what they can't have", "Lead a rebellion", "Lift a curse", "Live", "Live a quiet life", "Live dangerously", "Live forever", "Live in peace", "Make a difference", "Make a sacrifice for the greater good", "Make a scientific breakthrough", "Make friends", "Make people smile", "Make sure justice prevails", "More power", "Never be hurt again", "No longer be afraid", "No longer be bored", "Overcome a death sentence", "Overcome a disability", "Overcome mockery from the past", "Overcome stress", "Overthrow the government", "Protect a family member", "Protect a friend", "Protect nature", "Protect the innocent", "Protect the peace", "Protect the planet", "Protect their business", "Protect their family", "Protect their home", "Protect their honor", "Prove a theory", "Prove them wrong", "Reach perfection", "Reach the promised lands", "Reconcile with a person", "Redeem somebody", "Regain their honor", "Remain hidden", "Repay a debt", "Repay a life debt", "Resolve their guilt", "Restart the world", "Retrieve a lost item", "Retrieve a stolen item", "Reunite with a family member", "Reunite with a lost friend", "Revenge", "Rid the world of evil", "Rule the city", "Run for the borders", "Satisfy their curiosity", "Save Christmas", "Save a deity", "See others suffer", "See the gods pay for their crimes", "See the world", "Solve a mystery", "Solve an ancient mystery", "Spread chaos", "Spread joy", "Spread their ideology", "Stand out from the crowd", "Start a business", "Start a family", "Start a new world", "Stop a criminal", "Take a new direction in life", "Thwart destiny", "To fit in", "Travel back into the past", "Travel in space", "Travel into the future", "Uncover a secret plot", "Win a competition", "Win a game", "Write a book"];
|
|
var br = "";
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
for (i = 0; i < 10; i++) {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
names = nm1[rnd] + ".";
|
|
nm1.splice(rnd, 1);
|
|
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);
|
|
}
|