diff options
author | David Thompson <dthompson@vistahigherlearning.com> | 2022-01-22 10:54:08 -0500 |
---|---|---|
committer | David Thompson <dthompson@vistahigherlearning.com> | 2022-01-22 10:54:08 -0500 |
commit | e258aaa656e9dcc3b61341ddf00e1ba7815b23a7 (patch) | |
tree | 974dae638a15d2fbefeed06713e386759f1f3231 /js | |
parent | 58237c35946bb229f3efe79f0e95cd45345a236b (diff) |
Tweak family info location in crop details modal.
Diffstat (limited to 'js')
-rw-r--r-- | js/garden.js | 5 |
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) { |