diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-10-10 22:35:39 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-10-10 22:35:39 +0200 |
commit | 9d1d88c66da5b15d026fd07c58463d3bdd62dd87 (patch) | |
tree | 8bf7435984314edb49987706113c1f411849a698 /index.html.erb | |
parent | bc47fa5f7ba84d7ad57ed4bb40e5851cf97c4023 (diff) | |
download | ramaskrik-program-9d1d88c66da5b15d026fd07c58463d3bdd62dd87.tar.gz ramaskrik-program-9d1d88c66da5b15d026fd07c58463d3bdd62dd87.tar.bz2 ramaskrik-program-9d1d88c66da5b15d026fd07c58463d3bdd62dd87.zip |
Use floating point division to calculate start coordinate and height of
events. Integer division truncated the values to they got a bit off.
A few other minor adjustments was made.
Diffstat (limited to 'index.html.erb')
-rw-r--r-- | index.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/index.html.erb b/index.html.erb index 62f31d2..2949dc8 100644 --- a/index.html.erb +++ b/index.html.erb @@ -36,7 +36,7 @@ <h3>Kl.</h3> <div class="time-column-inner"> <% (start_time..end_time).step(3600 / 4) do |time| %> - <div class="timestamp" style="top: <%= (time - start_time).to_i / 50 - 5 %>px; height: 10px;"> + <div class="timestamp" style="top: <%= (time - start_time).to_i / 50 %>px; height: 10px;"> <%= Time.at(time).strftime('%H:%M') %> </div> <% end %> |