Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Latest logs at the bottom in webpage console

Closes #26
  • Loading branch information...
commit 87a7288575c6251d377a448fb98a13d93bcf8b47 1 parent e998e35
@dbankier authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  server/public/javascript/main.js
View
3  server/public/javascript/main.js
@@ -14,7 +14,8 @@ TiShadow.init = function (session, guest){
var now = new Date();
var log = now.getHours() + ":" + now.getMinutes() + ":" + now.getSeconds() + " [" + e.level + "] [" + e.name + "] " + e.message.replace("\n","<br/>");
var style = e.level === "ERROR" || e.level === "FAIL" ? " error" : e.level === "WARN" ? "" : " success"
- $(".console").prepend("<div class='alert-message" + style + "'>" + log + "</div>");
+ $(".console").append("<div class='alert-message" + style + "'>" + log + "</div>");
+ $(".console").scrollTop($(".console")[0].scrollHeight);
});
TiShadow.socket = socket;
};
Please sign in to comment.
Something went wrong with that request. Please try again.