diff options
Diffstat (limited to 'WebInterface/NodeJSServer/dist/script/playModule.js')
-rw-r--r-- | WebInterface/NodeJSServer/dist/script/playModule.js | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/WebInterface/NodeJSServer/dist/script/playModule.js b/WebInterface/NodeJSServer/dist/script/playModule.js deleted file mode 100644 index e807783..0000000 --- a/WebInterface/NodeJSServer/dist/script/playModule.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{2:function(e,s,t){"use strict";t.r(s),t.d(s,"default",function(){return n});class n{constructor(e,s){this.user=e,this.connection=s}registerChat(e){this.chat=document.getElementById(e),this.messageList=this.chat.querySelector("#message-list"),this.messageInput=this.chat.querySelector("#input-message"),this.messageSend=this.chat.querySelector("#send-message"),this.connection.on("ReceiveMessage",(e,s)=>{let t=e+" sagt: "+s.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n=document.createElement("p");n.class="message",n.textContent=t,this.messageList.appendChild(n)}),this.messageSend.addEventListener("click",()=>{let e=this.messageInput.value;this.connection.invoke("SendMessage",this.user,e)})}}}}]);
\ No newline at end of file |