From 85b595f35d7093c34de10871bf0ff4c9119754f0 Mon Sep 17 00:00:00 2001 From: bluesaxman Date: Mon, 18 Aug 2025 11:26:38 -0600 Subject: [PATCH] added additional information to pecs in library --- main.js | 8 ++++---- pecslib.js | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/main.js b/main.js index 6732f8a..d0d09d5 100644 --- a/main.js +++ b/main.js @@ -148,15 +148,15 @@ repopGrid(app.currentBoard); // Populate Library app.library = []; -app.library.push(new pec("No","")); +app.library.push(new pec("No","images/cards_conversation_no.svg")); app.library.push(new pec("Up","")); app.library.push(new pec("More","")); -app.library.push(new pec("Drink","")); -app.library.push(new pec("Food","")); +app.library.push(new pec("Drink","images/cards_food_thirsty.svg")); +app.library.push(new pec("Food","images/cards_food_hungry.svg")); // add more here app.library.forEach((p,i)=>{ var newPec = document.createElement("span"); - newPec.classList.add("pecSlot"); + newPec.classList.add("libSlot"); newPec.innerText = p.word; newPec.id = "lPec"+i; newPec.addEventListener("click", useThisPec); diff --git a/pecslib.js b/pecslib.js index 0dd1761..8554e49 100644 --- a/pecslib.js +++ b/pecslib.js @@ -5,7 +5,6 @@ class pec { var me = this; this.word = "string" == typeof word ? word : "Empty"; this.image = image; // Add image processing here - this.utterance = new SpeechSynthesisUtterance(this.word); var root = document.createElement("div"); root.draggable = true; root.classList.add("pec");