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
2.8 KiB
JavaScript
28 lines
2.8 KiB
JavaScript
var nm1 = ["Adamant", "Ancient", "Astral", "Beloved", "Blooming", "Boundless", "Bountiful", "Bright", "Brilliant", "Charming", "Cosmic", "Dynamic", "Earthen", "Elder", "Emerald", "Enchanted", "Enlightened", "Ethereal", "Fertile", "First", "Generous", "Gifted", "Golden", "Good", "Grand", "Growing", "Harmonious", "Hidden", "Honored", "Humming", "Jade", "Joyful", "Light", "Living", "Loving", "Lush", "Lustrous", "Nocturnal", "Nomadic", "Original", "Peaceful", "Pleasant", "Primal", "Prime", "Pristine", "Quiet", "Radiant", "Sacred", "Second", "Serene", "Silent", "Slumbering", "Tranquil", "Treasured", "Vagabond", "Verdant", "Vibrant", "Voiceless", "Whispering"];
|
|
var nm2 = ["Balance", "Bark", "Beasts", "Beginnings", "Birds", "Birth", "Blooms", "Blossoms", "Brilliance", "Change", "Chaos", "Charity", "Clarity", "Clouds", "Cold", "Critters", "Custodians", "Cycles", "Darkness", "Dawn", "Death", "Dreams", "Dusk", "Earth", "Eternity", "Existence", "Fall", "Fertility", "Fire", "Flowers", "Fortunes", "Frost", "Fungi", "Gardens", "Guardians", "Hawthorns", "Health", "History", "Hope", "Insects", "Islands", "Ivies", "Kindness", "Learning", "Liberty", "Life", "Light", "Loss", "Luck", "Lichen", "Magic", "Moss", "Mountains", "Nature", "Night", "Oaks", "Oceans", "Parents", "Passion", "Patience", "Patterns", "Plants", "Promise", "Prosperity", "Questions", "Rain", "Recovery", "Repose", "Rhythms", "Riddles", "Rivers", "Roots", "Scents", "Secrets", "Servitude", "Sight", "Snow", "Soils", "Songs", "Sound", "Spells", "Spiders", "Spirits", "Spores", "Spring", "Stars", "Storms", "Struggles", "Summer", "Support", "Surprises", "Thorns", "Thrills", "Time", "Tomorrow", "Tranquility", "Vibrance", "Vines", "Voices", "Voyages", "Warmth", "Water", "Weather", "Webs", "Whispers", "Willows", "Wind", "Winter", "Wonders", "the Beginning", "the Cosmos", "the Earth", "the Elements", "the Moon", "the Sky", "the Sun", "the Wild", "the World"];
|
|
var nm3 = ["Grove", "Grove", "Grove", "Grove", "Circle", "Circle", "Circle", "Order"];
|
|
|
|
function nameGen() {
|
|
var br = "";
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
for (i = 0; i < 10; i++) {
|
|
nTp = Math.random() * 2 | 0;
|
|
rnd2 = Math.random() * nm3.length | 0;
|
|
if (nTp === 0) {
|
|
rnd = Math.random() * nm2.length | 0;
|
|
names = "The " + nm3[rnd2] + " of " + nm2[rnd];
|
|
} else {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
names = "The " + nm1[rnd] + " " + nm3[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);
|
|
}
|