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");