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.

51 lines
11 KiB
JavaScript

var nm2 = ["Centre", "Centre", "Center", "Center", "Exhibition", "Gallery", "Gallery", "Hall", "Hall", "Institute", "Institution", "Museum", "Museum", "Museum", "Treasury", "Vault"];
var nm3 = ["National", "International", "Grand", "Great", "Central", "Royal", "", "", "", "", "", "", "", "", "", "", "", "", "", ""];
var nm5 = ["l'Exposition", "la Galerie", "la Galerie", "l'Institution", "la Voûte", "le Centre", "le Centre", "le Centre", "le Centre", "l'Institut", "le Musée", "le Musée", "le Musée", "le Musée", "le Recueil"];
var nm6 = [" National", " International", " Royal", "", "", "", "", "", "", "", "", "", "", "", ""];
function nameGen(type) {
var nm1 = ["Accident", "Aerial", "Aerospace", "Amphibian", "Analysis", "Anatomy", "Ancestry", "Anthropology", "Apparatus", "Aquatic", "Archaeology", "Architecture", "Art", "Artillery", "Astronomy", "Audiovisual", "Auditory", "Blossoms", "Carnival", "Changing", "Childhood", "Children", "Chrono", "Cryonic", "Circus", "Contemporary", "Cooking", "Costume", "Creativity", "Cryptology", "Crystal", "Cultural", "Culture", "Curiosity", "Dance", "Darkness", "Data", "Decorative", "Design", "Digital", "Dinosaur", "Disaster", "Discovery", "Dream", "Dynamics", "Earth", "Electric", "Emergency", "Estate", "Eternity", "Expedition", "Experiment", "Experimentation", "Exploration", "Explorers", "Fame", "Fantasy", "Fashion", "Fear", "Fiction", "Film", "Fire", "Firepower", "Forest", "Fortune", "Frost", "Future", "Gadget", "Galaxy", "Game", "Garden", "Genius", "Gift", "Gizmo", "Glass", "Globe", "Gold", "Guardian", "Happiness", "Harmony", "Hazard", "Heritage", "History", "Hope", "Horror", "Illusion", "Imagination", "Immersion", "Infinity", "Ingenuity", "Inheritance", "Innovation", "Insect", "Inspiration", "Instrument", "Invention", "Jewel", "Kinetics", "Language", "Learning", "Legacy", "Liberty", "Light", "Literature", "Living", "Locomotion", "Love", "Lunar", "Machine", "Magic", "Magnetism", "Manor", "Manuscript", "Maritime", "Master", "Mechanical", "Medical", "Micro", "Mind", "Mineral", "Mistake", "Movement", "Music", "Musical", "Natural", "Nature", "Neurological", "Night", "Nightingale", "Nightmare", "Novelty", "Open", "Optical", "Origin", "Origins", "Party", "Passage", "Passion", "People", "Perception", "Pet", "Petrified", "Pinnacle", "Play", "Portrait", "Prediction", "Puppet", "Pyro", "Reconnaissance", "Religion", "Reptile", "Research", "Revelation", "Rush", "Sail", "Science", "Science Fiction", "Secrets", "Sensory", "Serpent", "Sight", "Sightings", "Silent", "Skeleton", "Snow", "Solar", "Space", "Speech", "Spinning", "Sports", "Stimulation", "Submarine", "Submerged", "Sugar", "Summer", "Surprise", "Tactile", "Taste", "Testing", "Theater", "Time", "Toy", "Tradition", "Tragedy", "Transport", "Travel", "Treasure", "Trinket", "Underground", "Universe", "Video", "Virtual", "Virtuoso", "Visual", "War", "Water", "Weirdness", "Wild", "Wind", "Winter", "Youth", "Zoology"];
var nm4 = ["Accidents", "Aerial Technology", "Aerospace", "Amphibians", "Analysis", "Anatomy", "Ancestry", "Anthropology", "Aquatic Life", "Archaeology", "Architecture", "Art", "Artillery", "Astronomy", "Audio", "Audiovisual Arts", "Blossoms", "Carnivals", "Change", "Childhood", "Children", "Cryonic Technology", "Circuses", "Contemporary Arts", "Cooking", "Costumes", "Creativity", "Cryptology", "Crystals", "Cultural History", "Culture", "Curiosity", "Dance", "Darkness", "Data", "Decoration", "Design", "Digital Arts", "Dinosaurs", "Disaster", "Discovery", "Dreams", "Dynamics", "Earth", "Electricity", "Emergencies", "Eternity", "Expeditions", "Experimentations", "Experiments", "Exploration", "Explorers", "Fame", "Fantasy", "Fashion", "Fear", "Fiction", "Film", "Fire", "Firepower", "Forests", "Fortune", "Frost", "Gadgets", "Games", "Gardens", "Geniuses", "Gifts", "Gizmos", "Glass", "Gold", "Guardians", "Happiness", "Harmony", "Hazards", "Heritage", "History", "Hope", "Horrors", "Illusions", "Imagination", "Immersion", "Infinity", "Ingenuity", "Inheritance", "Innovation", "Insects", "Inspiration", "Instruments", "Inventions", "Jewels", "Kinetics", "Language", "Learning", "Legacies", "Liberty", "Light", "Literature", "Living", "Locomotion", "Love", "Lunar History", "Machines", "Magic", "Magnetics", "Manors", "Manuscripts", "Maritime History", "Masters", "Mechanics", "Medicine", "Micro Life", "Minerals", "Mistakes", "Movement", "Music", "Musicals", "Natural History", "Nature", "Neurological Science", "Nightmares", "Novelties", "Openness", "Optical Illusions", "Origins", "Parties", "Passages", "Passion", "People", "Perception", "Petrification", "Pets", "Pinnacles", "Play", "Portraits", "Predictions", "Puppets", "Pyromania", "Reconnaissance", "Religion", "Reptiles", "Research", "Revelations", "Rush Hours", "Sailing", "Science", "Science Fiction", "Secrets", "Sensory Science", "Serpents", "Sight", "Sightings", "Silence", "Skeletons", "Snow", "Solar History", "Space", "Speech", "Sports", "Stimulation", "Submarines", "Submersion", "Sugar", "Summer", "Surprises", "Tactics", "Taste", "Testing", "Theater", "Time", "Toys", "Traditions", "Tragedy", "Transport", "Travel", "Treasures", "Trinkets", "Video", "Virtual Reality", "Visual Arts", "War", "Water", "Weirdness", "Wind", "Winter", "Youth", "Zoology", "the Future", "the Galaxy", "the Globe", "the Mind", "the Night", "the Nightingale", "the Underground", "the Universe", "the Wild"];
var nm7a = ["Électrique", "Aérien", "Aérospatial", "Acoustique", "Aquatique", "Auditif", "Audo-Visuel", "Contemporain", "Cryonique", "Culinaire", "Culturel", "Décoratif", "Digital", "Imaginaire", "Linguistique", "Lunaire", "Mécanique", "Médical", "Magique", "Magnétique", "Maritime", "Musical", "Naturel", "Nautique", "Optique", "Sauvage", "Sensoriel", "Silencieux", "Solaire", "Submergé", "Virtuel", "Visuel", "Vivant", "d'Électricité", "d'Été", "d'Éternité", "d'Étrangeté", "d'Amour", "d'Analyse", "d'Anatomie", "d'Anthropologie", "d'Apprentissage", "d'Archéologie", "d'Architecture", "d'Art", "d'Artillerie", "d'Ascendance", "d'Astronomie", "d'Audio", "d'Automne", "d'Eau", "d'Espoir", "d'Expérimentation", "d'Exploration", "d'Héritage", "d'Harmonie", "d'Histoire", "d'Histoire Culturelle", "d'Histoire Lunaire", "d'Histoire Maritime", "d'Histoire Naturelle", "d'Histoire Solaire", "d'Hiver", "d'Horreur", "d'Imagination", "d'Immersion", "d'Infinité", "d'Ingéniosité", "d'Innovation", "d'Inspiration", "d'Obscurité", "d'Or", "d'Ouverture", "de Bonheur", "de Carnaval", "de Changement", "de Cinétique", "de Connaissance", "de Créativité", "de Crainte", "de Cryptologie", "de Curiosité", "de Décorations", "de Découverte", "de Désign", "de Danger", "de Danse", "de Félicité", "de Fantaisie", "de Feu", "de Fiction", "de Gel", "de Liberté", "de Littérature", "de Locomotion", "de Lumière", "de Mécanique", "de Médicine", "de Magie", "de Mouvement", "de Musique", "de Nouveauté", "de Passion", "de Peur", "de Printemps", "de Savoir", "de Science Fiction", "de Silence", "de Stimulation", "de Technologie Aérienne", "de Technologie Cryonique", "de Temps", "de Vent", "de Verre", "de l'Espace", "de l'Esprit", "de l'Univers", "de la Chance", "de la Dynamique", "de la Forêt", "de la Galaxie", "de la Mode", "de la Nature", "de la Neige", "de la Neurologie", "de la Nuit", "de la Perception", "de la Pyromanie", "de la Réalité Virtuelle", "de la Recherche", "de la Reconnaissance", "de la Religion", "de la Science", "de la Science Neurologique", "de la Science Sensorielle", "de la Tactique", "de la Terre", "de la Vie", "de la Vie Aquatique", "de la Vogue", "de la Vue", "de la Zoologie", "des Accidents", "des Accords", "des Amphibies", "des Animaux de Compagnie", "des Appareils", "des Arts Audiovisuels", "des Arts Contemporains", "des Arts Culinaire", "des Arts Numériques", "des Arts Visuels", "des Bibelots", "des Bijoux", "des Célébrités", "des Cadeaux", "des Catastrophes", "des Cauchemars", "des Cirques", "des Costumes", "des Couleurs", "des Cristaux", "des Cultes", "des Dinosaures", "des Discours", "des Données", "des Enfances", "des Enfants", "des Engins", "des Erreurs", "des Esprits", "des Expéditions", "des Expériences", "des Expérimentations", "des Explorateurs", "des Fantoches", "des Films", "des Fleurs", "des Floraisons", "des Forêts", "des Fortunes", "des Génies", "des Gadgets", "des Gardiens", "des Gens", "des Horreurs", "des Illusions", "des Illusions d'Optique", "des Insectes", "des Instruments", "des Inventions", "des Jardins", "des Jeux", "des Jouets", "des Langues", "des Maîtres", "des Machines", "des Manoirs", "des Manuscrits", "des Marionnettes", "des Micro-Organismes", "des Minéraux", "des Nouveautés", "des Observations", "des Origines", "des Parfums", "des Passages", "des Peuples", "des Portraits", "des Poupées", "des Prédictions", "des Révélations", "des Rêves", "des Recherches", "des Reptiles", "des Rossignols", "des Saveurs", "des Secrets", "des Serpents", "des Soirées", "des Sous-Marins", "des Sports", "des Squelettes", "des Surprises", "des Trésors", "des Traditions", "des Tragédies", "des Urgences", "des Vidéos", "des Virtuoses", "des Voiles", "des Voyages", "du Cerveau", "du Cirque", "du Futur", "du Globe", "du Jardin", "du Mâitre", "du Magnétisme", "du Patrimoine", "du Rêve", "du Sommet", "du Sucre", "du Temps", "du Théâtre", "du Transport"];
var nm7b = ["Électrique", "Aérienne", "Aérospatiale", "Acoustique", "Aquatique", "Auditive", "Audo-Visuelle", "Contemporaine", "Cryonique", "Culinaire", "Culturelle", "Décorative", "Digitale", "Imaginaire", "Linguistique", "Lunaire", "Mécanique", "Médicale", "Magique", "Magnétique", "Maritime", "Musicale", "Naturelle", "Nautique", "Optique", "Sauvage", "Sensorielle", "Silencieuse", "Solaire", "Submergée", "Virtuelle", "Visuelle", "Vivante"];
var br = "";
var tp = type;
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
if (tp === 1) {
rnd = Math.random() * nm5.length | 0;
rnd2 = Math.random() * nm7a.length | 0;
if (rnd < 5 && rnd2 < 33) {
names = nm5[rnd] + " " + nm7b[rnd2];
} else {
rnd3 = Math.random() * nm6.length | 0;
if (rnd < 5 && rnd3 < 3) {
names = nm5[rnd] + nm6[rnd3] + "e " + nm7a[rnd2];
} else {
names = nm5[rnd] + nm6[rnd3] + " " + nm7a[rnd2];
}
}
} else {
rnd2 = Math.random() * nm2.length | 0;
rnd3 = Math.random() * nm3.length | 0;
if (i < 5) {
rnd = Math.random() * nm4.length | 0;
names = nm3[rnd3] + " " + nm2[rnd2] + " of " + nm4[rnd];
nm4.splice(rnd, 1);
} else {
rnd = Math.random() * nm1.length | 0;
names = nm3[rnd3] + " " + 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);
}