summaryrefslogtreecommitdiff
path: root/WebInterface/dist/script/playModule.js
diff options
context:
space:
mode:
Diffstat (limited to 'WebInterface/dist/script/playModule.js')
-rw-r--r--WebInterface/dist/script/playModule.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/WebInterface/dist/script/playModule.js b/WebInterface/dist/script/playModule.js
new file mode 100644
index 0000000..e807783
--- /dev/null
+++ b/WebInterface/dist/script/playModule.js
@@ -0,0 +1 @@
+(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,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),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