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.

126 lines
4.1 KiB
JavaScript

function nameGen() {
var nm1 = [
["Ace", "Ocelot"],
["Amps", "Pampas Cat"],
["Ampy", "Pampas Cat"],
["Amur", "Amur Leopard"],
["Amy", "Amur Leopard"],
["Andrea", "Andean Mountain Cat"],
["Andy", "Andean Mountain Cat"],
["Ashia", "Asian Golden Cat"],
["Baera", "Iberian Lynx"],
["Bayleigh", "Bay Cat"],
["Bayor", "Bay Cat"],
["Ben", "Bengal Tiger"],
["Benga", "Bengal Tiger"],
["Benny", "Bengal Tiger"],
["Benti", "Bengal Tiger"],
["Beyca", "Bay Cat"],
["Bob", "Bobcat"],
["Bobby", "Bobcat"],
["Caju", "Jungle Cat"],
["Cally", "Canada Lynx"],
["Cara", "Caracal"],
["Carl", "Caracal"],
["Cary", "Caracal"],
["Casper", "Caspian Tiger"],
["Cassy", "Caspian Tiger"],
["Chichi", "Cheetah"],
["Chimo", "Chinese Mountain Cat"],
["Cilla", "Oncilla"],
["Cillon", "Oncilla"],
["Cilo", "Ocelot"],
["Clo", "Clouded Leopard"],
["Cloud", "Clouded Leopard"],
["Cougie", "Cougar"],
["Docdoc", "Kodkod"],
["Dom", "Domestic Cat"],
["Domenica", "Domestic Cat"],
["Euro", "European Wildcat"],
["Frigol", "African Golden Cat"],
["Fyca", "Fishing Cat"],
["Geoffroy", "Geoffroy's Cat"],
["Gerti", "Tiger"],
["Goldie", "Asian Golden Cat"],
["Guarundi", "Jaguarundi"],
["Ibe", "Iberian Lynx"],
["Ibelle", "Iberian Lynx"],
["Ishi", "Fishing Cat"],
["Jaff", "Javan Tiger"],
["Jagg", "Jaguar"],
["Jaggy", "Jaguar"],
["Jagry", "Jaguar"],
["Jeff", "Geoffroy's Cat"],
["Jinco", "Jungle Cat"],
["Junco", "Jungle Cat"],
["Kod", "Kodkod"],
["Koddo", "Kodkod"],
["Kody", "Kodkod"],
["Lea", "Leopard"],
["Lee", "Lion"],
["Leo", "Leopard"],
["Leo", "Leopard Cat"],
["Leoca", "Leopard Cat"],
["Lieur", "Eurasian Lynx"],
["Lotte", "Ocelot"],
["Lyca", "Canada Lynx"],
["Mali", "Malayan Tiger"],
["Mara", "Margay"],
["Marbin", "Marbled Cat"],
["Margie", "Margay"],
["Masu", "Sumatran Tiger"],
["Matti", "Malayan Tiger"],
["Mirga", "Margay"],
["Mounchi", "Chinese Mountain Cat"],
["Nilo", "Lion"],
["Olin", "Lion"],
["Oncy", "Oncilla"],
["Palla", "Pallas's Cat"],
["Palleo", "Leopard Cat"],
["Pally", "Pallas's Cat"],
["Pampa", "Pampas Cat"],
["Pampam", "Pampas Cat"],
["Pamps", "Pampas Cat"],
["Raccal", "Caracal"],
["Ruma", "Amur Leopard"],
["Rundy", "Jaguarundi"],
["Rusty", "Rusty-Spotted Cat"],
["Sandy", "Sand Cat"],
["Seelo", "Ocelot"],
["Serva", "Serval"],
["Siago", "Asian Golden Cat"],
["Siango", "Asian Golden Cat"],
["Sibs", "Siberian Tiger"],
["Sno", "Snow Leopard"],
["Spot", "Rusty-Spotted Cat"],
["Sunda", "Sunda Leopard Cat"],
["Sundy", "Sunda Leopard Cat"],
["Sunny", "Sunda Leopard Cat"],
["Tica", "Caspian Tiger"],
["Ticca", "Southern Tiger Cat"],
["Tima", "Malayan Tiger"],
["Tissi", "Siberian Tiger"],
["Trassuma", "Sumatran Tiger"],
["Tyga", "Tiger"],
["Vanja", "Javan Tiger"],
["Wilco", "African Wildcat"],
["Willas", "Asiatic Wildcat"],
["Williaf", "African Wildcat"]
];
var br = "";
var element = document.createElement("div");
element.setAttribute("id", "result");
for (i = 0; i < 10; i++) {
rnd = Math.random() * nm1.length | 0;
names = nm1[rnd][0] + " (" + nm1[rnd][1] + ")";
nm1.splice(rnd, 0);
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);
}