Commit 671118ff authored by Taddeus Kroes's avatar Taddeus Kroes

Added colors to total scores in completed matches

parent f2de599f
...@@ -62,7 +62,7 @@ $lg-width: 1200px ...@@ -62,7 +62,7 @@ $lg-width: 1200px
$black: #303030 $black: #303030
$white: #F2F2F2 $white: #F2F2F2
&.recurve.colored &.colored
.val-10, .val-9 .val-10, .val-9
background-color: $yellow background-color: $yellow
......
...@@ -45,8 +45,8 @@ ...@@ -45,8 +45,8 @@
class="val-{$arrow} {$j == $match->arrows - 1 ? separator}"> class="val-{$arrow} {$j == $match->arrows - 1 ? separator}">
<input type="text" disabled value="{$arrow}"> <input type="text" disabled value="{$arrow}">
</td> </td>
<td>{$sum = array_sum($row)}</td> <td class="val-{floor(($sum = array_sum($row)) / $match->arrows)}">{$sum}</td>
<td>{$total = $total + $sum}</td> <td class="val-{floor(($total = $total + $sum) / ($match->arrows * ($i + 1)))}">{$total}</td>
</tr> </tr>
</tbody> </tbody>
<tbody> <tbody>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment