🧑💻 automatically scroll output area to bottom on new text
This commit is contained in:
parent
cae42e4fbd
commit
4e1539e85c
@ -92,6 +92,7 @@
|
||||
span_one_line.textContent = one_line;
|
||||
|
||||
document.getElementById("text-output-area").appendChild(span_one_line);
|
||||
document.getElementById("text-output-area").scrollTop = document.getElementById("text-output-area").scrollHeight;
|
||||
}
|
||||
}
|
||||
let my_error_callback = function(text, type){
|
||||
@ -101,6 +102,7 @@
|
||||
span_one_line.textContent = text + "\n";
|
||||
|
||||
document.getElementById("text-output-area").appendChild(span_one_line);
|
||||
document.getElementById("text-output-area").scrollTop = document.getElementById("text-output-area").scrollHeight;
|
||||
}
|
||||
|
||||
let juicescript = new Juicescript({
|
||||
|
Reference in New Issue
Block a user