From 2b9c93ac6d216b67e95ccc0cfb30bc5f58c9744a Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Thu, 24 Jul 2014 22:20:33 +0700 Subject: Websocket replies --- src/java/com/juick/http/www/PageTemplates.java | 5 +++-- src/java/com/juick/http/www/UserThread.java | 13 +++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) (limited to 'src/java/com/juick/http/www') diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index dabbea99..c64f99dd 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -51,9 +51,9 @@ public class PageTemplates { out.println(""); out.print(""); out.print("
"); - out.print(""); + out.print(""); out.print(""); - out.print(""); + out.print(""); if (headers != null) { out.print(headers); } @@ -247,6 +247,7 @@ public class PageTemplates { out.println("m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)"); out.println("})(window,document,'script','//www.google-analytics.com/analytics.js','ga');"); out.println("ga('create','UA-385578-4','juick.com');"); + out.println("ga('require','displayfeatures');"); out.println("ga('send','pageview');"); if (sapeon) { diff --git a/src/java/com/juick/http/www/UserThread.java b/src/java/com/juick/http/www/UserThread.java index d2b65b77..c2d7cb14 100644 --- a/src/java/com/juick/http/www/UserThread.java +++ b/src/java/com/juick/http/www/UserThread.java @@ -80,6 +80,15 @@ public class UserThread { out.println(""); PageTemplates.pageFooter(request, out, visitor, false); + + out.println(""); + PageTemplates.pageEnd(out); } finally { out.close(); @@ -298,7 +307,7 @@ public class UserThread { if (msg.User.Banned == false) { out.println(" "); } else { - out.println("