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 = ["Advantage", "All doubt", "All ears", "Animal kingdom", "Animals", "Apparatus", "Apples and oranges", "Army of ants", "Around the bush", "Ask and receive", "Atmos", "Atmosphere", "Audience", "Background check", "Badge of honor", "Bag of mysteries", "Balls to the wall", "Bank fault", "Bankrupcy", "Bare to the bone", "Barrage of noise", "Baseless", "Basket case", "Battle grounds", "Battle with myself", "Battleborn", "Battleground", "Beads", "Beads of sweat", "Beasts of beauty", "Beautiful beasts", "Bed of roses", "Beggars and thieves", "Beginner's luck", "Bent out of shape", "Beyond infinity", "Big bad wolf", "Birthday suit", "Bitten bullet", "Bittersweet", "Blank canvas", "Blinded by fame", "Blissful ignorance", "Bloodlust", "Blue moon", "Bold fortune", "Bonus", "Bottom's up", "Brain teaser", "Breaking bread", "Broken ice", "Bullet bites", "Burning bridges", "Bursted bubble", "Bursting bubbles", "Bursting out of my skin", "Cabinet of fools", "Calm after the storm", "Cat eat cat world", "Cat got my tongue", "Cat killed curiosity", "Cat napped", "Catch twentythree", "Cattle in the sky", "Cemetery of the living", "Chained down", "Channel of hatred", "Chaos", "Chaos theory", "Cherry", "Childhood memoires", "Chip off the old block", "Circle of death", "Class act", "Climate changed", "Cloud nine", "Cobweb of lies", "Code word", "Cold shoulder", "Collar of bones", "Commercial brake", "Commercial break", "Committee of despair", "Company of two", "Concept art", "Cookie cutter", "Courage of fools", "Crazy eyes", "Creative director", "Crime of the century", "Criss cross", "Crocodile tears", "Crossing a bridge", "Crowd control", "Crowd funding", "Curiosity", "Curiosity's death", "Curtain fall", "Curves", "Cutting corners", "Damage control", "Dark matters", "Death of roses", "Death's dead", "Decisions decisions", "Dedication", "Dedication to the cause", "Devil's advocate", "Devil's details", "Dime in a half dozen", "Dime in two dozen", "Dinner for one", "District zero", "Doctor in the house", "Don't push this button", "Double trouble", "Down in flames", "Drawing board", "Dread and horror", "Dream big", "Dreams and nightmares", "Easy doesn't do it", "Election perfection", "Elephant in the room", "Emergency", "Emotional wreckage", "Equivalent exchange", "Experience required", "Expert opinion", "Eye for an eye", "Eye of the camera", "Eye to eye", "Fascination", "Fault of treasures", "Favoritism", "Feast of nothing", "Fifth chance", "Fight and flight", "Final breath", "Final draft", "Final hour", "Final impact", "Final straw", "First chance", "Five-leaf clover", "Flower shower", "Fluke", "Focus", "For eternity", "For two songs", "Forever alone", "Form over function", "Fourth dimension", "From insult to injury", "Function over form", "Game on", "Ghost stories", "Glass house", "Glass houses", "Glass shoe", "God's advocate", "Golden lining", "Grains of salt", "Grains of sand", "Greener grass", "Hand in hand", "Here we go", "Here we go again", "Highest difficulty", "Hit the road", "Hold the phone", "Honestly", "Honesty", "Ice cold", "Impulse reaction", "Infatuation", "Intervention", "Ire desire", "Just a tease", "Just the beginning", "Kicked buckets", "Knowledge bomb", "Last candidate", "Let's do it", "Let's do this", "Library of liberty", "Life knowledge", "Live and learn", "Long story short", "Louder actions", "Louder than words", "Love", "Love life", "MVP", "March of ants", "Methodical madness", "Midnight oil", "Missed the boat", "Moonquake", "My goodness", "Nemesis", "New dimension", "Nine yards", "No ambition", "No basis", "No boundaries", "No celebration", "No choice", "No comment", "No direction", "No discounts", "No foundations", "No guarantees", "No history", "No justice", "Once bitten", "Parliment of fools", "Patient zero", "Perfect storm", "Preaching choir", "Pushing buttons", "Pushing up daisies", "Rain check", "Rocket science", "Rocket surgery", "Salt and sugar", "Silver linings", "Sleeping dogs", "So far so great", "Speak of the demon", "Speak of the god", "Special delivery", "Spilled beans", "Sweetbitter", "Take cover", "The bigger fish", "The drawing board", "The fat lady sings", "The last laugh", "The last straw", "This belief", "Time flies", "Tongue and cheeks", "Total destruction", "Two to tango", "Unchained", "Under the bus", "Unhappy accident", "Wild goose chase", "With feeling", "X marks the spot", "Your graciousness", "Zero experience", "Zero gravity"];
|
|
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);
|
|
}
|