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.
22 lines
3.0 KiB
JavaScript
22 lines
3.0 KiB
JavaScript
var nm1 = ["", "", "", "", "", "", "Adventure", "Anger of the", "Angry", "Barbaric", "Bearded", "Black", "Blasted", "Crimson", "Sanguine", "Blind", "Bloodthirsty", "Bloody", "Broken", "Buccaneers", "Burning", "Cacophonous", "Captains", "Corrupted", "Cruel", "Cry", "Cry of the", "Curse of the", "Cursed", "Damnation of the", "Damned", "Davy Jones", "Death of", "Deceit of", "Deceitful", "Devils", "Dirty", "Discourteous", "Silent", "Disgrace of the", "Disgraced", "Disgraceful", "Dishonorable", "Disrespectful", "Dragons", "Drunken", "Elusive", "Evil", "Fall of", "Fearful", "Fearful Grail of", "Festering", "Filthy", "Flying", "Fortune", "Foul Serpent of", "Gold", "Golden", "Good", "Greed of the", "Greedy", "Grief of the", "Hades", "Happy", "Hateful", "Hell-born", "Hellish", "Homicidal", "Horrid", "Howl of the", "Howling", "Howling ", "Impolite", "Killers", "Liberty", "Little", "Loyal", "Lust of the", "Mad", "Grand", "Madness of the", "Mangy", "Mayflower", "Most", "Murderers", "Murderous", "Mermaid's", "Neptune's", "New", "Last", "Night", "Nights", "Oceans", "Pillaging", "Pirates", "Plundering", "Poison", "Poisoned", "Poisonous", "Poseidon's", "Pride of the", "Privateers", "Rancid", "Red", "Revenge", "Rising", "Rude", "Sadness of the", "Savage", "Scurvy", "Sea", "Seas", "Shadows of the", "Snap", "Speedy", "Sudden", "Uncultured", "Vicious", "Victory", "Vile", "White"];
|
|
var nm2 = ["Anger", "Abandoned", "Scorn", "Tainted", "Atlantis", "Captain", "Caribbean", "Corruption", "Corsair", "Coward", "Curse", "Cutlass", "Dagger", "Damnation", "Damned", "Death", "Deceit", "Delight", "Delivery", "Demon", "Disgrace", "Doom", "Doubloon", "Dragon", "Eel", "Executioner", "Executioners", "Fall", "Fear", "Fortune", "Galley", "Ghost", "Gold", "Grail", "Hades", "Hangman", "Hind", "Horror", "Howl", "Insanity", "James", "Jewel", "Killer", "Killers", "King", "Knave", "Lightning", "Lust", "Manta", "Minnow", "Tide", "Murderer", "Murderers", "Night", "North", "Pearl", "Pillager", "Pirate", "Plague", "Plunder", "Plunderer", "Plunderers", "Princess", "Privateer", "Raider", "Rambler", "Ranger", "Return", "Revenge", "Saber", "Scream", "Sea", "Seas", "Marauders", "Swashbucklers", "Rovers", "Sea Rovers", "Buccaneers", "Rose", "Rift", "Deceit", "Secret", "Serpent", "Servant", "Servants", "Seven Seas", "Shark", "Slave", "Squid", "Storm", "Strumpet", "Sun", "Terror", "Tortuga", "Treasure", "Trinity", "Wolf"];
|
|
var br = "";
|
|
|
|
function nameGen(type) {
|
|
var tp = type;
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
for (i = 0; i < 10; i++) {
|
|
rnd = Math.floor(Math.random() * nm1.length);
|
|
rnd2 = Math.floor(Math.random() * nm2.length);
|
|
names = "The " + nm1[rnd] + " " + nm2[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);
|
|
}
|