summaryrefslogtreecommitdiff
path: root/js/garden.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/garden.js')
-rw-r--r--js/garden.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/garden.js b/js/garden.js
index 6db8c95..be4e7e0 100644
--- a/js/garden.js
+++ b/js/garden.js
@@ -502,16 +502,13 @@ function viewCropDetails(crop) {
const modal = document.createElement("div");
const heading = document.createElement("h2");
const subheading = document.createElement("span");
- const family = document.createElement("h3");
- const speciesDetail = `(${crop.species.join(", ")})`;
+ const speciesDetail = `(${crop.species.join(", ")}) - ${crop.family} family`;
heading.appendChild(document.createTextNode(crop.name));
subheading.appendChild(document.createTextNode(speciesDetail));
subheading.classList.add("detail-subheading");
heading.appendChild(subheading);
- family.appendChild(document.createTextNode(`${crop.family} family`));
modal.classList.add("modal");
modal.appendChild(heading);
- modal.appendChild(family);
addDetail("Average time to maturity",
`${crop.maturity} weeks from ${crop.transplant ? "transplant" : "seed"}`);
if(crop.springPlant == -1) {