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.
130 lines
4.2 KiB
JavaScript
130 lines
4.2 KiB
JavaScript
var nm1 = ["Arida", "Asa", "Bira", "En", "Fuji", "Funa", "Furu", "Hashi", "Haya", "Hon", "Horo", "Iwa", "Jami", "Kamisu", "Ken", "Kiko", "Kimo", "Kiyo", "Kuma", "Kumi", "Kuri", "Kuro", "Kuzu", "Matsu", "Mina", "Miya", "Mutsu", "Naga", "Naka", "Nakashi", "Nara", "Oku", "Ran", "Shako", "Shi", "Shima", "Shin", "Shinto", "Shira", "Sou", "Taka", "Tate", "Tawa", "Tawara", "Tou", "Ura", "Wata", "Ya", "Yaha", "Yaku", "Yama", "Yoko", "Yuga"];
|
|
var nm2 = ["betsu", "biro", "buchi", "daka", "furano", "gata", "gawa", "haba", "hama", "hidaka", "homa", "horo", "kami", "kanai", "kawa", "kita", "konai", "koshi", "kotan", "kumo", "maki", "mamoto", "matsunai", "moto", "nagawa", "nai", "nobe", "nokawa", "nouchi", "raha", "ramoto", "rano", "raoi", "saki", "sato", "shibetsu", "shihoro", "shina", "shiri", "sunai", "tama", "tari", "tori", "toro", "tsukawa", "wara", "yako", "yama", "zaki", "zawa"];
|
|
var nm3 = [
|
|
["Arashi", "Storm"],
|
|
["Bonchi", "Basin"],
|
|
["Chōten", "Peaks"],
|
|
["Dō", "Copper"],
|
|
["Dōkutsu", "Cave"],
|
|
["Dairiseki", "Marble"],
|
|
["Doro", "Dirt"],
|
|
["Doro", "Mud"],
|
|
["Eda", "Branches"],
|
|
["Fiyorudo", "Fjord"],
|
|
["Kin", "Gold"],
|
|
["Gake", "Cliff"],
|
|
["Genbugan", "Basalt"],
|
|
["Gin", "Silver"],
|
|
["Gohan", "Rice"],
|
|
["Hōseki", "Jewel"],
|
|
["Hai", "Ash"],
|
|
["Hametsu", "Ruins"],
|
|
["Hana", "Flowers"],
|
|
["Hari", "Needle"],
|
|
["Hi", "Fire"],
|
|
["Hikari", "Light"],
|
|
["Hokori", "Dust"],
|
|
["Hone", "Bone"],
|
|
["Hyōga", "Glacier"],
|
|
["Ike", "Pond"],
|
|
["Jishin", "Earthquake"],
|
|
["Kōri", "Ice"],
|
|
["Kōya", "Wilderness"],
|
|
["Kūchū", "Air"],
|
|
["Kūkyo", "Emptiness"],
|
|
["Kage", "Shadow"],
|
|
["Kaiyō", "Ocean"],
|
|
["Kakōgan", "Granite"],
|
|
["Kaminari", "Thunder"],
|
|
["Kanketsusen", "Geyser"],
|
|
["Kasen", "Rivers"],
|
|
["Kawa", "River"],
|
|
["Kazahana", "Snow Flurry"],
|
|
["Kazan", "Volcano"],
|
|
["Kaze", "Wind"],
|
|
["Keikoku", "Canyon"],
|
|
["Kemono", "Beast"],
|
|
["Kemuri", "Smoke"],
|
|
["Ken", "Blade"],
|
|
["Kesshō", "Crystal"],
|
|
["Ketsueki", "Blood"],
|
|
["Ki", "Trees"],
|
|
["Kinzoku", "Metal"],
|
|
["Kiretsu", "Fissures"],
|
|
["Kokuyōseki", "Obsidian"],
|
|
["Komugi", "Wheat"],
|
|
["Konchū", "Insects"],
|
|
["Konton", "Chaos"],
|
|
["Kumonosu", "Cobwebs"],
|
|
["Kusari", "Chains"],
|
|
["Mitsurin", "Jungle"],
|
|
["Mizūmi", "Lake"],
|
|
["Mizu", "Water"],
|
|
["Nōen", "Farms"],
|
|
["Nagare", "Stream"],
|
|
["Nami", "Waves"],
|
|
["Ne", "Root"],
|
|
["Netsu", "Heat"],
|
|
["Nikkō", "Sunlight"],
|
|
["Nobara", "Bramble"],
|
|
["Numa", "Bog"],
|
|
["Numachi", "Swamp"],
|
|
["Oashisu", "Oasis"],
|
|
["Odei", "Sludge"],
|
|
["Oka", "Hill"],
|
|
["Rōsoku", "Candle"],
|
|
["Sōgen", "Prairie"],
|
|
["Sabaku", "Desert"],
|
|
["Sakura", "Cherry Blossoms"],
|
|
["Samui", "Cold"],
|
|
["Sangoshō", "Coral Reef"],
|
|
["Satōkibi", "Sugarcane"],
|
|
["Sekiei", "Quartz"],
|
|
["Shōnyūseki", "Stalactites"],
|
|
["Shi", "Death"],
|
|
["Shigemi", "Brush"],
|
|
["Shigemi", "Bush"],
|
|
["Shigemi", "Thicket"],
|
|
["Shinchū", "Brass"],
|
|
["Shio", "Salt"],
|
|
["Shiruku", "Silk"],
|
|
["Sora", "Sky"],
|
|
["Su", "Nest"],
|
|
["Take", "Bamboo"],
|
|
["Teien", "Garden"],
|
|
["Tetsu", "Iron"],
|
|
["Toge", "Thorn"],
|
|
["Tori", "Birds"],
|
|
["Tsuchi", "Earth"],
|
|
["Tsurara", "Icicle"],
|
|
["Umō", "Feathers"],
|
|
["Umi", "Sea"],
|
|
["Yōgan", "Lava"],
|
|
["Yūrei", "Ghost"],
|
|
["Yama", "Mountain"],
|
|
["Yami", "Darkness"]
|
|
];
|
|
|
|
function nameGen() {
|
|
var br = "";
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
for (i = 0; i < 10; i++) {
|
|
if (i < 5) {
|
|
rnd = Math.random() * nm3.length | 0;
|
|
names = nm3[rnd][0] + "gakure (" + nm3[rnd][1] + ")";
|
|
} else {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
rnd2 = Math.random() * nm2.length | 0;
|
|
names = 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);
|
|
}
|