blob: 0e13b963a6c34c3e13c8640bcfcae9d6a5640ac0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function ScreenConsole(element) {
this._element = element;
}
ScreenConsole.prototype.log = function () {
var text = "";
for (var i = 0; i < arguments.length; i++) {
text += arguments[i] + " ";
}
console.log(text);
this._element.innerText += text + "\n";
};
ScreenConsole.prototype.clear = function () {
this._element.innerText = "";
};
|