Commit 1a09dcf7 authored by Taddeus Kroes's avatar Taddeus Kroes

Code cleanup

parent 0a4bedbb
...@@ -29,8 +29,8 @@ function getwday($day) { ...@@ -29,8 +29,8 @@ function getwday($day) {
<div class="timeline-bg"></div> <div class="timeline-bg"></div>
<div class="timeline"> <div class="timeline">
<?php <?php
for ($i = 0, $l = 24 + $HOURS_BEFORE + $HOURS_AFTER; $i < $l; $i++) for ($i = -$HOURS_BEFORE; $i < 24 + $HOURS_AFTER; $i++)
printf('<div class="hour">%02d:00</div>', ($i + 24 - $HOURS_BEFORE) % 24); printf('<div class="hour">%02d:00</div>', ($i + 24) % 24);
?> ?>
</div> </div>
</div> </div>
......
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