X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=public%2Fjavascripts%2Fcomponents%2Fchat.js;h=5dce30775430f0d72f4509bf10602d046094c82e;hb=3ca7a846ae7bc5d8f7c628417418534f3c92593a;hp=a14899090feb1b92fa0c79482d10bb2999a3d098;hpb=a6403027a66411ead248aab0369bf3ee3a75d8ec;p=vchess.git diff --git a/public/javascripts/components/chat.js b/public/javascripts/components/chat.js index a1489909..5dce3077 100644 --- a/public/javascripts/components/chat.js +++ b/public/javascripts/components/chat.js @@ -1,4 +1,8 @@ - myname: localStorage["username"] || "anonymous", +// TODO: myname, opppnents (optional, different style), people +// --> also show messages like "X offers draw ?" (probably not) + + +myname: localStorage["username"] || "anonymous", oppName: "anonymous", //opponent name, revealed after a game (if provided) chats: [], //chat messages after human game