.
This commit is contained in:
parent
eee40de1bb
commit
bea3a2aa89
|
@ -13,9 +13,12 @@ function Ajx(){
|
||||||
return request;
|
return request;
|
||||||
}
|
}
|
||||||
function addLog(message){
|
function addLog(message){
|
||||||
|
var divLogs = document.getElementById("logs");
|
||||||
var p=createElem('p',{});
|
var p=createElem('p',{});
|
||||||
p.innerHTML=message;
|
p.innerHTML=message;
|
||||||
document.getElementById('logs').appendChild(p);
|
divLogs.appendChild(p);
|
||||||
|
divLogs.scrollTop = divLogs.scrollHeight;
|
||||||
|
|
||||||
}
|
}
|
||||||
function createElem(type,attributes){
|
function createElem(type,attributes){
|
||||||
var elem=document.createElement(type);
|
var elem=document.createElement(type);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user