From e258aaa656e9dcc3b61341ddf00e1ba7815b23a7 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sat, 22 Jan 2022 10:54:08 -0500 Subject: Tweak family info location in crop details modal. --- js/garden.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'js') 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) { -- cgit v1.2.3