|
|
|
@@ -49,15 +49,18 @@ const tags = { |
|
|
|
}; |
|
|
|
|
|
|
|
function print(lines) { |
|
|
|
(lines.concat([newline])).forEach(line => { |
|
|
|
const bigDiv = document.createElement("div"); |
|
|
|
([newline].concat(lines)).forEach(line => { |
|
|
|
const log = document.querySelector("#log"); |
|
|
|
const div = document.createElement("div"); |
|
|
|
|
|
|
|
div.textContent = line; |
|
|
|
|
|
|
|
log.appendChild(div); |
|
|
|
bigDiv.appendChild(div); |
|
|
|
}); |
|
|
|
|
|
|
|
log.appendChild(bigDiv); |
|
|
|
|
|
|
|
log.scrollTop = log.scrollHeight; |
|
|
|
} |
|
|
|
|
|
|
|
|