Define Role class with static members corresponding to the roles. Update startme to * Get hold of the ui elements. * Attach a click handler to submit button, which adds the user input to xchats array and shows the chat messages till now in chat div element. Trap DOMContentLoaded to trigger startme |
||
|---|---|---|
| .. | ||
| completion.js | ||
| favicon.ico | ||
| index.html | ||
| index.js | ||
| json-schema-to-grammar.mjs | ||
| simplechat.html | ||
| simplechat.js | ||