This commit is contained in:
Gnieark 2016-06-16 09:46:57 +02:00
parent eee40de1bb
commit bea3a2aa89

View File

@ -13,9 +13,12 @@ function Ajx(){
return request;
}
function addLog(message){
var divLogs = document.getElementById("logs");
var p=createElem('p',{});
p.innerHTML=message;
document.getElementById('logs').appendChild(p);
divLogs.appendChild(p);
divLogs.scrollTop = divLogs.scrollHeight;
}
function createElem(type,attributes){
var elem=document.createElement(type);