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.

85 lines
12 KiB
JavaScript

var nm1a = ["All sleep", "Ants march", "Art flows", "Beast crawls", "Bird flies", "Birds fly", "Blood spills", "Boats drift", "Bread shared", "Child laughs", "Days pass", "Death takes", "Dog barks", "Dust glides", "Eyes dart", "Fall spreads", "Fields wave", "Fish swim", "Flags drift", "Fog shrouds", "Friends laugh", "Frog jumps", "Grass grows", "Grass sways", "Guests laugh", "Hair flows", "Hear beats", "Hearts run", "Homes warm", "Ice wraps", "King rules", "Knife cuts", "Leaf drifts", "Leaves drift", "Love grows", "Moon shines", "Night falls", "Owl flies", "Path runs", "Rain falls", "Scents drift", "Snow cloaks", "Spring swells", "Trees sway", "Wealth flows", "Winds blow", "Wolf howls", "Wood creaks", "World spins", "Years pass"]
var nm1b = ["Ant marches", "Armies march", "Army moves", "Baby crawls", "Balloon drifts", "Bells jingle", "Boats sailing", "Branches sprout", "Candles sway", "Children laugh", "Donkey walks", "Drinks shared", "Earth covers", "Fall reaching", "Feather drifts", "Fingers work", "Fires glow", "Flames flicker", "Flowers wave", "Food's shared", "Forest grows", "Games played", "Gardens spread", "Insects fly", "Lanterns swing", "Leather wraps", "Light shines", "Markets spread", "Money spent", "Mountains reach", "Music plays", "Nature grows", "Night covers", "Ocean flows", "Paintings made", "People live", "Petals fall", "Power flows", "River flows", "Silence falls", "Snow blankets", "Snow falling", "Stories told", "Summer spreads", "Sun shines bright", "Sunshine beams", "Tea's brewing", "Water flows", "Winds howling", "Winter shrouds"];
var nm1c = ["Answers", "Birthdays", "Blossoms", "Business", "Children", "Cooking", "Countries", "Courage", "Creatures", "Daydreams", "Drama", "Dreaming", "Faces", "Failure", "Fortune", "Friendship", "Gaming", "Garbage", "Judgment", "Knowledge", "Laughter", "Lovers", "Midnight", "Moments", "Motion", "Mountains", "Nations", "Nature", "Nightmares", "Passions", "Patience", "Payments", "People", "Pictures", "Rainfall", "Science", "Snowfall", "Speeches", "Stories", "Strangers", "Success", "Sunshine", "Symbols", "Teachings", "Thunder", "Treasures", "Weddings", "Wisdom", "Women", "Writings"];
var nm2a = ["across fields", "across land", "all alone", "all around", "almost gone", "among friends", "as spring falls", "awoken now", "back and forth", "close at hand", "close to heart", "disturbed", "far away", "from the East", "from the sky", "game of bliss", "gently yet", "good and bad", "in center", "in shadows", "in silence", "in spring night", "in still peace", "in the light", "in the wind", "in twilight", "lonely now", "morning comes", "music plays", "nearby home", "over here", "over hills", "over there", "playfully", "side to side", "silently", "softly still", "swift and just", "throughout all", "time to time", "to the West", "to the sky", "turn around", "voiceless now", "wait and see", "wild and fierce", "with caution", "with desire", "with relief", "with rigor", "without care", "without fear", "without grief", "eternally"];
var nm2b = ["around", "at dawn", "at day", "at dusk", "at night", "away", "blissful", "brightly", "carefree", "cheerful", "eagerly", "earnest", "fondly", "freely", "gently", "gladly", "gracious", "grateful", "greedy", "humbly", "hungry", "idle", "in light", "lightly", "lively", "lonely", "naive", "nearby", "nervous", "nothing", "on top", "onward", "perfect", "quickly", "quiet", "reckless", "selfish", "slightly", "slowly", "smoothly", "softly", "sudden", "swiftly", "timely", "troubled", "truthful", "untrue", "upset", "vivid", "weary", "wicked"];
var nm2c = ["of today", "of friendship", "in-between", "intertwined", "of success", "of fortune", "at the sea", "in the rain", "in winter", "of winter", "in summer", "of summer", "of the spring", "in the spring", "the applause", "of fire", "in whispers", "in silence", "in war time", "in peace time", "in the past", "of futures", "of lovers", "sweet embrace", "through seasons", "of wonder", "of ventures", "in my mind", "in your eyes", "of nature", "of lost ruins", "of ages", "after life", "after death", "another", "of yonder", "without end", "of a wish", "after rain", "of balance", "of refuge", "of the end", "of a star", "of the dead", "in the fields", "of the lake", "of autumn", "in autumn", "on the ice", "in a pond"];
var nm3a = ["A true friend", "Autumn rain", "Beast of love", "Bird of prey", "Blue moonlight", "Burning love", "Crescent moon", "Fallen foe", "Firefly", "Flightless bird", "Fresh footstep", "Friend from past", "Friend of all", "Frozen time", "Gliding leaf", "Heaven's gate", "Hidden smile", "Howling wind", "Hush of wind", "Last farewell", "Leafing tree", "Lonely heart", "Lost stranger", "Love's embrace", "Lull of night", "Melting snow", "Midday heat", "Mirror lake", "Morning dew", "Naked skin", "Nothing now", "Open door", "Paradise", "Quiet gust", "Racing mind", "Rain of fall", "Rain of spring", "Rising moon", "Rising sun", "Setting sun", "Silent hush", "Singing bird", "Sleeping child", "Snake in grass", "Sparkling star", "Spring blossom", "Summer heat", "Tender hug", "Winter snow", "Wolf like sheep"]
var nm3b = ["Brewing storms", "Brief regret", "Cooling down", "Drastic times", "Ecstasy", "Empty all", "Empty bed", "Entertained", "Faintest sound", "Final rest", "Final straw", "Forgotten", "Fragrant scents", "Gentle touch", "Gift of life", "Gift of love", "Grain of salt", "Happy dance", "Happy thoughts", "Harmonies", "Holding breath", "Kindred souls", "Last moment", "Little griefs", "Loudest words", "Melodies", "Mingled worlds", "Nature's grasp", "Nothing left", "Now you go", "One last step", "Playful jest", "Purest bliss", "Quiet noise", "Quivered breath", "Satisfied", "Silver lines", "Small blessings", "Sweet chorus", "Sweet delights", "Sweetest taste", "Tiny joys", "Tranquil peace", "Treasure trove", "Trouble brews", "Turn away", "Turn to ash", "Voiceless song", "Wait for me", "Warming up"];
var nm4a = ["adapts to all", "answers to none", "assaults the air", "awaits true fate", "awoken now", "bathing in light", "beckons me close", "blossoms once more", "breathing silent", "brings joy once more", "caressed by love", "challenges none", "cleansing the past", "collapsing slow", "commanding me", "communicates", "delaying joy", "destined to pass", "discovers all", "drinks life's essence", "dwells in the past", "embraced by all", "emerging soon", "enhanced by life", "escaping fast", "focused on good", "forgotten fast", "glances quickly", "guarantees bliss", "hovers above", "is always true", "is free to go", "is hypnotized", "is lost in time", "is never lost", "is worthy too", "leaves home once more", "lures you in close", "never migrates", "now understands", "on the morrow", "overcome with joy", "prepares for fate", "reaches further", "resigned to fate", "restores balance", "rising slowly", "shifts in the sands", "silenced no more", "stands with courage"];
var nm4b = ["still in my arms", "of love long lost", "of memories", "of summer's night", "between the stars", "before spring falls", "before fall springs", "lost in the rain", "emerged at last", "with bitter taste", "to leave once more", "now look for more", "stay very close", "on dual sides", "of my delight", "of hope and bliss", "without answers", "with answers found", "as echoes pass", "without passion", "and cry from far", "as time returns", "of gifts received", "and sweet goodbyes", "of lovers thoughts", "in tranquil minds", "behind the end", "before the dawn", "after sun sets", "ahead of time", "in front of joy", "ere farewell voiced", "around my mind", "below true home", "into the end", "towards love's grace", "without support", "until you're back", "within my soul", "beyond this world", "for spirits loved", "against the waves", "among lost hope", "outside my grasp", "through sands of time", "within this fall", "inside my mind", "among pure bliss", "across the seas", "above the sky"];
var nm5a = ["Answer", "Appeal", "Approve", "Asking", "Bargain", "Barter", "Beauty", "Blessings", "Blossoms", "Calming", "Caress", "Challenge", "Changing", "Chasing", "Cleansing", "Contest", "Control", "Cover", "Crumbling", "Dances", "Dreaming", "Drinking", "Eating", "Echoes", "Ending", "Failing", "Falling", "Farming", "Fearing", "Flourish", "Gamble", "Grimace", "Grumble", "Healing", "Herald", "Hinder", "Hustle", "Lament", "Laughing", "Leaving", "Lurking", "Menace", "Morphing", "Murmurs", "Pleading", "Pursuit", "Raining", "Reasons", "Rewards", "Searching", "Shadows", "Sharing", "Shining", "Signals", "Silence", "Singing", "Slumber", "Snowing", "Struggles", "Stumbling", "Teasing", "Triumph", "Twisting"]
var nm5b = ["Accusing", "Adapting", "Admiring", "Adoring", "Advising", "Agreeing", "Alerting", "Allowing", "Amusing", "Annoying", "Arguing", "Assuming", "Avoiding", "Awaiting", "Balancing", "Beginning", "Betraying", "Collapsing", "Collecting", "Commanding", "Competing", "Concluding", "Confessing", "Darkening", "Enduring", "Erasing", "Evading", "Evoking", "Expanding", "Forgetting", "Frightening", "Imagine", "Invoking", "Migrating", "Predicting", "Progressing", "Protesting", "Questioning", "Relaxing", "Removing", "Repeating", "Resenting", "Summoning", "Surrender", "Transforming", "Undoing", "Unleashing", "Vanishing", "Wandering"];
var nm6b = ["answers", "armies", "balance", "blossoms", "borders", "changes", "comfort", "countries", "creatures", "daydreams", "desire", "evening", "fires", "flowers", "fortune", "gardens", "haven", "heaven", "houses", "insects", "journeys", "knowledge", "laughter", "moments", "morning", "motions", "mountain", "music", "nature", "nightmares", "ocean", "omens", "passion", "pictures", "pleasures", "regrets", "respect", "rhythm", "riddles", "strangers", "summer", "teachings", "thunder", "ventures", "vessel", "voyage", "water", "weather", "winter", "wonders"];
var first = 0;
function nameGen() {
var snt1 = (Math.random() * 5 | 0);
var snt2 = (Math.random() * 2 | 0);
var snt3 = (Math.random() * 3 | 0);
if (snt1 === 0) {
var rnd = (Math.random() * nm1a.length | 0);
var rnd2 = (Math.random() * nm2a.length | 0);
names1 = nm1a[rnd] + " " + nm2a[rnd2];
} else if (snt1 === 1) {
var rnd = (Math.random() * nm1b.length | 0);
var rnd2 = (Math.random() * nm2b.length | 0);
names1 = nm1b[rnd] + " " + nm2b[rnd2];
} else if (snt1 === 2) {
var rnd = (Math.random() * nm1c.length | 0);
var rnd2 = (Math.random() * nm2c.length | 0);
names1 = nm1c[rnd] + " " + nm2c[rnd2];
} else if (snt1 === 3) {
var rnd = (Math.random() * nm5a.length | 0);
var rnd2 = (Math.random() * nm2c.length | 0);
names1 = nm5a[rnd] + " " + nm2c[rnd2];
} else if (snt1 === 4) {
var rnd = (Math.random() * nm5b.length | 0);
var rnd2 = (Math.random() * nm6b.length | 0);
names1 = nm5b[rnd] + " " + nm6b[rnd2];
}
if (snt2 === 0) {
var rnd = (Math.random() * nm3a.length | 0);
var rnd2 = (Math.random() * nm4a.length | 0);
names2 = nm3a[rnd] + " " + nm4a[rnd2];
} else if (snt2 === 1) {
var rnd = (Math.random() * nm3b.length | 0);
var rnd2 = (Math.random() * nm4b.length | 0);
names2 = nm3b[rnd] + " " + nm4b[rnd2];
}
if (snt3 === 0) {
var rnd = (Math.random() * nm1a.length | 0);
var rnd2 = (Math.random() * nm2a.length | 0);
names3 = nm1a[rnd] + " " + nm2a[rnd2];
} else if (snt3 === 1) {
var rnd = (Math.random() * nm1b.length | 0);
var rnd2 = (Math.random() * nm2b.length | 0);
names3 = nm1b[rnd] + " " + nm2b[rnd2];
} else if (snt3 === 2) {
var rnd = (Math.random() * nm5a.length | 0);
var rnd2 = (Math.random() * nm2c.length | 0);
names3 = nm5a[rnd] + " " + nm2c[rnd2];
}
if (first === 0) {
first = 1;
names1 = "Haiku for you all"
names2 = "Single click gives random one"
names3 = "Hope it brings you joy"
}
var element = document.createElement("div");
element.setAttribute("id", "result");
br1 = document.createElement('br');
br2 = document.createElement('br');
br3 = document.createElement('br');
element.appendChild(document.createTextNode(names1));
element.appendChild(br1);
element.appendChild(document.createTextNode(names2));
element.appendChild(br2);
element.appendChild(document.createTextNode(names3));
element.appendChild(br3);
if (document.getElementById("result")) {
document.getElementById("placeholder").removeChild(document.getElementById("result"));
}
document.getElementById("placeholder").appendChild(element);
}