summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2022-02-18 09:33:51 -0500
committerDavid Thompson <dthompson@vistahigherlearning.com>2022-02-18 09:33:51 -0500
commite984ffa0b1b1106151efd6f57f40e0565c39d0b1 (patch)
tree8ba32ecc5e59e80b93e211be0f069ead4849c800 /js
parent1466f38f0bd71980e1079cf6fcc642dc36034214 (diff)
Make the planner decently printable.
Diffstat (limited to 'js')
-rw-r--r--js/garden.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/garden.js b/js/garden.js
index 046943a..12a5fc4 100644
--- a/js/garden.js
+++ b/js/garden.js
@@ -696,10 +696,10 @@ function refreshTable(crops, season, schedule) {
function createCropRow(crop, schedule) {
function icon(name) {
- const img = document.createElement("img");
- img.classList.add("icon");
- img.src = `images/${name}.svg`;
- return img;
+ const icon = document.createElement("span");
+ icon.classList.add("icon");
+ icon.classList.add(`icon-${name}`);
+ return icon;
}
const row = document.createElement("tr");