added the html object we made before to be an actual part of the pec object

This commit is contained in:
2025-07-07 16:08:23 -06:00
parent 9e6d18ec83
commit 0eb377dce5

View File

@@ -16,6 +16,7 @@ class pec {
name.classList.add("pecNane"); name.classList.add("pecNane");
root.appendChild(name); root.appendChild(name);
root.addEventListener("click",()=>{ window.speechSynthisis.speak(me.utterance); }); root.addEventListener("click",()=>{ window.speechSynthisis.speak(me.utterance); });
this.DOM = root;
} }
} }