|
|
|
@ -32,21 +32,8 @@ function init(logType) {
|
|
|
|
|
var d = document.getElementById("renderer");
|
|
|
|
|
d.innerHTML = "loading ...";
|
|
|
|
|
|
|
|
|
|
/*var r = new XMLHttpRequest();
|
|
|
|
|
r.open("GET", "/ajax/log/" + logType, true);
|
|
|
|
|
r.responseType = "text";
|
|
|
|
|
r.onload = function() {
|
|
|
|
|
var text;
|
|
|
|
|
text = (r.responseText).split("\n");
|
|
|
|
|
$("#renderer").text("");
|
|
|
|
|
console.log(text.length);
|
|
|
|
|
for (var i = 0; i < text.length; i++) {
|
|
|
|
|
$("#renderer").append( "<div>" + _sanitize(text[i]) + "</div>" );
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
r.send();*/
|
|
|
|
|
$.ajax({
|
|
|
|
|
url: "/ajax/log/" + logType,
|
|
|
|
|
url: window.location.pathname + "/../../ajax/log/" + logType,
|
|
|
|
|
datatype: "text",
|
|
|
|
|
cache: false
|
|
|
|
|
})
|
|
|
|
|