summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2022-01-22 10:54:08 -0500
committerDavid Thompson <dthompson@vistahigherlearning.com>2022-01-22 10:54:08 -0500
commite258aaa656e9dcc3b61341ddf00e1ba7815b23a7 (patch)
tree974dae638a15d2fbefeed06713e386759f1f3231 /js
parent58237c35946bb229f3efe79f0e95cd45345a236b (diff)
Tweak family info location in crop details modal.
Diffstat (limited to '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) {