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.
34 lines
2.4 KiB
JavaScript
34 lines
2.4 KiB
JavaScript
var br = "";
|
|
var triggered = 0;
|
|
|
|
function nameGen() {
|
|
var nm1 = ["Aggie", "Alpha", "Anansi", "Antagony", "Arachne", "Arachnemedes", "Arack", "Aragi", "Aragog", "Arania", "Ash", "Ashes", "Aurora", "Bandit", "Beauty", "Biggelsworth", "Bitsy", "Blitz", "Boots", "Boris", "Brutus", "Buttons", "Charlotte", "Chewy", "Chuckles", "Cinder", "Clarice", "Coco", "Cookie", "Cosmo", "Creepette", "Critter", "Cuddles", "Dawn", "Dodger", "Doodle", "Dusk", "Ember", "Fang", "Fangs", "Flopsie", "Fluffy", "Freckles", "Fuzzles", "Giggles", "Godzilla", "Hannibal", "Happy", "Harlequin", "Harry", "Hugsie", "Hulk", "Hunter", "Icky", "Itsy", "Ivan", "Jade", "Jinx", "Jitters", "Joy", "Jumper", "Kisses", "Lacy", "Legs", "Loki", "Lucas", "Lucifer", "Lucky", "Maleficent", "Midnight", "Miles", "Morales", "Morticia", "Muffet", "Muffin", "Nacho", "Nemesis", "Nibble", "Nightmare", "Noodle", "Noodles", "Nugget", "Octavius", "Octo", "Onyx", "Parker", "Patches", "Pepper", "Peter", "Phobia", "Pickle", "Princess", "Queen", "Quelaag", "Rascal", "Rebel", "Rider", "Scooter", "Scruffles", "Shade", "Shadow", "Shelley", "Shelob", "Sherlock", "Silkie", "Skitters", "Skittles", "Skreech", "Slinky", "Snuggles", "Socks", "Spike", "Spinderella", "Spindle", "Spindles", "Spindra", "Spinner", "Squeaks", "Squiggles", "Squiggly", "Stitches", "Tabitha", "Tank", "Tickle", "Tickles", "Tilly", "Tinkerbelle", "Tiny", "Truffle", "Tweedle", "Twilight", "Twitch", "Varys", "Velvet", "Venom", "Violet", "Webster", "Whisper"];
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
nTp = Math.random() * 50 | 0;
|
|
if (nTp === 0 && first !== 0 && triggered === 0) {
|
|
nTp = Math.random() * 5 | 0;
|
|
if (nTp === 0) {
|
|
creeper();
|
|
} else if (nTp < 3) {
|
|
herobrine();
|
|
} else {
|
|
enderman();
|
|
}
|
|
} else {
|
|
for (i = 0; i < 10; i++) {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
nMs = nm1[rnd];
|
|
nm1.splice(rnd, 1);
|
|
br = document.createElement('br');
|
|
element.appendChild(document.createTextNode(nMs));
|
|
element.appendChild(br);
|
|
}
|
|
first++;
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|
|
}
|