Commit 4f2a21fc authored by mercury233's avatar mercury233

support cls

parent 84441c02
......@@ -114,6 +114,10 @@ function login() {
username=$("#username").val();
var es = new EventSource($("#http").val() + "://"+ip+":"+port+"/api/msg?username="+username+"&password="+password);
es.onmessage = function(e) {
if(e.data.toString().includes("\x1b[2K")) {
$("#output").children().last().remove();
}
var data_li = $('<li>'+ e.data +'</li>');
data_li.appendTo($("#output"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment