pixel-editor/js/_logs.js

15 lines
406 B
JavaScript
Raw Normal View History

2021-04-27 14:00:43 +03:00
var rawFile = new XMLHttpRequest();
rawFile.open("GET", '/pixel-editor/latestLog.html', false);
rawFile.onreadystatechange = function ()
{
if(rawFile.readyState === 4)
{
if(rawFile.status === 200 || rawFile.status == 0)
{
var allText = rawFile.responseText;
2021-04-27 14:00:43 +03:00
document.getElementById("latest-update").innerHTML = allText;
}
}
}
rawFile.send(null);