mirror of
https://github.com/pi-hole/web.git
synced 2026-05-01 14:12:25 +01:00
Adjust debug log scroll position
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -39,8 +39,9 @@ function eventsource() {
|
||||
"message",
|
||||
function (e) {
|
||||
ta.append(e.data);
|
||||
// scroll page to the bottom (to the last received data)
|
||||
$("html, body").scrollTop($(document).height());
|
||||
// scroll to the bottom of #output (most recent data)
|
||||
var taBottom = ta.offset().top + ta.outerHeight(true);
|
||||
$("html, body").scrollTop(taBottom - $(window).height());
|
||||
},
|
||||
false
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user