From 4e1539e85c704bd3d1c24c7f917498cedddf6846 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Wed, 28 Sep 2022 16:59:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20automatical?= =?UTF-8?q?ly=20scroll=20output=20area=20to=20bottom=20on=20new=20text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dev/index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dev/index.php b/dev/index.php index aebdd2f..72be40e 100644 --- a/dev/index.php +++ b/dev/index.php @@ -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({