can click on a day to display mode (for mobile)

This commit is contained in:
Christophe Robillard 2026-01-07 16:49:40 +01:00
parent d2d71468b4
commit ef696971ab

View file

@ -14,7 +14,7 @@
<div class="is-flex is-flex-direction-column is-flex-wrap-wrap mb-3">
<% week.each do |d| %>
<% if d[1] %>
<div data-image="<%= asset_path(d[1] + ".jpg") %>" data-mode="<%= d[1] %>" data-day="<%= d[0] %>" data-action="mouseover->mood#updateDayInfo mouseleave->mood#updateDayInfo" title="<%= d[0] %> : <%= d[1] %>" class="day <%= d[1] %>"></div>
<div data-image="<%= asset_path(d[1] + ".jpg") %>" data-mode="<%= d[1] %>" data-day="<%= d[0] %>" data-action="click->mood#updateDayInfo mouseover->mood#updateDayInfo mouseleave->mood#updateDayInfo" title="<%= d[0] %> : <%= d[1] %>" class="day <%= d[1] %>"></div>
<% else %>
<div class="day"></div>
<% end %>