Started logs loading management

This commit is contained in:
unsettledgames
2021-04-27 13:00:43 +02:00
parent 079ea38e63
commit 855c125f8a
5 changed files with 26 additions and 6 deletions

14
js/_logs.js Normal file
View File

@ -0,0 +1,14 @@
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;
document.getElementById("latest-update").innerHTML = allText;
}
}
}
rawFile.send(null);

View File

@ -54,6 +54,7 @@
//=include _colorPicker.js
//=include _paletteBlock.js
//=include _splashPage.js
//=include _logs.js
/**load file**/
//=include _loadImage.js