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.
114 lines
19 KiB
JavaScript
114 lines
19 KiB
JavaScript
function nameGen() {
|
|
var nm1 = ["magnificent", "cozy", "warm and cozy", "stylish", "very elegant", "gorgeous", "grandiose", "impressive", "lavish", "snug and comfortable", "intimate and cozy", "luxurious", "posh and extravagant", "nice and traditional", "old, but wonderful"];
|
|
var nm2 = ["blue stones", "bricks covered in render", "brown bricks", "brown stones", "burgandy bricks", "cypress wood", "fir wood", "grey bricks", "grey stones", "oak wood", "poplar wood", "red bricks", "red pine wood", "sandstone", "spruce wood", "tan bricks", "tan stones", "walnut wood", "wheat colored bricks", "white bricks", "white cedar wood", "white pine wood", "white stones", "wood covered in render", "yellow pine wood"];
|
|
var nm3 = ["blue stone", "brown brick", "brown stone", "burgandy brick", "cypress wooden", "fir wooden", "grey brick", "grey stone", "oak wooden", "poplar wooden", "red brick", "red pine wooden", "sandstone", "spruce wooden", "tan brick", "tan stone", "marble", "granite", "mahogany wooden", "walnut wood", "white brick", "white cedar wooden", "white pine wooden", "white stone", "yellow pine wooden"];
|
|
var nm4 = ["Tall, large", "Tall, wide", "Short, wide", "Small, rounded", "Tall, rounded", "Small, squared", "Tall, squared", "Small, rectangular", "Tall, rectangular", "Small, half rounded", "Tall, half rounded", "Small, octagon", "Large, octagon", "Small, triangular", "Large, triangular"];
|
|
var nm5 = ["let in plenty of light", "brighten up the house", "add to the overall style of the house", "add to the overall look of the house", "allow enough light to enter the home"];
|
|
var nm6 = ["in a very symmetric way", "in a mostly symmetric way", "in a very asymmetric way", "in a mostly asymmetric way", "in a fairly symmetrical pattern", "in a fairly asymmetrical pattern"];
|
|
var nm7 = ["shaped like a T", "shaped like an L", "shaped like a short U", "shaped like a squared S", "square shaped", "rectangular shaped", "fairly rounded in shape", "shaped like a circle"];
|
|
var nm8a = ["The two extensions are linked by a patio circling around half the house", "The two extensions are linked by a covered patio circling around half the house", "The two extensions are linked by glass overhanging panels circling around half the house", "The two extensions are linked by wooden overhanging panels circling around half the house", "The two extensions are linked by cloth sunscreens circling around half the house", "The two extensions are linked by wooden sunscreens structures circling around half the house", "The two extensions are linked by stylish gardens circling around half the house", "The two extensions are linked by a garden path circling around half the house", "The two extensions are linked by overgrown wooden overhanging panels circling around half the house", "The two extensions extend into a patio reaching until the end of that side of the house", "The two extensions extend into a covered patio reaching until the end of that side of the house", "The two extensions extend into glass overhanging panels reaching until the end of that side of the house", "The two extensions extend into wooden overhanging panels reaching until the end of that side of the house", "The two extensions extend into cloth sunscreens reaching until the end of that side of the house", "The two extensions extend into wooden sunscreens structures reaching until the end of that side of the house", "The two extensions extend into stylish gardens reaching until the end of that side of the house", "The two extensions extend into a garden path reaching until the end of that side of the house", "The two extensions extend into overgrown wooden overhanging panels reaching until the end of that side of the house"];
|
|
var nm8b = ["The extension extends into a patio circling around half the house", "The extension extends into a covered patio circling around half the house", "The extension extends into glass overhanging panels circling around half the house", "The extension extends into wooden overhanging panels circling around half the house", "The extension extends into cloth sunscreens circling around half the house", "The extension extends into wooden sunscreens structures circling around half the house", "The extension extends into stylish gardens circling around half the house", "The extension extends into a garden path circling around half the house", "The extension extends into overgrown wooden overhanging panels circling around half the house", "The extension extends into a patio reaching until the end of that side of the house", "The extension extends into a covered patio reaching until the end of that side of the house", "The extension extends into glass overhanging panels reaching until the end of that side of the house", "The extension extends into wooden overhanging panels reaching until the end of that side of the house", "The extension extends into cloth sunscreens reaching until the end of that side of the house", "The extension extends into wooden sunscreens structures reaching until the end of that side of the house", "The extension extends into stylish gardens reaching until the end of that side of the house", "The extension extends into a garden path reaching until the end of that side of the house", "The extension extends into overgrown wooden overhanging panels reaching until the end of that side of the house"];
|
|
var nm8c = ["The two extensions are linked by a patio", "The two extensions are linked by a covered patio", "The two extensions are linked by glass overhanging panels", "The two extensions are linked by wooden overhanging panels", "The two extensions are linked by cloth sunscreens", "The two extensions are linked by wooden sunscreens structures", "The two extensions are linked by stylish gardens", "The two extensions are linked by a garden path", "The two extensions are linked by overgrown wooden overhanging panels", "The two extensions extend into a patio to each side", "The two extensions extend into a covered patio to each side", "The two extensions extend into glass overhanging panels to each side", "The two extensions extend into wooden overhanging panels to each side", "The two extensions extend into cloth sunscreens to each side", "The two extensions extend into wooden sunscreens structures to each side", "The two extensions extend into stylish gardens to each side", "The two extensions extend into a garden path to each side", "The two extensions extend into overgrown wooden overhanging panels to each side"];
|
|
var nm8d = ["The two extensions extend into a patio circling around half the house", "The two extensions extend into a covered patio circling around half the house", "The two extensions extend into glass overhanging panels circling around half the house", "The two extensions extend into wooden overhanging panels circling around half the house", "The two extensions extend into cloth sunscreens circling around half the house", "The two extensions extend into wooden sunscreens structures circling around half the house", "The two extensions extend into stylish gardens circling around half the house", "The two extensions extend into a garden path circling around half the house", "The two extensions extend into overgrown wooden overhanging panels circling around half the house", "The two extensions extend into a patio to each side", "The two extensions extend into a covered patio to each side", "The two extensions extend into glass overhanging panels to each side", "The two extensions extend into wooden overhanging panels to each side", "The two extensions extend into cloth sunscreens to each side", "The two extensions extend into wooden sunscreens structures to each side", "The two extensions extend into stylish gardens to each side", "The two extensions extend into a garden path to each side", "The two extensions extend into overgrown wooden overhanging panels to each side"];
|
|
var nm8e = ["The house is half surrounded by a patio", "The house is half surrounded by a covered patio", "The house is half surrounded by glass overhanging panels", "The house is half surrounded by wooden overhanging panels", "The house is half surrounded by cloth sunscreens", "The house is half surrounded by wooden sunscreens structures", "The house is half surrounded by stylish gardens", "The house is half surrounded by a garden path", "The house is half surrounded by overgrown wooden overhanging panels", "The house is fully surrounded by a patio", "The house is fully surrounded by a covered patio", "The house is fully surrounded by glass overhanging panels", "The house is fully surrounded by wooden overhanging panels", "The house is fully surrounded by cloth sunscreens", "The house is fully surrounded by wooden sunscreens structures", "The house is fully surrounded by stylish gardens", "The house is fully surrounded by a garden path", "The house is fully surrounded by overgrown wooden overhanging panels", "The house is partially surrounded by a patio on two sides", "The house is partially surrounded by a covered patio on two sides", "The house is partially surrounded by glass overhanging panels on two sides", "The house is partially surrounded by wooden overhanging panels on two sides", "The house is partially surrounded by cloth sunscreens on two sides", "The house is partially surrounded by wooden sunscreens structures on two sides", "The house is partially surrounded by stylish gardens on two sides", "The house is partially surrounded by a garden path on two sides", "The house is partially surrounded by overgrown wooden overhanging panels on two sides"];
|
|
var nm9 = ["bigger than the first", "smaller than the first", "the same size as the first"];
|
|
var nm10a = ["which creates a stylish overhang around the entire house", "which creates a stylish overhang around half the house", "which creates a stylish overhang on one side of the house", "which creates a stylish overhang on two sides of the house", "which creates several overhanging parts on several sides of the house", "which creates several overhanging parts on one side of the house"];
|
|
var nm10b = ["which allowed for a large balcony on one side of the house", "which allowed for several small balconies on one side of the house", "which allowed for several balconies on the sides of the house", "which creates a layered style of look in combination with the roof", "which, in combination with its placement, creates an original look", "which allowed for a roof garden on one side of the house", "which allowed for a roof garden on two sides of the house"];
|
|
var nm10c = ["which has been built exactly on top of the floor below it", "but part of it hangs over the edge of the floor below, creating an overhang on one side and a balcony on the other"];
|
|
var nm11 = ["follows the same style as", "has a slightly different style than", "has a different style than", "has a very different style than", "has roughly the same style as"];
|
|
var nm12 = ["high and triangular", "low and triangular", "high and pyramid shaped", "low and pyramid shaped", "flat", "low and slanted to one side", "high and slanted to one side", "high, triangular and layered", "low, triangular and layered", "high, triangular, but one side is longer than the other", "low, triangular, but one side is longer than the other", "high and v-shaped", "low and v-shaped", "low and square shaped", "high and square shaped", "high and rounded", "low and rounded"];
|
|
var nm13 = ["black ceramic tiles", "black roof tiles", "brown ceramic tiles", "brown roof tiles", "brown wood shingles", "dark ceramic tiles", "flat roof tiles", "grey ceramic tiles", "grey roof tiles", "grey wood shingles", "overlapping roof tiles", "red ceramic tiles", "red roof tiles", "red wood shingles", "rounded roof tiles", "seagrass", "slate shingles", "stone slabs", "wheat straw", "wood shingles"];
|
|
var nm14 = ["One large chimney pokes out the center of the roof", "Two large chimneys poke out the center of the roof", "One large chimney sits at the side of the house", "Two large chimneys sit at the side of the house", "Two large chimneys sit at either side of the house", "There are no chimneys", "One small chimney pokes out the center of the roof", "Two small chimneys poke out the center of the roof", "One small chimney sits at the side of the house", "Two small chimneys sit at the side of the house", "Two small chimneys sit at either side of the house"];
|
|
var nm15 = ["Several large windows let in plenty of light to the rooms below the roof", "Many smaller windows let in plenty of light to the rooms below the roof", "Several small windows let in just enough light to the rooms below the roof", "A few large windows let in just enough light to the rooms below the roof", "A few round, small windows let in enough light to the rooms below the roof", "Several long, thin windows let in plenty of light to the rooms below the roof", "Two roof terraces let in plenty of light to the rooms below the roof", "Large, skylight windows let in plenty of light to the rooms below the roof", "Rows of small windows let in plenty of light to the rooms below the roof", "There are no windows on the roof"];
|
|
var nm16 = ["a gorgeous garden with many hidden lights that make the garden come to life at night", "a gorgeous garden, including hanging grape vines, a pagoda, a pond and many different flowers", "a gorgeous garden, including various trees, bushes, flowers and a large pond", "a modest garden, covered mostly in grass, a few flower patches and with a small pond", "a modest garden, with mostly grass and a few small trees", "a modest garden, with mostly grass, a few flower patches and a children's playground", "a modest, childsafe garden covered mostly in grass and with a children's playground in the center", "a tranquil garden, with various flowers, a long pond including a small waterfall and various rock formations", "a well kept garden, with a grass field and flower patches at the edges of the garden", "a well kept garden. Grass, flower patches and trees have been placed in a stylish way", "grass, a huge tree in the center and bushes on the borders of the plot", "paved ground, with a pool at the backside of the house", "paved ground, with a small pond at one side and various potted plants all around the house", "paved ground, with an outdoor eating and relaxing space and various potted plants", "paved ground, with various party spots, like a fancy barbeque and a firepit"];
|
|
var nm17 = ["a large", "a small", "a modern", "a huge", "an average", "an old-fashioned"];
|
|
var nm18 = ["two bathrooms", "one large bathroom", "one small bathroom", "one average bathroom", "one modern bathroom", "two modern bathrooms", "three bathrooms"];
|
|
var nm19 = ["large", "cozy", "small", "warm", "huge", "fairly small", "comfortable", "snug", "generous", "spacious"];
|
|
var nm20 = ["two bedrooms", "three bedrooms", "four bedrooms", "five bedrooms"];
|
|
var nm21 = ["a small", "a large", "a cozy", "a snug", "a spacious", "a modest", "a grand", "a roomy"];
|
|
var nm22 = ["dining room", "dining area"];
|
|
var nm23 = ["", "", "", "", "", ", a lounge area", ", a study", ", a library", ", a game room", ", a bar", ", a sun room", ", a playroom", ", a multimedia room", ", an office"];
|
|
var nm24 = ["storage room", "garage", "basement"];
|
|
var nms8 = "";
|
|
var nms10 = "";
|
|
var rnd1 = parseInt(Math.floor(Math.random() * nm1.length));
|
|
var rnd2 = parseInt(Math.floor(Math.random() * nm2.length));
|
|
var rnd3 = parseInt(Math.floor(Math.random() * nm3.length));
|
|
var rnd4 = parseInt(Math.floor(Math.random() * nm4.length));
|
|
var rnd5 = parseInt(Math.floor(Math.random() * nm5.length));
|
|
var rnd6 = parseInt(Math.floor(Math.random() * nm6.length));
|
|
var rnd7 = parseInt(Math.floor(Math.random() * nm7.length));
|
|
var rnd8 = parseInt(Math.floor(Math.random() * nm8e.length));
|
|
if (rnd7 === 0) {
|
|
rnd8 = parseInt(Math.floor(Math.random() * nm8a.length));
|
|
nms8 = nm8a[rnd8];
|
|
} else if (rnd7 === 1) {
|
|
rnd8 = parseInt(Math.floor(Math.random() * nm8b.length));
|
|
nms8 = nm8b[rnd8];
|
|
} else if (rnd7 === 2) {
|
|
rnd8 = parseInt(Math.floor(Math.random() * nm8c.length));
|
|
nms8 = nm8c[rnd8];
|
|
} else if (rnd7 === 3) {
|
|
rnd8 = parseInt(Math.floor(Math.random() * nm8d.length));
|
|
nms8 = nm8d[rnd8];
|
|
} else {
|
|
nms8 = nm8e[rnd8];
|
|
}
|
|
var rnd9 = parseInt(Math.floor(Math.random() * nm9.length));
|
|
var rnd10 = parseInt(Math.floor(Math.random() * nm10a.length));
|
|
if (rnd9 === 1) {
|
|
rnd10 = parseInt(Math.floor(Math.random() * nm10b.length));
|
|
nms10 = nm10b[rnd10];
|
|
} else if (rnd9 === 2) {
|
|
rnd10 = parseInt(Math.floor(Math.random() * nm10c.length));
|
|
nms10 = nm10c[rnd10];
|
|
} else {
|
|
nms10 = nm10a[rnd10];
|
|
}
|
|
var rnd11 = parseInt(Math.floor(Math.random() * nm11.length));
|
|
var rnd12 = parseInt(Math.floor(Math.random() * nm12.length));
|
|
var rnd13 = parseInt(Math.floor(Math.random() * nm13.length));
|
|
var rnd14 = parseInt(Math.floor(Math.random() * nm14.length));
|
|
var rnd15 = parseInt(Math.floor(Math.random() * nm15.length));
|
|
var rnd16 = parseInt(Math.floor(Math.random() * nm16.length));
|
|
var rnd17 = parseInt(Math.floor(Math.random() * nm17.length));
|
|
var rnd18 = parseInt(Math.floor(Math.random() * nm18.length));
|
|
var rnd19 = parseInt(Math.floor(Math.random() * nm19.length));
|
|
var rnd20 = parseInt(Math.floor(Math.random() * nm20.length));
|
|
var rnd21 = parseInt(Math.floor(Math.random() * nm21.length));
|
|
var rnd22 = parseInt(Math.floor(Math.random() * nm22.length));
|
|
var rnd23 = parseInt(Math.floor(Math.random() * nm23.length));
|
|
var rnd24 = parseInt(Math.floor(Math.random() * nm24.length));
|
|
var rnd25 = parseInt(Math.floor(Math.random() * nm21.length));
|
|
var name = "From the outside this house looks " + nm1[rnd1] + ". It has been built with " + nm2[rnd2] + " and has " + nm3[rnd3] + " decorations. " + nm4[rnd4] + " windows " + nm5[rnd5] + " and have been added to the house " + nm6[rnd6] + ".";
|
|
var name2 = "The house is equipped with " + nm17[rnd17] + " kitchen and " + nm18[rnd18] + ", it also has a " + nm19[rnd19] + " living room, " + nm20[rnd20] + ", " + nm21[rnd21] + " " + nm22[rnd22] + nm23[rnd23] + " and " + nm21[rnd25] + " " + nm24[rnd24] + ".";
|
|
var name3 = "The building is " + nm7[rnd7] + ". " + nms8 + ".";
|
|
var name4 = "The second floor is " + nm9[rnd9] + ", " + nms10 + ". This floor " + nm11[rnd11] + " the floor below.";
|
|
var name5 = "The roof is " + nm12[rnd12] + " and is covered with " + nm13[rnd13] + ". " + nm14[rnd14] + ". " + nm15[rnd15] + ".";
|
|
var name6 = "The house itself is surrounded by " + nm16[rnd16] + ".";
|
|
var br = [];
|
|
for (i = 0; i < 8; i++) {
|
|
br[i] = document.createElement('br');
|
|
}
|
|
if (document.getElementById("result")) {
|
|
document.getElementById("placeholder").removeChild(document.getElementById("result"));
|
|
}
|
|
var element = document.createElement("div");
|
|
element.setAttribute("id", "result");
|
|
element.appendChild(document.createTextNode(name));
|
|
element.appendChild(br[0]);
|
|
element.appendChild(br[1]);
|
|
element.appendChild(document.createTextNode(name2));
|
|
element.appendChild(br[2]);
|
|
element.appendChild(br[3]);
|
|
element.appendChild(document.createTextNode(name3));
|
|
element.appendChild(br[4]);
|
|
element.appendChild(document.createTextNode(name4));
|
|
element.appendChild(br[5]);
|
|
element.appendChild(br[6]);
|
|
element.appendChild(document.createTextNode(name5));
|
|
element.appendChild(br[7]);
|
|
element.appendChild(document.createTextNode(name6));
|
|
document.getElementById("placeholder").appendChild(element);
|
|
}
|