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.
61 lines
7.2 KiB
JavaScript
61 lines
7.2 KiB
JavaScript
var nm1 = ["Amplebloom", "Amplegrowth", "Amplerain", "Bloomcrest", "Bloomcrown", "Bloomflux", "Bloompeak", "Bloomrich", "Bloomtide", "Bloomwake", "Blossomcrest", "Blossomcrown", "Blossompeak", "Blossomreach", "Blossomtide", "Budwake", "Coldfade", "Coldpart", "Coldwane", "Dayraise", "Daysurge", "Fairsun", "Flowercall", "Freezewane", "Frostclose", "Frostfade", "Frostflee", "Frostpart", "Frostwane", "Grasswake", "Greenbirth", "Greencrest", "Greencrown", "Greencrowning", "Greenflux", "Greengrasp", "Greenhelm", "Greenpeak", "Greenreign", "Greenrich", "Greenrise", "Greentide", "Greenwake", "Growrich", "Highsun", "Highthaw", "Iceclosing", "Icefall", "Iceflee", "Icewane", "Jadereign", "Leafcall", "Leafcome", "Leafwake", "Lent", "Lightwake", "Mildsun", "Newbirth", "Newgrowth", "Nightfade", "Nigthwane", "Overlight", "Palesun", "Quickday", "Raincall", "Raincome", "Raincrest", "Raincrown", "Rainflux", "Rainhelm", "Rainmeet", "Rainpeak", "Rainrich", "Raintide", "Rebirth", "Regrowth", "Rimewane", "Snowane", "Snowclose", "Snowfade", "Sowing", "Sowreach", "Suncrest", "Sunraise", "Vigortide", "Warmwake", "Watercall", "Watercrown", "Waterhelm", "Watermeet", "Waterreign", "Whitefall", "Whitewane", "Witherend"];
|
|
var nm2 = ["Ablesun", "Amplesun", "Ardorcrest", "Ardorfall", "Ardormeet", "Ardorpeak", "Ardorraise", "Ardorsurge", "Ardortide", "Barenight", "Bloomrich", "Blossomhigh", "Briefnight", "Brightcrest", "Brightsun", "Clearsky", "Dayhelm", "Dayraise", "Dayreign", "Dayrise", "Deepday", "Deepsun", "Earlybright", "Fairday", "Firecall", "Firecrest", "Firemeet", "Firepeak", "Flamecall", "Flamecrest", "Flowerfall", "Fruitcome", "Fruiting", "Fruitpeak", "Fruitrich", "Gentlesky", "Glimmercrest", "Glowcrest", "Glowhigh", "Greatday", "Growrich", "Growthtide", "Heatflush", "Heatreign", "Highglow", "Highgrowth", "Highheat", "Highsun", "Hotflush", "Hotsun", "Lightcrest", "Lightpeak", "Lightrise", "Lightsurge", "Lightwake", "Lustercrest", "Lusterfall", "Lustermeet", "Lustertide", "Potentsun", "Quickday", "Raytide", "Richsun", "Solarcrest", "Solarpeak", "Starksun", "Stormrich", "Strongsun", "Suncrest", "Sunflush", "Sunfull", "Sunhigh", "Sunlift", "Sunloft", "Sunpeak", "Sunraise", "Sunreign", "Sunrich", "Sunsoar", "Sunstark", "Sunswell", "Sunwake", "Sunwell", "Swellsun", "Sweltercome", "Swelterfall", "Sweltersun", "Sweltersurge", "Timecrest", "Timepeak", "Warmcrest", "Warmpeak", "Warmreach", "Warmsun", "Warmthrich", "Warmtide"];
|
|
var nm3 = ["Amberfall", "Ambergrasp", "Amberhelm", "Amberhigh", "Amberreign", "Amberrule", "Amberspell", "Ambertide", "Amplenuts", "Amplerain", "Auburncrown", "Auburnhelm", "Auburnpeak", "Auburnreach", "Auburnspell", "Auburnswell", "Auburntide", "Barrenfall", "Barrenreach", "Barrentide", "Crimsoncall", "Crimsoncome", "Crimsoncrown", "Crimsonfall", "Crimsongrasp", "Crimsonhigh", "Crimsonmeet", "Crimsonpeak", "Crimsonreach", "Crimsonreign", "Crimsonrule", "Crimsonsurge", "Crimsonswell", "Crimsontide", "Dayfade", "Daywane", "Fademeet", "Fruiting", "Gloomfall", "Gloomreach", "Gloomtide", "Greenfade", "Greenfall", "Greenwane", "Greenwaning", "Greenwilt", "Greenwither", "Harvest", "Harvestcome", "Harvestfall", "Harvestmeet", "Harvestreach", "Harvestspell", "Hazelcrown", "Hazelgain", "Hazelhelm", "Hazelreach", "Hazelreign", "Hazelswell", "Hazeltide", "Heatfade", "Heatwane", "Leafwane", "Lifefade", "Nutcrown", "Nutmeet", "Overdark", "Quickdark", "Rainrich", "Reddening", "Redfall", "Redmeet", "Scarletcrown", "Scarletmeet", "Scarlettide", "Stormeet", "Stormfall", "Stormhelm", "Stormreach", "Stormrich", "Stormtide", "Sunfade", "Sunwane", "Sunwaning", "Warmfade", "Withercrown", "Withergrasp", "Withergreen", "Witherhigh", "Witherleaf", "Withermeet", "Witherpeak", "Witherspell", "Withertide"];
|
|
var nm4 = ["Bareday", "Baresun", "Briefday", "Briefsun", "Chillreach", "Chilltide", "Coldgrasp", "Coldhelm", "Coldreach", "Coldsnap", "Darkday", "Darkhelm", "Darkreign", "Deepnight", "Dimday", "Dimsun", "Faintsun", "Floewake", "Freezecall", "Freezefall", "Freezetide", "Frostbellow", "Frostcall", "Frostcrest", "Frostcrown", "Frostfall", "Frostgrasp", "Frosthelm", "Frosthold", "Frostreach", "Frostreign", "Frostrich", "Frostspell", "Frosttide", "Frostwake", "Harvestwane", "Hearthwake", "Icebellow", "Icecall", "Icecalling", "Icecrest", "Icecrowning", "Icefall", "Icegrasp", "Icehelm", "Icehold", "Icemeet", "Icereach", "Icereign", "Iceseize", "Icewake", "Littlesun", "Lowsun", "Nightcrest", "Nightcrown", "Nighthelm", "Nightreign", "Nightrich", "Nightwake", "Nigtpeak", "Palesun", "Quickdark", "Redwane", "Rimecalling", "Rimemeet", "Rimereach", "Rimewake", "Silvercrest", "Silvercrown", "Silverhelm", "Silvermeet", "Silverreign", "Silvertide", "Snowcall", "Snowcrest", "Snowcrowning", "Snowfall", "Snowhelm", "Snowhold", "Snowreach", "Snowrich", "Snowseize", "Snowspell", "Snowtide", "Snowwake", "Sunfade", "Sunlow", "Swiftnight", "Whitefall", "Whitehelm", "Whitemeet", "Whitereach", "Whitereign"];
|
|
var nm5 = ["", "", "", "b", "bh", "br", "c", "ch", "d", "dh", "dr", "g", "gn", "h", "k", "kh", "l", "m", "n", "p", "ph", "r", "s", "sh", "str", "t", "th", "thr", "v", "w", "z"];
|
|
var nm6 = ["ae", "ei", "ee", "ea", "ia", "ie", "ou", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u", "a", "e", "i", "o", "u"];
|
|
var nm7 = ["ch", "c", "d", "gh", "ff", "g", "l", "ld", "ll", "n", "nc", "nd", "ng", "nn", "ns", "nt", "pr", "r", "rs", "rt", "rr", "s", "ss", "st", "t", "th", "tr", "ts", "tt", "wh", "z"];
|
|
var nm8 = ["", "", "", "c", "ct", "d", "f", "g", "k", "l", "ld", "lt", "n", "nd", "nk", "nt", "r", "rd", "rk", "s", "sk", "sp", "st", "t"];
|
|
|
|
function nameGen() {
|
|
$('#placeholder').css('textTransform', 'capitalize');
|
|
var br = "";
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
for (i = 0; i < 10; i++) {
|
|
if (i < 2) {
|
|
rnd = Math.random() * nm1.length | 0;
|
|
name = nm1[rnd];
|
|
} else if (i < 4) {
|
|
rnd = Math.random() * nm2.length | 0;
|
|
name = nm2[rnd];
|
|
} else if (i < 6) {
|
|
rnd = Math.random() * nm3.length | 0;
|
|
name = nm3[rnd];
|
|
} else if (i < 8) {
|
|
rnd = Math.random() * nm4.length | 0;
|
|
name = nm4[rnd];
|
|
} else {
|
|
nameMas();
|
|
while (name === "") {
|
|
nameMas();
|
|
}
|
|
}
|
|
br = document.createElement('br');
|
|
element.appendChild(document.createTextNode(name));
|
|
element.appendChild(br);
|
|
}
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|
|
|
|
function nameMas() {
|
|
rnd = Math.random() * nm5.length | 0;
|
|
rnd2 = Math.random() * nm6.length | 0;
|
|
rnd3 = Math.random() * nm7.length | 0;
|
|
rnd4 = Math.random() * nm6.length | 0;
|
|
rnd5 = Math.random() * nm8.length | 0;
|
|
while (nm7[rnd3] === nm5[rnd] || nm7[rnd3] === nm8[rnd5]) {
|
|
rnd3 = Math.random() * nm7.length | 0;
|
|
}
|
|
if (rnd2 < 7) {
|
|
while (rnd4 < 7) {
|
|
rnd4 = Math.random() * nm6.length | 0;
|
|
}
|
|
}
|
|
name = nm5[rnd] + nm6[rnd2] + nm7[rnd3] + nm6[rnd4] + nm8[rnd5];
|
|
testSwear(name);
|
|
}
|