Skip to content

Commit

Permalink
Merge pull request #2 from TemperGrace/master
Browse files Browse the repository at this point in the history
Minor improvements to elmastats teampage readibility
  • Loading branch information
sunehs authored Jun 20, 2024
2 parents 3e9ca00 + b47858c commit f843165
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion css/Default.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ table.times {
border-style: solid;
border-color: #000000;
background-color: #303030;
max-width: 720px;
overflow-x: auto;
}
th.times {
border-style: dotted;
Expand Down Expand Up @@ -86,4 +88,4 @@ ul.tabbernav li.tabberactive a {
.tabberlive .tabbertab {
border: 1px solid #000000;
background-color: #404040;
}
}
8 changes: 5 additions & 3 deletions team.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,16 @@
$teamtt += $trtajm;
$victories[$trman] += 1;
for ($y = 0;$y < $c;$y++) {

$t = target($utimes[$x+1][1], $x+1);
$bulle = ""; $bulle2 = "";
if ($trman == $y) { $bulle = "<span style=\"color: #00AA00\">"; $bulle2 = "</span>"; }
if ($trman == $y) { $bulle = "<span style=\"font-weight: bold\">"; $bulle2 = "</span>"; }
if ($trtajm > $utimes[$y][$x+1][1]) { $wry = "-"; } else { $wry = "+"; }
$diff2 = abs($utimes[$y][$x+1][1]-$trtajm);
$str = $wry . formatElmaTime($diff2) . " to " . $dudes[$trman] . "'s time";
if ($y == $trman || $trman == -1) $str = "";
//echo("<td class=\"times\" title=\"" . $str . "\"><center>" . $bulle . formatElmaTime($utimes[$y][$x+1][1], true) . $bulle2 . "</center></td>");
echo("<td class=\"times\" title=\"" . $str . "\"><center>" . $bulle . sttime($dudes[$y], $x+1, $utimes[$y][$x+1][1], true, $trman == $y ? true : false) . $bulle2 . "</center></td>");
echo("<td class=\"times\" title=\"" . $str . "\"><center>" . $bulle . sttime($dudes[$y], $x+1, $utimes[$y][$x+1][1], true, $trman == $y ? true : false, $t) . $bulle2 . "</center></td>");
}
echo("</tr>");
}
Expand Down Expand Up @@ -122,4 +124,4 @@
echo("</table>");
}
?>
<?php include("tpo.php"); ?>
<?php include("tpo.php"); ?>

0 comments on commit f843165

Please sign in to comment.