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.1 KiB
JavaScript
34 lines
2.1 KiB
JavaScript
var br = "";
|
|
var triggered = 0;
|
|
|
|
function nameGen() {
|
|
var nm1 = ["Alaska", "Laska", "Arcti", "Arctic", "Avala", "Avalan", "Avalanche", "Beanie", "Blanco", "Blizz", "Blizzard", "Blizzy", "Boots", "Brainfreeze", "Chill", "Chillis", "Chilly", "Cool", "Blockie", "Blockhead", "Coolio", "Cryo", "Cryogen", "Crystal", "Cube", "Cubit", "Drift", "Driffie", "Firn", "Flaik", "Flakie", "Flayke", "Flake", "Flakey", "Fleece", "Fleecey", "Flo", "Flurris", "Flurry", "Frappe", "Freeze", "Frozo", "Freezie", "Fridge", "Fridgy", "Friggy", "Frose", "Fross", "Frost", "Frosty", "Frozo", "Frozone", "Glace", "Glacia", "Glacier", "Glacis", "Glayze", "Gliss", "Glitz", "Hail", "Haile", "Hailey", "Hayle", "Heat", "Heater", "Hiber", "Hibernate", "Holly", "Icicle", "Icy", "Igloo", "Iciclis", "Iglis", "Jolly", "Jon", "Lanche", "Melte", "Molte", "Mittens", "Neige", "Nippy", "Olaf", "Plow", "Pola", "Pole", "Pompom", "Powder", "Pumpkin", "Rime", "Rimy", "Scarf", "Shiver", "Sleat", "Sleet", "Slush", "Slushy", "Snift", "Sno", "Snowball", "Snowcone", "Snowelle", "Snowflake", "Snowie", "Snowly", "Solstice", "Solsti", "Sorbet", "Sorbie", "Sorbette", "Sparkle", "Sticks", "Stickle", "Sweater", "Taiga", "Thaw", "Thawe", "Tinsel", "Toboggan", "Tundra", "Twinkle", "Winter", "Yce"];
|
|
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);
|
|
}
|
|
}
|