mirror of
https://github.com/FlamedDogo99/EaglerMobile.git
synced 2024-11-21 19:46:05 -08:00
Logger attempt 2
This commit is contained in:
parent
f561557c3e
commit
d1e5364bac
|
@ -41,9 +41,9 @@ function logManager() {
|
||||||
self.logger = document.getElementById('log');
|
self.logger = document.getElementById('log');
|
||||||
console.log = function (message, options) {
|
console.log = function (message, options) {
|
||||||
if (typeof message == 'object') {
|
if (typeof message == 'object') {
|
||||||
self.logger.innerHTML = (JSON && JSON.stringify ? JSON.stringify(message) : message) + '<br />' + self.logger.innerHTML;
|
self.logger.innerText = (JSON && JSON.stringify ? JSON.stringify(message) : message) + '<br />' + self.logger.innerHTML;
|
||||||
} else {
|
} else {
|
||||||
self.logger.innerHTML = message + '<br />' + self.logger.innerHTML;
|
self.logger.innerText = message + " " + self.logger.innerText;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -524,7 +524,7 @@ function insertCanvasElements() {
|
||||||
}, false);
|
}, false);
|
||||||
document.body.appendChild(coordinatesButton);
|
document.body.appendChild(coordinatesButton);
|
||||||
//TEMP REMOVE
|
//TEMP REMOVE
|
||||||
var temp = document.createElement("div");
|
var temp = document.createElement("p");
|
||||||
temp.id = "log";
|
temp.id = "log";
|
||||||
temp.classList.add("log");
|
temp.classList.add("log");
|
||||||
temp.style.cssText= "position: absolute; top: 8vh; margin: auto; left: 0vh; right: 0vh; height: auto; z-index:10; min-height:8vh; background:white";
|
temp.style.cssText= "position: absolute; top: 8vh; margin: auto; left: 0vh; right: 0vh; height: auto; z-index:10; min-height:8vh; background:white";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user