From 34b74b9e4ec00ca44c0ed2170532878faf6133b5 Mon Sep 17 00:00:00 2001 From: liuzheng712 Date: Mon, 21 Mar 2016 22:51:28 +0800 Subject: [PATCH] fix: when moniter the terminal, fix the shake --- templates/jlog/log_online.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index 3e8898b79..0ec903ed3 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -149,6 +149,7 @@ var tag = $('
'); term.open(); + $('.terminal').hide(); term.resize(80, 24); socket.onopen = function(evt){ @@ -167,6 +168,7 @@ //服务器端认证 window.setTimeout(function(){ $('.terminal').detach().appendTo('#term'); + $('.terminal').show(); socket.onmessage = function(evt){ term.write(evt.data); }}, 1000);