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.

32 lines
8.4 KiB
JavaScript

var nm2 = ["Asylum", "Mental Institution", "Sanatorium", "Psychiatric Hospital", "Mental Hospital", "Psychiatric Institution", "Mental Asylum"];
var nm3 = ["Clinique Psychiatrique", "Institution Psychiatrique", "Asile", "Asile Psychiatrique", "Hôpital Psychiatrique", "Sanatorium", "Asile"];
var br = "";
function nameGen(type) {
var tp = type;
var nm1 = ["Angel Peaks", "Angelic Gardens", "Angelic Heights", "Angelwings", "Angelwood", "Aurora Grove", "Aurora Heights", "Aurora Valley", "Azure Heights", "Azure Lake", "Azure Valley", "Beacon Point", "Bellevue", "Bliss Meadows", "Blissful Heights", "Blooming Fields", "Blossoms", "Blue Laguna", "Blue River", "Celestial Gardens", "Celestial Heights", "Cerulean Gardens", "Cerulean Lake", "Charity", "Cherry Blossom", "Clearwater", "Cloudy Heights", "Dawn Garden", "Dawn Grove", "Dawn Valley", "Dayspring", "Dragonfly Lake", "Dream Forest", "Dream Garden", "Edgewater", "Emerald Grove", "Emerald Mountain", "Eternal Gardens", "Eternity Meadows", "Evergreen Forest", "Evergreen Valley", "Felicity Gardens", "Firefly Meadows", "Firefly Waters", "Flower Valley", "Flowerfield", "Flowerhill", "Forest Vale", "Fountain Vale", "Fresh Meadows", "Garden Springs", "Genesis", "Golden Halo", "Golden Vale", "Good Samaritan", "Grand Meadow", "Grand Oasis", "Grand Valley", "Great Garden", "Green Valley", "Grove Garden", "Guardian Angel", "Harmony", "Harmony Heights", "Harmony Lake", "Harmony Meadows", "Harmony Mountains", "Harmony Valley", "High Garden", "Highland Garden", "Holy Oak", "Hope Garden", "Hope Valley", "Horizon", "Hummingbird Garden", "Koi Pond", "Lakeside", "Lilypad", "Lilypad Meadows", "Lilypad Water", "Little Feather", "Little Peak", "Littlerock", "Love Garden", "Maple Grove", "Mapleleaf", "Meadow Isle", "Mirror Lake", "Misty Meadow", "Misty Vale", "Moonlight", "Moonlight Meadows", "Morningrise", "Morningtide", "Moss Forest", "New Blessings", "New Eden", "New Horizon", "Nirvana Heights", "Noble Gardens", "Noble Vale", "Oak Meadow", "Oak Valley", "Olympus", "Paradise Garden", "Paradise Meadows", "Paragon Heights", "Paragon Valley", "Peace Meadows", "Peace Vale", "Peace Valley", "Pearl Garden", "Pearly Lake", "Pine River", "Pine Valley", "Rainbow Meadow", "Renaissance", "Repose Meadows", "Riverside", "Rose Garden", "Rose Petal", "Rosemary", "Rosewood", "Sacred Heart", "Sacred Heights", "Sage Forest", "Sanctuary Gardens", "Sanctuary Meadows", "Sapphire Valley", "Satin Gardens", "Serenity", "Serenity Falls", "Serenity Grove", "Serenity Heights", "Serenity Lake", "Serenity Peaks", "Silence Lake", "Silk Meadow", "Silk River", "Silver Birch", "Silver Oak", "Silverwing", "Silverwood", "Smooth Meadows", "Smooth Valley", "Snow Gardens", "Snow Valley", "Snowfall Valley", "Snowflake", "Soft Gardens", "Soft Meadows", "Solitude Gardens", "Solitude Heights", "Spirit Fields", "Spirit Meadows", "Spring Blossom", "Spring Forest", "Spring Garden", "Spring Grove", "Spring Horizon", "Spring Pond", "Springfield", "Sprite Gardens", "Sprite Valley", "Starfall Lake", "Starlight", "Stillwater", "Summer Gardens", "Summerhill", "Sunrise", "Sunrise Grove", "Sunrise Valley", "Swan Lake", "Swan River", "Tranquil Falls", "Tranquil Heights", "Tranquil Peaks", "Tranquil River", "Tranquil Summit", "Tranquil Valley", "Tranquility Lake", "Trinity Heights", "Tulip Gardens", "Twin Lakes", "Twin Rivers", "Velvet Gardens", "Waterfall Gardens", "Waterfall Meadow", "Waterfall Valley", "West Valley", "Westwood", "Whisperwood", "White Dove", "White Feather", "White Mountain", "White Valley", "White Willow", "White Wing", "White Wings", "Wildflower", "Willow Vale", "Willow Waters"];
var nm4 = ["Étang de Koi", "Étang de Printemps", "Ailes d'Ange", "Béatitudes", "Bellevue", "Bois de Rose", "Bon Samaritain", "Bord de la Rivière", "Bord du Lac", "Bosquet de Printemps", "Bosquet de Sérénité", "Bosquet de Tranquillité", "Bosquet de l'Aube", "Cœur Sacré", "Cascade Tranquille", "Cascades de Sérénité", "Cascades des Étoiles", "Chêne Sacré", "Champs Fleuris", "Champs de Fleurs", "Champs de Printemps", "Charité", "Clair de Lune", "Colline du Soleil", "Collines d'Été", "Collines des Fleurs", "Eaux de Lucioles", "Fleurs de Cerisier", "Fleuve de Saules", "Fleuve de Tranquilité", "Floraisons de Printemps", "Fontaines de Jardin", "Forêt d'Anges", "Forêt d'Argent", "Forêt d'Oiseaux", "Forêt de Calme", "Forêt de Jade", "Forêt de Mousse", "Forêt de Printemps", "Forêt de Rêves", "Forêt de Sauge", "Forêt de Silence", "Genèse", "Grand Jardin", "Grand Pré", "Grande Oasis", "Grande Vallée", "Harmonie", "Hauteurs de Silence", "Hauteurs Angéliques", "Hauteurs Azurées", "Hauteurs Célestes", "Hauteurs Nuageuses", "Hauteurs Sacrées", "Hauteurs Tranquilles", "Hauteurs d'Azur", "Hauteurs d'Harmonie", "Hauteurs de Neige", "Hauteurs de Nirvana", "Hauteurs de Parangon", "Hauteurs de Solitude", "Hauteurs de l'Aurore", "Horizon de Printemps", "Jardin Émeraude", "Jardin Pur", "Jardin Tranquille", "Jardin Velouté", "Jardin d'Émeraudes", "Jardin d'Érables", "Jardin d'Étoiles", "Jardin d'Île", "Jardin d'Amour", "Jardin d'Arc-en-Ciel", "Jardin d'Espoir", "Jardin de Bosquet", "Jardin de Cascades", "Jardin de Colibris", "Jardin de Félicité", "Jardin de Lucioles", "Jardin de Neige", "Jardin de Paix", "Jardin de Paradis", "Jardin de Perles", "Jardin de Printemps", "Jardin de Rêves", "Jardin de Sérénité", "Jardin de Satin", "Jardin de Solitude", "Jardin de l'Aube", "Jardin de l'Aurore", "Jardin de la Lune", "Jardin de la Montagne", "Jardin des Roses", "Jardin des Tulipes", "Jardin du Soleil", "Jardins Éternels", "Jardins Angéliques", "Jardins Azurés", "Jardins Célestes", "Jardins Nobles", "Jardins Sanctuaires", "Jardins d'Été", "Jardins de Lune", "Jour de Printemps", "Lac d'Étoiles", "Lac d'Azur", "Lac d'Harmonie", "Lac de Calme", "Lac de Cygnes", "Lac de Libellules", "Lac de Lune", "Lac de Miroir", "Lac de Nénuphars", "Lac de Perles", "Lac de Sérénité", "Lac de Saules", "Lac de Silence", "Lac de Tranquilité", "Les Belles Fleurs", "Les Floraisons", "Lumière des Étoiles", "Montagne Émeraude", "Nouvel Eden", "Nouvel Horizon", "Nouvelles Bénédictions", "Olympe", "Point de Balise", "Prairie Brumeuse", "Prairie d'Éternité", "Prairie d'Arc-en-Ciel", "Prairie de Chênes", "Prairie de Clair de Lune", "Prairie de Paix", "Prairie de Paradis", "Prairie de Soie", "Prairies Pures", "Prairies Sanctuaires", "Prairies d'Harmonie", "Prairies de Cascades", "Prairies de Félicité", "Prairies de Jade", "Prairies de Printemps", "Rivière de Cygnes", "Rivière de Pins", "Rivière de Soie", "Romarin", "Sérénité", "Sommet d'Ange", "Sommet de Sérénité", "Vallée Brumeuse", "Vallée Pure", "Vallée Verte", "Vallée d'Azur", "Vallée d'Espoir", "Vallée d'Harmonie", "Vallée d'Oiseaux", "Vallée d'Or", "Vallée de Cascades", "Vallée de Chênes", "Vallée de Fleurs", "Vallée de Forêts", "Vallée de Jade", "Vallée de Neige", "Vallée de Paix", "Vallée de Parangon", "Vallée de Pins", "Vallée de Rivières", "Vallée de Saphir", "Vallée de l'Aube", "Vallée de l'Aurore", "Vallée de l'Ouest", "Vallée de la Fontaine", "Vallée de la Lune", "Vallée des Fleurs", "Vallée des Saules", "Vallée du Soleil", "Vallées Nobles", "l'Aile Argenté", "l'Eau Claire", "l'Horizon", "la Colombe Blance", "la Feuille d'Érable", "la Montagne Blanche", "la Petite Plume", "la Plume Blanche", "la Rivière Bleu", "le Bouleau Argenté", "le Flocon de Neige", "le Halo d'Or", "le Lagon Bleu", "le Nénuphar", "le Petit Caillou", "le Saule Blanc", "les Deux Lacs", "les Deux Rivières", "les Eaux de Silence", "les Eaux des Saules", "les Jardins Doux", "les Prairies Douces", "les Vallées Douces"];
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
if (tp === 1) {
rnd = Math.random() * nm3.length | 0;
rnd2 = Math.random() * nm4.length | 0;
names = nm3[rnd] + " " + nm4[rnd2];
nm4.splice(rnd2, 1);
} else {
rnd = Math.random() * nm1.length | 0;
rnd2 = Math.random() * nm2.length | 0;
names = nm1[rnd] + " " + nm2[rnd2];
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);
}