cyberpunkLocations.js (2862B)
1 var nm1 = ["Arachnis", "Arcadia", "Argos", "Athens", "Aurora", "Byblos", "Caladrius", "Damascus", "Daphnus", "Draconis", "Eclipse", "Ecstasy", "Eden", "Elysium", "Impetus", "Jericho", "Karma", "Mania", "Nubela", "Opus", "Requiem", "Titania", "Troy", "Adventure", "Affluence", "Alcohol", "Ambition", "Amusement", "Android", "Ardor", "Art", "Aurora", "Bliss", "Buzz", "Canvas", "Champion", "Change", "Chaos", "Charity", "Chemistry", "Class", "Clock", "Cloud", "Clout", "Corp", "Courage", "Crave", "Creation", "Credit", "Curiosity", "Dark", "Data", "Deal", "Design", "Desire", "Destiny", "Devil", "Diamond", "Dime", "Dirt", "Doubt", "Dream", "Drive", "Droid", "Eclipse", "Ecstasy", "Elation", "Elegance", "Emerald", "Emotion", "Emphasis", "End", "Enterprise", "Eternity", "Euphoria", "Excess", "Faith", "Fashion", "Felicity", "Flavor", "Fluke", "Fortune", "Ghost", "Glee", "Gold", "Grace", "Greed", "Happiness", "Happy", "Harmony", "Hell", "Ice", "Impetus", "Impulse", "Joint", "Joy", "Judgment", "Justice", "Karma", "Kill", "Killjoy", "Liberty", "Light", "Love", "Luck", "Lust", "Mad", "Mania", "Marble", "Mask", "Media", "Memory", "Midnight", "Misery", "Mist", "Motion", "Music", "Nebula", "Needle", "Neon", "Night", "Nova", "Onyx", "Opportunity", "Opulence", "Party", "Passion", "Patriot", "Platinum", "Player", "Pleasure", "Police", "Pride", "Prism", "Prize", "Profit", "Pulse", "Rain", "Rapture", "Redemption", "Reflection", "Requiem", "Revolution", "Rhythm", "Riddle", "Ruby", "Sanity", "Sapphire", "Scent", "Science", "Security", "Serpent", "Silver", "Snake", "Sorrow", "Spark", "Status", "Storm", "Stupidity", "Surprise", "Sympathy", "Tech", "Thirst", "Thrill", "Thunder", "Tomorrow", "Trash", "Umbrella", "Victory", "Virtual", "Vitality", "Waste", "Wish", "Witness", "Wonder", ""]; 2 var nm2 = ["Fall", "Haven", "Hill", "Hold", "Isle", "Park", "Plaza", "Point", "Port", "Square", "Trail", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "City", "Town", "Center"]; 3 var nm3 = []; 4 5 function nameGen() { 6 var br = ""; 7 var element = document.createElement("div"); 8 element.setAttribute("id", "result"); 9 for (i = 0; i < 10; i++) { 10 rnd = Math.random() * nm1.length | 0; 11 if (rnd < 23) { 12 names = "Neo " + nm1[rnd]; 13 } else { 14 rnd2 = Math.random() * nm2.length | 0; 15 names = nm1[rnd] + " " + nm2[rnd2]; 16 } 17 br = document.createElement('br'); 18 element.appendChild(document.createTextNode(names)); 19 element.appendChild(br); 20 } 21 if (document.getElementById("result")) { 22 document.getElementById("placeholder").removeChild(document.getElementById("result")); 23 } 24 document.getElementById("placeholder").appendChild(element); 25 }