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.5 KiB
JavaScript
34 lines
2.5 KiB
JavaScript
var br = "";
|
|
var triggered = 0;
|
|
|
|
function nameGen() {
|
|
var nm1 = ["Alabaster", "Amber", "Apple", "Bai Yun", "Bambam", "Bamboo", "Bamboogie", "Bao Bao", "Basi", "Bearnard", "Bearnie", "Beauty", "Bei Bei", "Bigby", "Blissful", "Blithe", "Blossom", "Blot", "Booboo", "Boogie", "Boots", "Bosom", "Bubba", "Bubbles", "Bundle", "Buttons", "Catnap", "Champ", "Champers", "Chi Chi", "Chompers", "Chu-Lin", "Chuang Chuang", "Cloud", "Coco", "Cookie", "Crunch", "Cuddles", "Da Mao", "Dopey", "Dot", "Doughball", "Doze", "Dozy", "Drowsy", "Dumpling", "Durian", "Eden", "Emerald", "Er Shun", "Fleck", "Fuzzy", "Gao Gao", "Gnawgnaw", "Goji", "Gu Gu", "Happy", "Hsing-Hsing", "Hua Mei", "Huddle", "Huggie", "Iroh", "Jade", "Jewel", "Jia Panpan", "Jia Yueyue", "Jolly", "Jujube", "Lazy", "Lin Bing", "Lin Hui", "Ling Ling", "Loaf", "Longan", "Lucky", "Lun Lun", "Lychee", "Marble", "Mei Lan", "Mei Sheng", "Mei Xiang", "Merry", "Ming Ming", "Mottle", "Mulan", "Munchkin", "Mushy", "Nap", "Nebula", "Nibble", "Nipnap", "Noodle", "Nuzzle", "Paws", "Peach", "Pearl", "Pepper", "Peppy", "Perky", "Petal", "Pillow", "Plum", "Plumpy", "Po", "Puddles", "Rambutan", "Roley", "Shi Shi", "Siesta", "Silly", "Silver", "Sleepy", "Slowpoke", "Slumber", "Smudge", "Snooze", "Snoozy", "Snow", "Snowflake", "Snuggie", "Snuggle", "Speck", "Spot", "Squishie", "Stripe", "Su Lin", "Sugar", "Sunshine", "Tai Shan", "Tao Tao", "Tian Tian", "Tickle", "Tohui", "Tuan Tuan", "Ursa", "Waddle", "Wang Wang", "Wuddle", "Xi Lan", "Xian Xian", "Xiang Xiang", "Xiao Liwu", "Xin Xin", "Yang Guang", "Yang Yang", "Yuan Yuan", "Yuan Zai", "Yun Zi", "Zhen Zhen"];
|
|
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);
|
|
}
|
|
}
|