hide js code

Sourcecode of  line 471 to 479 was always shown at bottom
This commit is contained in:
g7sim 2023-05-22 14:42:05 +02:00
parent e06871028f
commit b9d07928ef

View file

@ -468,7 +468,7 @@ function GetMessages($wrap=true){
$result .= '</div>';
$result .= '</div>';
$result .= '<script type="text/javascript">';
$result .= '<div style="display:none;"><script type="text/javascript">';
$result .= '(function(){';
$result .= 'setTimeout(function(){';
$result .= 'var elem=document.querySelectorAll(".messages>div")[0];';
@ -476,7 +476,7 @@ function GetMessages($wrap=true){
$result .= 'elem.style.maxHeight="calc(100vh - 40px)";';
$result .= '},150);';
$result .= '})();';
$result .= '</script>';
$result .= '</script></div>';
}
return $result .= \gp\tool::ErrorBuffer() . $wrap_end;