Skip to content

Commit

Permalink
Merge pull request #4 from alexdcrane/patch-3
Browse files Browse the repository at this point in the history
Add content card div
  • Loading branch information
markjcrane authored Sep 16, 2024
2 parents 8f85df4 + 2848379 commit aeafa28
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions errors.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@
echo " <div style='clear: both;'></div>\n";
echo "</div>\n";

echo "<div id='file_content' style='max-height: 800px; overflow: auto; color: #aaa; background-color: #1c1c1c; border-radius: 4px; padding: 8px; text-align: left;'>\n";
echo "<div class='card'>\n";
echo " <div id='file_content' style='max-height: 800px; overflow: auto; color: #aaa; background-color: #1c1c1c; border-radius: 4px; padding: 8px; text-align: left;'>\n";

if (!empty($file_lines) && sizeof($file_lines) > 0) {
echo "<span style='font-family: monospace;'>\n";
echo " <span style='font-family: monospace;'>\n";
if (!empty($_POST['filter'])) {
foreach ($file_lines as $index => $line) {
if (strpos($line, $_POST['filter']) == false) {
Expand Down Expand Up @@ -117,13 +118,14 @@
}
echo $line_num." ".$filter_beg.$line.$filter_end."<br><br>";
}
echo "</span>\n";
echo " </span>\n";
}
else {
echo "<center style='font-family: monospace;'><br>[ EMPTY FILE ]<br><br></center>";
echo " <center style='font-family: monospace;'><br>[ EMPTY FILE ]<br><br></center>";
}

echo " <span id='bottom'></span>\n";
echo " <span id='bottom'></span>\n";
echo " </div>\n";
echo "</div>\n";

}
Expand Down

0 comments on commit aeafa28

Please sign in to comment.