From 007ea5571e2dca4d2ce6db7b3e7f98b86bf929ab Mon Sep 17 00:00:00 2001 From: Maximilien Cuony Date: Sun, 11 Sep 2016 03:02:00 +0200 Subject: Use websocket and add multiple-user at the same time --- templates/index.html | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index 1b68ce2..038130d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -5,19 +5,18 @@ Moniteur de Glutte - -

Ceci n'est pas une Glutte

-

-
-
+            socket.onmessage = function(data) {
+                output.textContent += data.data;
+                window.scrollTo(0, document.body.scrollHeight);
+            }
+        
+    
+
-- 
cgit v1.2.3