diff options
author | TrueDoctor <d-kobert@web.de> | 2018-10-01 22:57:22 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-10-01 22:57:22 +0200 |
commit | 373af0a9c563dcd6bfb5e136f75f23e48bfb961c (patch) | |
tree | 693f019c86635222c3742ce97e764d7ba36065b5 /WebInterface/NodeJSServer/dist/script/playModule.js | |
parent | e7cac3a24b88a139eaf237a4342fa27c00bf2097 (diff) | |
parent | d24bc122966845bfc793c46aa268529f086af58f (diff) |
Merge branch 'WebApi' of https://github.com/TrueDoctor/DiscoBot into WebApi
Diffstat (limited to 'WebInterface/NodeJSServer/dist/script/playModule.js')
-rw-r--r-- | WebInterface/NodeJSServer/dist/script/playModule.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/WebInterface/NodeJSServer/dist/script/playModule.js b/WebInterface/NodeJSServer/dist/script/playModule.js new file mode 100644 index 0000000..e807783 --- /dev/null +++ b/WebInterface/NodeJSServer/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,"&").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 |